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

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

Recommended Posts

Posted

Hello Fellow/Female Datamates,

I am looking for some help on…

allowing user to control script by providing options, for example:

PRINT

-or-

CANCEL

If user chooses PRINT, script will continue to print.

If user chooses CANCEL, script will close print window and return to original layout.

I do not no how to set up script so these options are presented to user.

Also, can there be more then tow options/choices?

———————

On that note,

I would like to set up a REPORT script, that when ran, it will ask user…

"Which report do you wish to run?"

- Quote Script

- Invoice Script

then depending on users choice appropriate script will run.

Any help, feedback or direction on providing user options/choices to control scripts would be a great help,

Thank you all!

Posted

Check out the Allow user abort (off) and Show custom dialog and script steps.

You will want an if statement after the dialog that goes something like:

If[get(lastmessagechoice) = 1]

your selection 1 script steps

Else If[get(lastMessagechoice)= 2]

Your selection 2 script steps...

End If

-MiniRaz

Posted

Hello,

Thank you for your response, I believe I will be able to use the helpful tips you gave.

I have a quick question tho.

Looks like the custom dialogue box only allows 3 options.

Do you know what I could do if I needed 4 or more options?

Again, thank you for your time.

Posted

You will need to figure out a workaround. There are several possibilities, two are:

1). Use 2 different buttons, one that says "Quote Report" and runs the report script with "Quote" as the script parameter, and one that says "Invoice Script" and has "Invoice" as a script parameter.

Use another If step in your script along the lines of:

If[get(scriptparameter)="Quote"]

your quote script steps...

2). Build your own dialog box as a separate layout that will be scripted to open in a new window. You could then have as many fields or buttons as you wanted on it. The buttons could either resume the script, or start a new script altogether.

Posted

Great, thank you,

i will experiment.

I hope I am not bugging you :

but... one last question.

I have a simple script that goes kinda like this.

---

get related records from(relationship) using (layout)

enter Preview mode

pause script (indefinitely)

---

When scrip is paused, in the status area there are two options

CONTINUE

-or-

CANCEL

Can set up script so that if user selects CONTINUE script will print

or if user selects CANCEL script will close window and return to original layout?

I am kinda putting the cart in front of the horse on this question, I have not experimented with the new info you have gave me.

I am guessing this would work with the If[get(lastmessagechoice) = 1]

but does CANCEL = O or 1 and CONTINUE = 1 or 2?

Thank you.

Posted

No, the get(lastmessagechoice) only relates to the custom dialog script step I think. Canceling will just leave you on the preview layout, and buttons will not work in preview mode.

Workaround time again!

Some more possibilities:

1. Have the user decide before entering preview mode.

2. You can have a script copy the record in preview and paste it in a large container that can be viewed in browse mode so that buttons can be accessed

3. Another custom layout that opens in browse mode in a separate window that is a button pallete- has Print or cancel buttons on it that would be trigger scripts that would operate on the preview window.

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