July 8, 200322 yr 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!
July 8, 200322 yr Zila, The Show Message Box is what you need here. You can control the scripts to trigger with Status(CurrentMessageChoice)...
July 8, 200322 yr 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.
July 8, 200322 yr Author Hi people! thanx for the respond I knew I was close..I was just "affraid to fall"..thanx for "pushing me over the edge"....now if I could only fly how about ability to run the 3rd - "script3"?
July 8, 200322 yr 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
July 8, 200322 yr Mine was shorter, then quicker ... But you explained it better. And as we say here in France : Two advices are better than one... 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 ?
July 8, 200322 yr Author thanx "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!
July 8, 200322 yr 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.
July 8, 200322 yr Author hi Eddy! Thanx for the post 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!
Create an account or sign in to comment