Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Input window with buttons - Sim MICROS 3700

Status
Not open for further replies.

RitwickGupta

Programmer
Aug 21, 2014
96
CA
Hello,

I have a custom button on Micros 3700 Payment screen. I want to open a secondary pop-up window when someone presses that button and ask the user if he is sure to make the payment. I would prefer to have two buttons there which say "Yes" or "No". Does anyone know how I can do that?

Regards
 
If the 3700 scripting language is the same or similar to 9700 here's a way to popup a window with information using the Window command. This command will draw a window on the operator display and is required in
order to display information referenced by the various Display commands.

Syntax
Window row, column[, expression[{output_specifier}]...]

row: the number of rows the window should contain; valid entries are 1 to 14

column" the number of columns the window should contain; valid entries are 1 to 78 expression an expression that represents the title of the window, which will appear centered in the top line of the window itself (above the first row); it may be on of the following: user_variable and or string

{output_specifier}: one or more of the output_specifiers that determine the format of the output fields

Window 8, 60 // 8 rows, 60 columns (characters) wide
display 1, @CENTER, "This text is centerd in the"{=(@WCOLS)}
display 2, @CENTER, "middle of the window"{=(@WCOLS)}
display 4, 2, "Information to be displayed: ", yourStringText
display 5, 2, "More information : ", stringText2
display 6, 2, "Additional INformation again", trim(description)
display 7

waitforclear // Tells the window to wait for the user to press the Clear button


However you want a Window to ask for input, this input being Yes or No.

Lets say you ask "Are you sure you want to make the payment?"

sub paymentNotification
var key_pressed : key
var data : A10
var sPaymentAmt : A8 // Alphanumeric amount, allows to show $ and . in the amount

Window 10, 68
display 1, @CENTER, "CONFIRM PAYMENT - NOTIFICATION"{=(@WCOLS)}
display 3, 2, "You can display payment information here"
display 4, 2, "Payment Amount: ", sPaymentAmt
display 6, @CENTER, "Please confirm you would like to make a payment."
display 9, @CENTER, "Select [YES] to Continue or Select [NO] to Cancel"

inputkey key_pressed, data, "[YES] to PAY or [NO] to CANCEL PAYMENT"

// Check What KEY was Pressed
if key_pressed = @KEY_CLEAR
ExitOnCancel // Exits Script when the Clear Key is pressed

else
// Call Close Check and post payment, or other things to do

endif

endsub


Let me know if this helps at all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top