April 6, 200520 yr Hello, Is it possible to run a script upon selection or change of a pop up menu, which is similar to the onchange or onSelect events at javascript... And for sure, I want to transmit the selected value to another script as a parameter to do something else on the database... WHen I specify the popupmenu as button, it can not be opened at all... I strongly think that this should be possible in FM7 , however I could not manage it, and I can't find a related post... Any suggestions Best
April 7, 200520 yr http://www.softs4humans.com/FMPro_Plugins.html This free plugin can do what you want.
April 7, 200520 yr I strongly think that this should be possible in FM7 And both of you are absolutely sure this is a recognizable touch and feel of a genuine mac application??? This is a FAQ and you might consider reading the links mentioned in this thread: --sd
April 7, 200520 yr You can create a loop the looks at the popmenu. I use a script that looks like this- Set Field [ global ; menuField ] Loop Exit Loop If [ menuField (not equal to symbol) global ] Go to Field [ menuField ] (this step will open the menu and allow it to be changed) Pause/Resume [ Duration (seconds): 1 ] End Loop Add the rest of your script after that to do what you need with the new value. Hope that helps.
April 7, 200520 yr Author Dear all, Thanks for your efforts, I think I can manage this by combining all of the informations you gave, By the way, I am really sorry for not being able to find the other thread related, but this is really a huge forum... Best
April 7, 200520 yr Isn't it? The issue to be aware of is that, it's ment for distinctive pages ...where scripts can be tough to establish a rollback feature for - if not restrained properly. Setting a sortorder or such for a portal is OK, but from there to say performing imports/create records or modify records - Apple's rule mentions "nouns" as the kind of words to be chosen from in such a popup. So deletion of an entire portal of records requires both the popup and a button next to it carrying the "verb" This webpage are pretty correct in it's approch by 1) choose a noun and 2) press a "Go" button. But it's also kind of the engineers approach never to fiddle with more than one parameter a the same time ...in order to be able to go back where you came from ...well this is what I was taught as soundengineer apprentice??? --sd
April 7, 200520 yr Author I want to say that i solved my problem, but I unfortunately understood that it is more simple than executing a script, I just wanted to change another field upon changin other field instantly... FM7 already does this by giving an auto enter calculation to another field... I just want to share...And when you unclick "Don't replace existing value..." Everything works very good, as I wanted... Flexible solutions from FM7
April 7, 200520 yr I agree, but only partially. The question was about triggering a script by changing the value in a pop-up. Whether this is good UI or not depends on what the script does. Sometimes even creating a new record is acceptable in the context. See, for example, System Preferences/Network/Location, with the following values in a pop-up: Location 1 Location 2 ---------- New Location... Edit Locations...
April 8, 200520 yr Author comment, I thought that my problem was triggering a script to change another field... But in the particular case of changing another field upon a change on another field, it might be done by giving auto enter calculation....I realized this later on...I am sorry However, I want to say one thing which I forgot in my previous comment....This topic is of great use for me, because I will use this script trigerring from pop up menu, too in my databases... Again thanks for your efforts, and Best wishes
May 4, 200520 yr Just wondering if you can use this kind of solution to choose between different scripts from a pop up ? I am currently still using FMP 5...?? any info gratefully recieved! ... well I seem to have found that the combination of a button and a pop down works to some degree...so that's progress, beats having loads of buttons all over the layout!!
Create an account or sign in to comment