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

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

Recommended Posts

Posted

OK, maybe I'm just tired, but the following script steps ...

Show Custom Dialog ["Go to record","Enter a record #","gNumA"]

If [gNumA > 0 and gNumA <=Status(CurrentFoundCount)]

Go to Record/Request/Page["gNumA"]

End If

(gNumA is a global number field)

... don't work. I don't get brought to the record specified. It's as if it's not registering the change to the field's value. I checked, and Go to Record by field value works fine by itself. The IF statement passes (I stuck a pause just after it and sure enough, it paused). IS there something I'm missing about the Show custom Dialog script step? Shouldn't Show Custom Dialog change the value in gNumA into whatever the user enters, then Go to Record... go to the record specified? The documentation says it works similarly to Set, which does register changes within the same script.

Thanks,

Jeff

ps- Please don't ask why I don't just use the built in Go to Script by Number step. The above is a super simplification of what I'm trying to do (custom messages and the like). But, I entered the code exactly as above and it still didn't work.

Posted

Found the problem. Maybe it's a bug in FileMaker. The only difference between our scripts was that I did not use a Label (it was an empty string). I changed it to "Record #" and it worked. It seems some strange value is returned when no label is used (I also tried it with " " and it worked). Thanks for your help!

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