EasyEdE Posted June 7, 2002 Posted June 7, 2002 Is it possible to use a selection from a value list pop up to jump to another file? It would sure beat having a specific button for each db you need to navigate to. TIA for feedback EasyEdE
uchujin Posted June 7, 2002 Posted June 7, 2002 while im waiting... would be easy enough to use value list and 1 button to do this. have global text field "Navigate" formatted with value list of all layouts to go to. have button next to it labeled "go" or something that runs script: if [Navigate = "invoice"] perform script [subscript, external "invoice.fp5"] end if if [Navigate = "reports"] perform script [subscript, external "reports.fp5"] end if and so on for each value in the value list. where extrenal scripts would be a simple "go to layout [desired layout]" in the target file. select from value list, hit "go", and you're there.
EasyEdE Posted June 8, 2002 Author Posted June 8, 2002 First of all - thanks for your response. It is a clean straight forward solution, but @#$!@#$ I can't get it to work. I noticed in the syntax of the script that the "if" statement had some quotation marks that appear automatically, i.e. If("Navigation = "Companies"") Perform Script [sub-script, External: "Companies.fp5") End If I call the script Navigation and set the button to execute the script. I make a selection from the field Navigation, click on the button and nothing happens. I ran the debugger and found no bugs. I've take the liberty of attaching a substantially reduced version of the file that contains the full script and button but little else. Any and all thoughts will be appreciated.
uchujin Posted June 8, 2002 Posted June 8, 2002 hmmm- did you create the external scripts in the files to navigate to? also- where did you attach the files? try sending them to me directly (please make them small as possible, I am on dial up this weekend) at [email protected] cheers
uchujin Posted June 8, 2002 Posted June 8, 2002 I think I just thought of what the problem is- you need to end each of the external scripts with a "halt script" what is happening is that it is working fine, going to the other file and layout, and then returning to your original file and layout to evaluate the rest of the "if" statements- that is why you cant find a bug. also might work using nested "else if" querys in the navigate script, but I hate the way those things look. HTH
EasyEdE Posted June 8, 2002 Author Posted June 8, 2002 You are correct. Actually I just sent you an email with the corrected script using the nested if/else solution and it works just fine. Thanks again for the way to navigate using a pop-up. EED
Recommended Posts
This topic is 8205 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 accountSign in
Already have an account? Sign in here.
Sign In Now