Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Juggernaut

Set field by name "current table::bin"

Featured Replies

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.

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

corrected per subsequent post to insert correct double colon

  • Author

Jup.

It dosent work. The result of that is only ":bin"

so the table name is not following...

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

  • Author

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.

Is there an "active field"?

The Quote() example should have a double colon, not a single.

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.

  • Author

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.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.