Page History
3- Arayüz Komutları Interface Commands
Komut Adı | Kullanım Şekli | Açıklama | Örnek Kullanım | Eklendiği SürümCommand Name | Usage | Description | Example | Version |
---|---|---|---|---|---|---|---|---|
Text | Text(sütuncolumn,satırrow,metintext,JSON) Ekranda belirtilen sütun ve satıra verilen metni yazar. Eğer tanımlanmışsa, JSON biçimindeki parametrelere göre işlem yapar. Sütun parametresi sadece Telnet el terminallerinde geçerlidir. Komutun metin kısmında, değişkenler kullanılabilir. JSON Parametre içinde kullanılabilecek değerler:
| Parametre kullanımı opsiyoneldirWrites 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,"Malzeme AdıMaterial Name") Text(0,0,"Firma SeçimCompany Selection") Text(1,1, @barkod@barcode,{"start":5,"length":10}) Text(1,1, "Malzeme Adı Material Name: @malzemeadi@materialname", {"case":" upper"}) Set(@Style.hataerror, {"color" : "Red-Black","effect" : "Bold-Blink", "size":"4"}) Text(1,1, @hata@error,{"style":"@Style.hataerror"}) Text(1,1, @malzemeadi@materialname,{"title":"Malzeme AdıMaterial Name"}) (As of v1 .2 itibariyle) | 1.0 | ||||
Input | Input(x, y, etikettag, Bilgi girişi yapmak için kullanılır. Parametreleri altta açıklandığı şekilde kullanılırformat parameters, result variable) | 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,"Kullanici AdiUser Name", {"type":"text","min":"1"," 1.0 Input(1,4,"BarkodBarcode", {"type":"text","min":"1","max":"10", Input(1,4,"BarkodBarcode", {"type":"text","min":"1","max":"10", Input(1,4,"BarkodBarcode", {"type":"text","min":"1","max":"10", | 1.0 | ||||
MenuItem | MenuItem(form adıname, menü metni, yetki kodu, simge numarası) | Bir menü seçeneği oluşturur. Menünün ekranda gösterilmesi için MenuRun komutu çalıştırılmalıdır. Yetki kodu bölümünde tanımlanan kod, Sys uygulamasında Kullanıcı Tanımları ekranında, kullanıcılara menü yetkisi vermek için kullanılır. Simge numarası parametresi opsiyoneldir. Mobil uygulamada menülerin önünde simge gösterilmesini sağlar. Kullanılabilecek menü simge numaralarına şuradan ulaşılabilir. | MenuItem(MalKabul, "MAL KABULmenu 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( satır.sütun, başlık)Seçenekleri tanımlanmış menünün ekranda gösterilmesini sağlar. Menünün en üstünde gösterilmek üzere bir başlık belirlenebilir. Başlık metninde değişken adı yazılabilir. (v1.2 itibariyle) Menüden seçim işlemi, klavyedeki 1-9 arası sayı tuşları ile ya da dokunmatik ekranlarda seçeneğe tıklayarak yapılabilir. Klavyedeki ok tuşlarıyla menü seçenekleri arasında dolaşılabilir 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,"ANA MENÜMAIN MENU") MenuRun(1,1,"ANA MENÜMAIN MENU-@@LoginUser. | 1.0 | ||||
PopupView | PopupView(değişkenvariable adıname, JSON, sonuçresult değişkeni) Verilen liste yapısındaki değişkenin değerlerinin, açılan ayrı bir ekranda listelenebilmesini ve seçim yapılabilmesini sağlar. JSON biçiminde tanımlanan parametreleri şunlardır: fields: Gösterilecek alanlar. Her alan bir JSON dizi nesnesi olarak tanımlanır. Alanın gösterim özellikleri (dikme) karakteriyle ayrılarak belirtilir. Yazım biçimi şöyledir: Alan Adı Sütun başlığı (Ör. Stok Kodu) Alanın kaç karakter gösterileceği (Ör.10) Hizalama 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: Liste iki şekilde gösterilebilir: Sütunlu liste The list can be displayed in two ways: columned list (mode=list) ya da alt alta or top and bottom (mode=card) Eğer bir If there is no "mode" nesnesi yoksa, sütunlu liste gösterileceği varsayılır. Çok sayıda satır varsa, sayfayı dolduracak kadarı gösterilir. Aşağı-yukarı ok tuşlarıyla sayfalar arasında geçiş yapılır. Sütunlu listede sağ-sol ok tuşlarıyla listede ekranın görünmeyen kısmına kaydırma yapılabilir. size: Açılacak ekranın boyutları "genişlik yükseklik" şeklinde tanımlanabilir. Varsayılan olarak 40 25 değerleri geçerlidir. Telnet için geçerlidir. title: Ekranın en üstünde başlık gösterilebilir. style: Liste için belirlenen stili uygular. Listelenen her satırın başında satır numarası gösterilir. Klavyeden satırın numarası yazılıp Enter tuşuna basılarak ya da dokunmatik ekranda ilgili seçeneğe dokunarak seçim yapılabilir. multiselect : boolean true olması durumunda listelerden çoklu seçim yapılması desteklenir. multiselect belirtilmezse default değer false alınır. Çoklu seçim desteklenmez. multiselect kullanımıyla liste seçimi aşağıdaki şekilde döndürülür. (v1.16 itibariyleobject, 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(@liste@list.rows, {"mode":"list","size":" 30|20","title":"Stok ListesiStock List","fields": ["stk_koducode|Stok KoduStock Code|10|L","stk_adiname|StokStock AdıName|15|L"]},@secim@selection) PopupView(@liste@list.rows, {"mode":"card","fields": ["stk_koducode|Stok KoduStock Code|10|L","stk_adiname|StokStock AdıName|15|L"]},@secim@selection) PopupView(@depoliste@warehouselist.rows, {"title": "KAYNAKSOURCE DEPO SEÇİMİWAREHOUSE SELECTION", "fields":["depowarehouse_koducode|DepoWarehouse KoduCode|10|L","depowarehouse_adiname|Depo AdıWarehouse Name|15|L"], "multiselect":"false","style" : "@Style.listelist"},@secim@selection) | 1.0 | ||||
TableView | TableView(değişkenvariable adıname, ilk satır, ilk sütunfirst row, first column, JSON) Verilen liste yapısındaki değişkenin değerlerini ekranda bir tablo olarak gösterir. İlk sütun parametresi sadece Telnet için geçerlidir. Bu parametreye yazılan değer mobil uygulamada tablonun ekranda kaç satırlık yer kaplayacağını belirler. JSON biçiminde tanımlanan gösterim parametrelerinde, rows: Değişken içindeki kayıtların kaç tanesinin basılacağını gösterir. start: Listenin kaçıncı kaydından başlanacağını gösterir. (Opsiyonel. Kullanılmazsa ilk kayıttan başlar.) columns: Sütunların özellikleri. Her sütun bir JSON dizi nesnesi olarak tanımlanır. Sütunun gösterim özellikleri | (dikme) karakteriyle ayrılarak belirtilir. | Yazım biçimi şöyledir: Alan Adı | Sütun başlığı (Ör. Stok Kodu) Alanın kaç karakter gösterileceği (Ör. 10 ya da 3-7. 3.karakterden 7.karaktere kadar) Hizalama 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) Tablonun ekrana sığmayan bölümlerini görmek için ok tuşları kullanılabilirThe arrow keys can be used to see the parts of the table that do not fit on the screen. | TableView(@liste@list.rows,1,5, {"rows":10,"columns": 1.0 ["stk_koducode|Stok KoduStock Code|10|L","stk_adiname|Stok AdıStock Name|15|L"]}) | 1.0 | ||||
ShowMessage | ShowMessage(JSON) Mesaj vermek ya da onay sormak için kolay ekran oluşturmayı sağlar. Mesaj ekranda ayrı bir pencere/popup gibi gösterilir. Mesajdan çıkıldığında, eski ekrana geri döner. JSON biçiminde tanımlanan parametreleri şunlardır: title: Başlık message: Mesaj metni. Değişken kullanılabilir buttons: Eylem düğmeleri. En fazla 3 düğme tanımlanabilir. Klavyeden sırasıyla 1,2,3 tuşları bu düğme seçeneklerine karşılık gelir. İlk seçenek için ya da tek düğme varsa Enter tuşu kullanılabilir. Tek düğme varsa ya da son seçenek için ESC düğmesi kullanılabilir. Hiç düğme belirtilmemişse "TAMAM" olarak gösterilir. | style: Stil tanımı. Sadece telnet el terminalleri içindir. (v1.2 itibariyle Android terminaller için de kullanılabilir.) Tanımlanan stil içindeki 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 ve and .text elemanları kullanılırelements in the defined style are used. | ShowMessage({"title": "HATAERROR", "message" : "@kod @code 1.0 KODLU MALZEME BULUNAMADICODED MATERIAL NOT FOUND!","buttons": "TAMAMOK"}, @secim@selection) ShowMessage({"title": "HATAERROR", "message" : "HATALI SEÇİMINCORRECT SELECTION!" "buttons": "TAMAMOK|İPTALCANCEL", "style" : "@Style.mesajmessage"}, @secim@selection) | 1.0 | ||||
Image | başlangıç satırı, bitiş satırı, JSON | Malzeme ve cari hesaplar için kaydedilmiş resim içeriğini getirir. Belirtilen satırlar arasında gösterilir. JSON biçiminde tanımlanan parametreleri şunlardır: RecordType : Kaydın tür numarası. Cari-142,Malzemestart 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 : Kayıt Record Id ImageType : 0-Küçük resim Thumbnail (VarsayılanDefault) 1- OrijinalBu komut sadece mobil uygulamada kullanım için anlamlıdırOriginal This command is meaningful only for use in the mobile application. | Image(5,8, {"RecordType" : "145", "RecordId": 1}) | 1.0 | |||
ClearScreen | ClearScreen() | Ekranı temizlerClears the screen. | ClearScreen() | 1.0 | ||||
ClearLines | ClearLines(başlangıç satırı, bitiş satırı)Verilen satırlar arasındaki değerleri temizlerstart row, end row) | Resets the values between the given lines. | ClearLines(1,5) | 1.0 | ||||
Beep | Beep(çalma sayısı) El terminalinden belirtilen sayıda tekrarlanan bip sesi çıkartır. Mobil uygulamada işletim sisteminin desteklediği diğer ses dosyaları çalınabilir. Tekrar sayısı opsiyoneldirnumber 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, etikettag, Örnek Example: ListBox(değişkenvariable, y, etikettag, alan adı, sonuç değişkeni)Verilen listeden field name, result variable) | It waits for selecting from the given list (Combobox) . değişken: Bir liste satırları şeklinde, bir ya da daha çok kayıt içerecek şekilde tanımlanır. satır: Liste kutusunun görüntüleneceği satır. etiket: Bilgi girişi alanının önünde görüntülenecek açıklama bilgisi. Etiket metninde değişken kullanılabilir. alan adı: Değişken listesindeki gösterilecek sütunun adı. sonuç değişkeni: Girilen bilginin atanacağı değişken. Bu değişken ile seçim yapılan satır değeri dönervariable: 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",@liste@list) ListBox(@liste@list.rows, 1, "Depo SeçimiWarehouse Selection", "Name",@secim@selection) Text(1,2,"@liste@list.rows.@secim@selection.Code", {"title":"Seçilen Depo KoduSelected Warehouse Code","style": {"color":"Blue","titleColor":"Green", "effect":"Bold"}}) | 1.16 |