Jump to content

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

Recommended Posts

Posted

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

Posted

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

Posted

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.

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