Anvaigo Page Elements
Anvaigo Page Elements define the depiction of an Anvaigo Page in the Anvaigo Mobile App. An Anvaigo Page Element has the following properties:
The field Table No. corresponds to a number of a Dynamics table.
Element Type
The Element Type defines whether the Anvaigo Page Element deals with the layout of a card or a list and for which clients the Anvaigo Page is designed.
For the Anvaigo Mobile App only Anvaigo Pages of
Element Type Mobile App – Card or Mobile App – List will be available.
Visible
The marker Visible can be used to temporarily hide an Anvaigo Page Element, for instance when the element has not been conclusively installed yet at the time of publication.
Readonly
With the Readonly marker you can indicate whether the Anvaigo Page Element is supposed to be protected against changes.
If this write protection is enabled on an Anvaigo Page Element, no changes can be carried out on the fields displayed.
Whether the Anvaigo User is able to save the data on his device depends on the access rights which have been set up for the Anvaigo Page and the table.
Defines what mode the Anvaigo Page will be in when opened. You can select inbetween View and Edit.
A Read-only write protection on the field level means that this field cannot be modified, independent of whether the page has been unblocked afterward by implementing a function.
Additional Properties of Anvaigo Page Elements
If you select an Anvaigo Page Element on the setup card of an Anvaigo Page and click on Additional Properties, you receive the following configuration options:
Double Click Action/Direct Link
On the tab Double Click Action/Direct Link you can specify if you want to open another Anvaigo Page or perform an action on double clicking.
Open Anvaigo Page
If you want to open an Anvaigo Page, type in the field
Open Anvaigo Page the code of the Anvaigo Page you want to open.
The entered Anvaigo Page needs for the corresponding client at least one Anvaigo Page Element. Otherwise the Anvaigo Page can not be found and therefore not opened in the client.
The double click is only possible on lists in the Anvaigo Mobile App with activated write protection. In Anvaigo Mobile App an arrow at the right edge of the current line indicates the possibility for a direct link.
Within the Anvaigo Mobile App the action code OPENLINEMENU() opens the line menu for a record
Normally the relationship between the current Anvaigo Page and the one to be opened is created automatically via the global setup in the Anvaigo Page Table-Field Relation of the Anvaigo Client Suite. If a deviating relationship exists between the two or a relationship that cannot be depicted via simple field relations, a code can be indicated in the Custom TableRelation field that specifies this relation defined in C/AL code or via Anvaigo Script (see here).
If you want to execute some other desired action via double click, enter the code for the action that you have programmed via C/AL code or Anvaigo Script into the field Action Code.
If an Anvaigo Page or an Action Code becomes available the first time for an Anvaigo User in Anvaigo Mobile App, you have to publish your Anvaigo Page. This ensures Anvaigo only sends the required Anvaigo Pages and Action Codes to the mobile device. This speeds up synchronization process. After synchronization, new Anvaigo Pages and/or Action Codes are available on the mobile device. Since version 4.13, it is not required to manually create SQL scripts any more. This is now done automatically.
Behavior Tab
In the Behavior Tab you can define the behavior of the Anvaigo Page to specific events, as well as preferences for the appearance.
The Anvaigo Mobile App writes each record change immediately into the local database on the device. Therefor no setup regarding write behavior is necessary. This means that the field values of all primary key fields already have to be known during the first write operation or must be initialized with default values.
In the field Paging Counter per Page you can specify the maximum number of records that are supposed to be depicted on one Anvaigo Page Element type list. At a value of 0 the setting is adopted by the setup. It is fundamentally recommended to set this value so that only the exact number of records are displayed that the Anvaigo Page height in the client allows. This increases both the loading speed and the display speed in the Anvaigo Mobile App. The Anvaigo Mobile App shows all records, because all records are saved locally on the device.
Sorting Tab
In the Sorting Tab you can choose a key of a table and set the sorting on an Anvaigo Page.
Key
Here you can select the Key of the table how the data on the Anvaigo Page will be sorted.
Here you can select the sort order. Possible options are ascending and descending.
Mobile Tab
The Mobile Tab contains properties, that are needed in the Anvaigo Mobile App.
A check mark in the field Table Layout sets the depiction of a list into table layout. If this propery is set to false, the fields will be shown in tiles – either in one line or multiple lines.
In the field Width the width of a list in Anvaigo Mobile App is set. On all other user interfaces that does not allow any changes in size, the Anvaigo Page will use all available space on the screen. If no sizes have been entered, the standard value from the settings is adopted.
This field sets an Action Code that is run for each record. A typical usage scenario is a dynamic layout definition based on your current record using Anvaigo Script (see here).
Short Press Tab
In the Short Press Tab you can define the behavior of an Anvaigo Page in Anvaigo Mobile App when a list entry is pressed shortly.
If you want to execute an arbitrary action after a short press, enter the code of that action into the field Short Press Action you have programmed via Anvaigo Script in the Anvaigo Mobile App.
If you want to open an Anvaigo Page after a short press, enter the code of that Anvaigo Page into the field Short Press Anvaigo Page Code.
Normally the relationship between the current Anvaigo Page and the one to be opened is created automatically via the global setup in the Short Press Custom Table Relation of the Anvaigo Page Table-Field Relation of the Anvaigo Client Suite. If a deviating relationship exists between the two or a relationship that cannot be depicted via simple field relations, a code can be indicated in the Short Press Custom Table Relation field that specifies this relation defined in Anvaigo Script (see here.)
Long Press Tab
In the Long Press Tab you can define the behavior of an Anvaigo Page in the Anvaigo Mobile App when a list entry is pressed long.
If you want to execute an arbitrary action after a long press, enter the code of that action into the field Long Press Actionyou have programmed via Anvaigo Script in the Anvaigo Mobile App.
If you want to open an Anvaigo Page after a long press, enter the code of that Anvaigo Page into the field Long Press Open Anvaigo Page.
Normally the relationship between the current Anvaigo Page and the one to be opened is created automatically via the global setup in the Long Press Custom Table Relation of the . If a deviating relationship exists between the two or a relationship that cannot be depicted via simple field relations, a code can be indicated in the Long Press Custom Table Relation field that specifies this relation defined in Anvaigo Script (see here).
If an Anvaigo Page or an Action Code becomes available the first time for an Anvaigo User in Anvaigo Mobile App, you have to publish your Anvaigo Page. This ensures Anvaigo only sends the required Anvaigo Pages and Action Codes to the mobile device. This speeds up synchronization process. After synchronization, new Anvaigo Pages and/or Action Codes are available on the mobile device. Since version 4.13, it is not required to manually create SQL scripts any more. This is now done automatically.