Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Command Name

Usage

Description

ExampleVersion

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.
When the value 0 is defined for the row and column, the given text is written in the header section at the top of the screen.

In the text of the command, variables can be used.

Values to be used in JSON Parameters:

  • start: Specifies from which character of the text it is shown (it is shown from the first character if not specified)
  • length: How many characters of the text will be shown (all of them will be shown, if not specified)
  • case : Upper, lower case
  • style : style name
  • title: title. When this parameter is used, the thumbnail in the upper left corner of the displayed text is displayed. (as of v1.2)

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,
JSON format parameters, result variable)

It is used to enter information.

The parameters are used as described below:

  • x/y : The starting coordinates of the tag, if not, or the information input field. If the y value is entered as 0, a pop-up screen opens for entering information. The text is displayed in the middle of the screen. It returns when logged in. The x value is also valid on the popup screen.
  • tag: Description information to display in front of the information entry field. A variable can be used in the tag text.

Format parameters :

  • type : (text, int, decimal, date, time)
  • min: Minimum character length for text, minimum number to enter for int/decimal (must be separated by a dot (.) if decimal limit is given), minimum date/time for date/time
  • max: Maximum character length for text, maximum number to enter for int/decimal (must be separated by a dot (.) if decimal limit is given), maximum date/time for date/time
  • camera: If the boolean is true, camera readout is active, false is passive. If camera is not used, the default value is false. (as of v1.16)
  • picker: If the boolean is true, the calendar is displayed for the date selection process. If the picker is not used, the default value is false. This feature can be used when the type is of date. (as of v1.16)
  • alignment: When inputs are used as pop-ups, it shows where they will open on the screen. The values are bottom, center, and top. If not used, the default is center. (as of v1.29)
  • description:  When inputs are used as pop-ups, it allows adding a description under the input field. It can be used as multiple rows.
    \n should be used to go to the new row. (as of v1.29)

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
max":"10"},@user_name)
Input(1,4,"Count", {"type":"int","min":"1","max":"5"} ,@count)
Input(1,4,"Quantity", {"type":"decimal","min":"1.0","
max":"5.0"},@quantity)
Input(1,4,"Date", {"type":"date","min":"1-1-1990","
max":"31-12-2020","picker":"true"},@date)
Input(1,4,"Time", {"type":"time","min":"09:00","max"
:"16:00"},@time )

Input(1,4,"Barcode", {"type":"text","min":"1","max":"10",
"camera":"true"},@barcode)

Input(1,4,"Barcode", {"type":"text","min":"1","max":"10",
"alignment":"top"},@barcode)

Input(1,4,"Barcode", {"type":"text","min":"1","max":"10",
"description":"description +info"},@barcode)

1.0
MenuItemMenuItem(form name,
menu text, authorization code, icon number)

Creates a menu option. MenuRun command must be run to display the menu on the screen.
The code defined in the authorization code section is used to authorize users for the menu on the User Definitions screen in the Sys application.
The icon number parameter is optional. It enables displaying icons in front of menus in the mobile application. The available menu icon numbers can be found here.

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.
UserName")

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.
It is possible to switch between the pages with the up and down arrow keys. In the columned list, it is possible to scroll to the invisible part of the screen with the right-left arrow keys.

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 buttonsA 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,
JSON format parameters, result variable)

Örnek Example: 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