Jump to content

Scripting w/ User Input


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

Recommended Posts

I am trying to make a scheduler. I am scheduling equipment. Each job is set to run on a specific piece of equipment. I want to ask the operator what equipment(from a list if possible) and for what day. So I am using the Show Custom Dialog. It works, but can i get it to show a drop down menu based on a list I have created? Can I use the results in a find script?

Link to comment
Share on other sites

No. Custom dialog's are limited to standard text fields, no drop downs, no pop-ups etc. If you want you can opt for a plugin, however you might instead open a new window formated like a dialog box (seeing as your on mac). Hoping that this works in FM 5..

~Genx

Link to comment
Share on other sites

I didnt read the whole question. You can however use the results of the user input as follows. Specify your fields to be globals i.e. lets say you want the user to input one thing: a date to search by.

1) Create a date field and set storage to global (or use one you've already got)

2) Let the user specify their date in this field.

3) Prior to performing the find in your script and after prompting the user for input, enter find mode, set your date field that you want to search accross to the value stored in the global and then perform your search.

4) You might want to clear the value in the global for future searches.

~Genx

Link to comment
Share on other sites

This topic is 5641 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
 Share

×
×
  • Create New...

Important Information

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