Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Preconfigurations Panel with editable table viewer of data source

Creates the PmPanel object with editable data source table viewer.
 
This preconfiguration can be activated when creating a new object (e.g. by "New object" in the local object menu or by pressing the Insert key after selecting the object) and is included in the group: " / Data tables interface / Viewers".
These configurators can be set before the preconfiguration is created:
The name of created objectName of the object created in the application object tree. This is a system name and must not contain empty string, diacritics, spaces and the first character must not be a number.

Default: "ViewerDataTable".

Enable as WEB componentIt indicates if this object has to be registered as a WEB server component

After this preconfiguration is created, the configurator is se to: PmPanel > Web Server > Enable as WEB component.

Panel titleUser name of the panel that is displayed for example in:
- in the window title bar (if opened outside the workspace)
- in the panel list obtained for example by the FindViewers method

This configurator sets the initial value of the property PmPanel.Title and PmiRoot.ViewerTitle.

Macro expression can be used for input ($.text ..) (it is evaluated while the window is opening).

After this preconfiguration is created, the configurator is se to: PmPanel > Panel > Panel title.

PermissionsOn this page permissions of the object are defined. See Description of the page Permissions.
Member of logical groupsThe list of the identifiers of the logical groups (the comma ',' is the separator), the object belongs into (it is a group member), see Logical groups. The logical group selection can be done in the Member of logical groups window.

After this preconfiguration is created, the configurator is se to: PmObject > Object > Member of logical groups.

Database table nameDatabase table name or database file name
Path to data source objectRelative or absolute path to data source object. The data source object must contain corresponding methods for working with source data.

After this preconfiguration is created, the configurator is se to: PmObject > Object > PROMOTIC object parameters.

Configuration of the viewer according to the data source The default configuration of control elements will be taken from the data source, or defined manually.
Enable - add rowenables the command to add row in the viewer interface
No
Yes
Enable - delete rowenables the command to delete row in the viewer interface
No
Yes
Enable - edit rowenables the command to edit row in the viewer interface
No
Yes
Select the mode of record savingSets the mode in the viewer interface, how each record is saved into the database table
editing disabled - Read only
by each row (default) - Editing by rows with instant writing into the database table
whole content - Editing only in the viewer. SAving the record into the database table will be completed in two steps 1) delete all records 2) create new records
by each cell - Editing by each cell writing into the database table
Enable - create new tableenables the command to create table in the viewer interface
No
Yes
Enable - remove tableenables the command to remove table in the viewer interface
No
Yes
Open the viewer by the onButtonUp event in the button:
pMe.PmPanel.OpenView "./ViewerDataTable", "target:main;"
Open the viewer and set the control buttons of the data source table.:
These parameters can be used to modify the way of controlling the data source table. The default is set in the Data table source in DtiOper method in "GetFunc" section.
pMe.PmPanel.OpenView "./ViewerDataTable", "target:main;", "par:AddRow=1;par:DeleteRow=0;par:EditRow=1;par:SaveMode=row;"
Open the viewer and define the path to data source, together with the name of opened table and control of edit buttons.:
These parameters can be used to modify the way of controlling the data source table. The default is set in the Data table source in DtiOper method in "GetFunc" section.
pMe.PmPanel.OpenView "./ViewerDataTable", "target:main;", "par:SourceId=MyTable;par:DtiPath=/DBase/PmAdo;par:AddRow=1;par:DeleteRow=1; par:EditRow=1;par:SaveMode=row;par:CreateTable=0;par:RemoveTable=0;"
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice