August 30, 200223 yr I've defined a field called 'menu' and set it to be a required value. Then formatted it to be a pop-up menu using a value list named 'menu_vl'. Defined button to perform script called 'get menu choice' which should evaluate the value chosen from the pop-up and branch to a subscript. Script sample: If("menu= "menuitem1"") Perform Script(Sub-scripts, "gotomenuitem1layout) Exit Script EndIf If("menu = menuitem2"") etc... Simple concept. Issue: When in browse mode the pop-up doesn't pop up and there is no apparent action taken with the exception of the button movement and appears to be a screen refresh. :? BTW - sure would be nice to use a case function here, but that option is not available in Scriptmaker. Any idea why???
August 30, 200223 yr Try putting some pauses in the script to see if the conditional points are executing the way you expect. As you didn't publish the sub-scripts (will you script perform sub-scripts then it's difficult to comment further
August 30, 200223 yr RE: BTW - sure would be nice to use a case function here, but that option is not available in Scriptmaker. Any idea why??? Case execution evaluates all e.g. 100 values and not just the first valid one. That will be probably impractical in Scripts. Even the IF statement is wrongly executed in WebCompanion. It looks like 6-year-old son of cleaning lady programmed that at one evening. Instead of just executing the valid condition only, it does execute everything.
Create an account or sign in to comment