3- Interface Commands
Command Name | Usage | Description | Example | Version |
---|---|---|---|---|
Text | Text(column,row,text,JSON) | Writes the text to the specified column and row on the screen. If it is defined, it performs operations according to the parameters in JSON format. The column parameter is valid only on Telnet handheld terminals. In the text of the command, variables can be used. Values to be used in JSON Parameters:
The parameter is optional. | Text(1,1,"Material Name") Text(0,0,"Company Selection") Text(1,1, @barcode,{"start":5,"length":10}) Text(1,1, "Material Name: @materialname", {"case":" upper"}) Set(@Style.error, {"color" : "Red-Black","effect" : "Bold-Blink", "size":"4"}) Text(1,1, @error,{"style":"@Style.error"}) Text(1,1, @materialname,{"title":"Material Name"}) (As of v1 .2) | 1.0 |
Input | Input(x, y, tag, | It is used to enter information. The parameters are used as described below:
Format parameters :
result variable: The variable to which the information will be assigned. If the format definition contains fields with parentheses, these field values are saved as subfields of the variable. | Input(1,4,"User Name", {"type":"text","min":"1"," 1.0 Input(1,4,"Barcode", {"type":"text","min":"1","max":"10", Input(1,4,"Barcode", {"type":"text","min":"1","max":"10", Input(1,4,"Barcode", {"type":"text","min":"1","max":"10", | 1.0 |
MenuItem | MenuItem(form name, menu text, authorization code, icon number) | Creates a menu option. MenuRun command must be run to display the menu on the screen. | MenuItem(Receiving, "RECEIVING","",3) | 1.0 |
MenuRun | MenuRun(row, column, title) | Allows the menu with options to be displayed on the screen. A title can be specified to be displayed at the top of the menu. The variable name can be written in the title text. (as of v1.2) Selection from the menu can be performed with the number keys 1-9 on the keyboard or by clicking the option on the touch screens. It is possible to navigate through the menu options with the arrow keys on the keyboard. | MenuRun(1,1,"MAIN MENU") MenuRun(1,1,"MAIN MENU-@@LoginUser. | 1.0 |
PopupView | PopupView(variable name, JSON, result variable) | It enables the values of the variable in the given list structure to be listed and selected on a separate screen. The parameters defined in JSON format are: fields: Fields to display. Each field is defined as a JSON array object. The display properties of the field are indicated by separating them with the pipe character. The format is as follows: Field Name column title (For example, Stock Code) How many characters the field will display (For example, 10) Alignment (L-left, R-right) mode: The list can be displayed in two ways: columned list (mode=list) or top and bottom (mode=card) If there is no "mode" object, it is assumed that the columned list will be displayed. If there are many rows, only enough to fill the page is displayed. size: The size of the screen to be opened can be defined as "width height". The values 40 25 are default. It applies to telnet. title: The title can be displayed at the top of the screen. style: Applies the style specified for the list. The row number is displayed at the beginning of each row. Selection can be made by typing the row number on the keyboard and clicking the Enter key, or by touching the relevant option on the touch screen. multiselect : Multiple selections from lists are supported if boolean is true. The default value is false if multiselect is not specified. Multiple selection is not supported. Using multiselect returns the list selection as follows. (as of v1.16) { "rows": [ { "rowNumber": 1, } , { "rowNumber": 3, } , { "rowNumber": 5, }, ], "rowCount": 3 } | PopupView(@list.rows, {"mode":"list","size":" 30|20","title":"Stock List","fields": ["stk_code|Stock Code|10|L","stk_name|Stock Name|15|L"]},@selection) PopupView(@list.rows, {"mode":"card","fields": ["stk_code|Stock Code|10|L","stk_name|Stock Name|15|L"]},@selection) PopupView(@warehouselist.rows, {"title": "SOURCE WAREHOUSE SELECTION", "fields":["warehouse_code|Warehouse Code|10|L","warehouse_name|Warehouse Name|15|L"], "multiselect":"false","style" : "@Style.list"},@selection) | 1.0 |
TableView | TableView(variable name, first row, first column, JSON) | It displays the values of the variable in the given list structure as a table on the screen. The first column parameter is valid for Telnet only. The value written to this parameter specifies how many rows the table will occupy on the screen in the mobile application. In display parameters defined in JSON format, rows: Indicates how many of the records in the variable will be displayed. start: Indicates from which record the list will start. (Optional. If not used, it starts from the first record.) columns: properties of columns. Each column is defined as a JSON array object. column display features It is specified by separating with the | (pipe) character. The spelling is as follows: Field Name | column header (Ex. Stock Code) How many characters the field will display (For example: 10 or 3-7. 3rd to 7th character) Alignment (L-left, R-right) The arrow keys can be used to see the parts of the table that do not fit on the screen. | TableView(@list.rows,1,5, {"rows":10,"columns": 1.0 ["stk_code|Stock Code|10|L","stk_name|Stock Name|15|L"]}) | 1.0 |
ShowMessage | ShowMessage(JSON) | Creates an easy screen to send a message or ask for approval. The message is displayed on the screen as a separate window/popup. When exiting the message, it returns to the previous screen. The parameters defined in JSON format are as follows: title: Title message: Message text. Variable can be used. buttons: Action buttons. A maximum of 3 buttons can be defined. Respectively, the 1,2,3 keys on the keyboard correspond to these button options. If there is only one button or for the first option, the Enter key can be used. If there is only one button, or for the last option, the ESC button can be used. If no button is specified, it is shown as "OK". style: Definition of style. It is only for telnet handheld terminals. (as of v1.2, it is also available for Android terminals.) .title, .border, .button1, .button2, .button3 and .text elements in the defined style are used. | ShowMessage({"title": "ERROR", "message" : "@code 1.0 CODED MATERIAL NOT FOUND!","buttons": "OK"}, @selection) ShowMessage({"title": "ERROR", "message" : "INCORRECT SELECTION!" "buttons": "OK|CANCEL", "style" : "@Style.message"}, @selection) | 1.0 |
Image | start row, end row, JSON | Displays the content of saved images for material and AR/AP. It is displayed in the specified lines. The parameters defined in JSON format are as follows: RecordType : Type number of record. AR/AP-142,Material-145 RecordId : Record Id ImageType : 0-Thumbnail (Default) 1- Original This command is meaningful only for use in the mobile application. | Image(5,8, {"RecordType" : "145", "RecordId": 1}) | 1.0 |
ClearScreen | ClearScreen() | Clears the screen. | ClearScreen() | 1.0 |
ClearLines | ClearLines(start row, end row) | Resets the values between the given lines. | ClearLines(1,5) | 1.0 |
Beep | Beep(number of beeps) | It beeps a specified number of times via the handheld terminal. The other audio files supported by the operating system can be played in the mobile application. The number of repetitions is optional. | Beep() Beep(2) | 1.0 |
ListBox | Input(x, y, tag, Örnek : ListBox(variable, y, tag, field name, result variable) | It waits for selecting from the given list (Combobox). variable: A list including one or more records. line: The line where the combo box will be displayed. tag: Description information to display in front of the information entry field. A variable can be used in the tag text. field name: Name of the column to be displayed in the variable list. result variable: Variable to which the information will be assigned. Returns the value of the selected line with this variable. | Warehouse.List("Id>0","Code Desc",@list) ListBox(@list.rows, 1, "Warehouse Selection", "Name",@selection) Text(1,2,"@[email protected]", {"title":"Selected Warehouse Code","style": {"color":"Blue","titleColor":"Green", "effect":"Bold"}}) | 1.16 |