Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4828 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Might be dead simple but ive struggled with it a while now.

I want a set field by name script to automatically select current table and then a field called "bin"

I cant make Get ( ActiveFieldTableName ) to work, or set variable or any other solution...

The problem is the whole select field value must be within "" and Get ( ActiveFieldTableName ) & "::bin" does not work because of this.

reason?

I have a bin field in most table and I want to be able to use one single script and change the current table row bin field, instead of making one for every table/layout i have.

Many thanks for any tips or help.

Posted

Have you tried Quote( Get (ActiveFieldTableName) & "::bin") ?

corrected per subsequent post to insert correct double colon

Posted

Why would you have a "bin" field in every table, anyway? I question your data model.

Posted

hehe. I question it sometimes aswell. Its a test to create a flag for hiding the row. But the current table function would still be nice to have.

if I run Quote( Get (LayoutTableName) & ":bin") I get the correct result, but it still dont wanna change the value... ill keep on trying. Thanks for the help so far.

Posted

Why would you have a "bin" field in every table, anyway? I question your data model.

hehe. I question it sometimes aswell. Its a test to create a flag for hiding the row.

That is worth questioning, IMHO.

Posted

Ok. maybe its a bad ide. It is however just en experiment to test the different security settings in fm. Anyway. I think this discussion gave me some new ides to think about.

ps

The Quote( Get (LayoutTableName) & ":bin") gives me the right result but it dont work anyway. And the :: colon just results in a error not finding the field. But im quiting this test and will solve it some other way.

But thanks for all the help anyhow.

This topic is 4828 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.