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

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

Recommended Posts

  • Newbies
Posted

I want to do something pretty simple, and I am sure incredibly common: get FM to request input from the user, then use their answer to do a search.

I've created a script that uses Show Custom Dialog. That requests the input OK, but how do I access the answer? Where does FM put it? What do I put in the Perform Find step?

Specifically:

Show Custom dialog ["Number"; "Type a number"; Main Data::Num]

If [Get (LastMessage) = 1]

Perform Find [Restore]

....

In Perform Find [Restore] the formula is Main Data::Num:[="Type No."] where "Type No." is label given to input field #1 in Show Custom Dialog definition.

Am I missing something here. Do you have to create a field to hold the temporary parameter? Surely it is not that complicated.

Is there a way to edit scripts like in a text editor rather than selecting form pre-defined lists? It is very tedious.

Posted (edited)

See the input field options? Yes, you have to store the result in a field. Yes, it's ridiculous. Generally you'd want to use a global field. Also be aware that the input field will only be recognized when the default button is clicked. Yep.

No, you can't edit scripts in a text editor. Well... you sort of can:

Clip Manager

FmPro Script Diff

Edited by Guest
Welcome to the forums!

This topic is 5863 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.