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

Simphony 2 - How to pass arguments when you call a Payment Tender from ISL 1

Status
Not open for further replies.

nvak

Programmer
May 25, 2015
60
GR
tender_nqpzhs.png


When you create a Button calling a payment tender in Page Design at micros simphony 2 you need to create a an arguments list as you can see in the above screenshot.

How can I pass those parameters from isl code when i call the same payment tender with isl code?

Code:
EVENT inq : 1
    LOADKYBDMACRO 7:1    //Arguments "CASH:CASH" needed here 
ENDEVENT

Thank you all
 
Code:
LoadKybdMacro defkey( "Payment", N:PaymentNumber, A:PaymentArguments )

LoadKybdMacro defkey( "Payment", N:1, A:"Cash:Cash")

Do you want some custom SIM scripts developed. Contact me via my website
 
Thank you very very very much.
 
A bit of further explination to the defkey function.

The first parameter is the ops command name and the remainder are the parameters to this command where I indicates Index, A indicates Arguments, T indicates Text and N indicates Number.

You can get these values by creating the button in the page designer first and then copying a button from the page designer and pasting it into notepad. A cash button will look like this.

XML:
<ControlClipboard xmlns="clr-namespace:EMC.Application.General.Controls.MicrosGridEditor;assembly=EMC" xmlns:mouic="clr-namespace:Micros.OpsUI.Controls;assembly=OpsUI" xmlns:av="[URL unfurl="true"]http://schemas.microsoft.com/winfx/2006/xaml/presentation">[/URL]
  <mouic:Button OpsCommand="Payment" OpsCommandText="" OpsCommandIndex="0" OpsCommandNumber="2" OpsCommandArguments="Cash:Cash" ImageReference="     " Style="{av:DynamicResource MicrosAquamarine}" Width="Auto" Height="Auto" Focusable="False" av:InputMethod.IsInputMethodEnabled="True" av:Grid.Column="45" av:Grid.Row="0" av:Grid.ColumnSpan="5" av:Grid.RowSpan="4" av:AutomationProperties.AutomationId="micros.generated.Payment.2.0..Cash:Cash *">
    <mouic:TranslatedEntryManager.TranslatedEntryList>
      <mouic:TranslatedEntryCollection>
        <mouic:TranslatedEntry LanguageObjNumber="1" Text="Cash" />
      </mouic:TranslatedEntryCollection>
    </mouic:TranslatedEntryManager.TranslatedEntryList>
  </mouic:Button>
</ControlClipboard>

As you can see on the second line you can get all the values for the command, text, index, number and arguments.



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