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.

search with variable over foreign key

Featured Replies

  • Newbies

Hi.

Somehow I can't get this to work: I have two tables: A, B. Table A is related to table B via the key X, which is of type Text.

I would like to display all records of table A that equal to the text "dummy". In SQL this is equivalent to "select * from A where X = 'dummy'".

I can get this to work as long as I enter the text directly in the find window in the script editor, however, I can't get it to work when I use a script parameter or a variable.

How do I get it down statically:


// works

A::X =dummy




How do I want to get it done:



// doesn't work - I checked, it's the right parameter there

A::X =Get(ScriptParameter)







// doesn't work either

Set Variable ($dmy, Value:Get(ScriptParamter))

Find ( A::X = $dmy)





This works, but I would like to do a direct query:





Enter Find Mode[]

Set Field ...

What can I do, please?

Thanks.

  • Author
  • Newbies

Btw. this does also not work


Set Variable[$dmy, Value:"Dummy"]

Perform Find[A::X =$dmy]

sorry, but I have no clue...

Perform Find[] only works with static (stored) criteria. Try:

Enter Find Mode []

Set Field [ A::X ; "Dummy" ]

Perform Find []

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.