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

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

Recommended Posts

Posted

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 confused.gif, however I could not manage it, and I can't find a related post...

Any suggestions

Best

Posted

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

Posted

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.

Posted

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

Posted

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

Posted

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 smile.gif

Posted

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...

Posted

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

  • 4 weeks later...
Posted

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!

... smile.gifwell 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!!

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