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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simphony ISL does not apply tender 1

Status
Not open for further replies.

fsalinas

Systems Engineer
Oct 3, 2019
13
PR
I had defined an event inq:222. It is a large script, but I have cut it to show only the relevant line of code:

Code:
event inq : 222
    LoadKybdMacro Key(11,202),  MakeKeys("5"), @KEY_ENTER
endevent

The macro is supposed to invoke a tender (key(11,202) followed by a call to the VISA tender (object number 5)

The key is defined in RVC page design as a SIM INQUIRE with argument: YcsCard:222 (ycscard the name of the extension).

After been clicked, it fire and error:

TENDER/MEDIA not found

The tender media #5 work fine when is defined as a button with Type = Payment Tenders --> 5 - Master Card

Any idea what is happening?

 
In Simphony its easier to work with "defkey" as you can get a values directly from the page designer.


Code:
var PaymentKey : Key

PaymentKey = defkey("Payment", N:202, A:"Cash:Cash")
LoadKybcMacro PaymentKey

The benefit of this is that you can just create the button in the page designer in Simphony. Copy the button and paste it into Notepad and see the values. It will paste as XML.
You can then just build up the defkey based on the button you created.

image_xdqnam.png




From the Simphony SIM manual:

Code:
DefKey
Key definitions have these fields:
• Command: The command to execute; a word instead of a number
• Number: The object number associated with the command. If this is a menu item command, then Number is the object number.
• Index: Similar to number, this depends on the command.
• Text: Preset keyboard buffer OR characters for the ASCII command.
• Arguments: Command-dependent.

A new function ‘defkey’ has been created that allows a SIM script to set one or more
fields of the command (formerly known as ‘key’) for OPS to process in a
LoadKybdMacro command. The syntax is:
DefKey(OpsCommandType, Name:Value, Name:Value, ... )
Where:
• OpsCommandType: A string which defines the command to process. (We will discuss how to determine what string to use soon.)
• Name: A one character identifier for the field type. For example, ‘N’ corresponds to number.
• Value: The value for the name. For example, ‘N:2’ indicates that the number field should be set to 2. The value can be hardcoded or it can be an expression.

Valid Name values
• N - Number
• A - Arguments
• I - Index
• T - Text







Do you want some custom SIM scripts developed. Contact me via my website
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top