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

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

Recommended Posts

Posted

I'm using a script to control access to a data-only file to insure that data is entered through the interface file. If a user opens the data file instead of the interface file, they find a blank layout with a brief explanation and a button to take them to the interface file. The script for this button is in the interface file, not the data file. Since I have several such data files (each storing quite different info used by different persons for different purposes), I'd prefer to have only one such script to keep track of in the interface file. So my question,

Is it possible to specify that the file from which the script was called (via button click) be closed *without designating the name of the file*?

I can do it easily if I specify the name of the data file, but then I must have a separate script for each such file. The "close [current] file" option references the *interface* file, so I assume that will not work.

Thanks,

decker

  • 2 weeks later...
Posted

That's what script parameters are for. If you look at the button definition, there is a place to put script parameters. You would enter get(Filename). This get passed to the calling script. Then you main script would say, if script parameter = this, do that..

Posted

BruceR said:

That's what script parameters are for. If you look at the button definition, there is a place to put script parameters. You would enter get(Filename). This get passed to the calling script. Then you main script would say, if script parameter = this, do that..

Hmm. I'm glad to know there's a way to do it... but I've tried several different things to figure out your suggestion, but to no effect. I'm obviously missing something or not understanding this. Could you (or someone) spell this out in more detail. I'd appreciate it much.

decker

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