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

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

Recommended Posts

Posted

Hi People!

I was just wondering if it is possible to set the Dialog/MSG box without really "accepting" input into any (temp or global) fields?

all I want is to do is give the option to user to run different scripts.

===============

click something

[RUN][yes][no]

===============

---------------------------

if [RUN]

go do script_1

if [yes]

go do this script_2

if [no]

exit this MSG box script

-----------------------------

thanx 2 ALL of you!

Posted

Hi,

You can use the status(CurrentMessageChoice) to capture user choice on dialog boxes

Script...

Show Custom Dialog ["YourTitle", "Run the Script?"]

--->Just set 2 button captions, Yes and No

--->Do not enter anything into the input options

If ["Status( CurrentMessageChoice) = 1"]

Perform Script[script1]

Else

Perform Script[script2]

End If

Regards

Ed.

Posted

Hi people!

thanx for the respond smile.gif

I knew I was close..I was just "affraid to fall"..thanx for "pushing me over the edge"....now if I could only fly laugh.gif

how about ability to run the 3rd - "script3"?

Posted

Here you go...

Show Custom Dialog ["YourTitle", "Run the Script?"]

--->Just set 3 button captions, Yes, No, eerrmmm Maybe!

--->Do not enter anything into the input options

If ["Status( CurrentMessageChoice) = 1"]

Perform Script[script1]

Else

If ["Status( CurrentMessageChoice) = 2"]

Perform Script[script2]

Else

Perform Script[script3]

End If

Ed

Posted

Mine was shorter, then quicker laugh.gif...

But you explained it better.

And as we say here in France : Two advices are better than one... wink.gif

And finally mine could be a question. Is it Show Message or Custom Dialog we are talking about ?

I don't have FM6 yet. Will come with OSX in september....

I've seen a lot of discussion around about thi new feature. Is it really needless as 95% of the posts I've seen tend to say ?

Posted

thanx laugh.gif

"Two advices are better than one"

Most definetly...I was going to ask Ugo "what he meant by...." anyways

and ones I looked at the fact that there are options for 3 choices...well the little light-bulb showed up....u guys were 2 fast for my respond!

Anyways....as we say: "All is well that ends well"

thanx again!

Posted

My last post needs another END IF at the end of the script I missed it off.

Ugo,

Show Custom Dialog is quite handy.

1) You can enter your own title in the message box

Instead of the title of the message box being FileMaker Pro, you can set it to whatever you like

2) Can do all the same features as show message

3) You can have up to 3 user inputs into the actual message box itself

These 3 inputs relate to fields in your DB

e.g

Enter your Name

-->you enter Ugo

Enter your Country

-->You enter France

Enter your favourite forum!

-->You enter fmforums.com

All this is done within the box itself

The custom dialog will then set these 3 fields to what you have specified.

4) There is the option to set the inputs to use the password character *

It's quite a nice feature really.

Ed.

Posted

hi Eddy!

Thanx for the post smile.gif

I must say that this is pretty nice/powerful feature and it definetly beats the Dialog Box with 3 inputs....I was getting tired of having 150 g_t_c_fields in the DB just to make some calcs or run some conditinal script.

It seems that this feature is overlooked / not used as much

anyhow, thank you for the help!

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