Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Web Server - page of object PmDataTable

Description:
The link-up of the object to the WEB server
Configuration items:
Enable as WEB componentIt indicates if this object has to be registered as a WEB server component
PmWeb objectPath in the objects tree to the PmWeb, PmWebFolder or PmWebLang object where the registration is carried out.
Web component identifierIt specifies unique identifier of this WEB component. The full URL address to this component is then for example:

"http://ComputerName:Port/Identifier"

Macro expression can be used for input (it is evaluated while the application is launching).

View in HTML components listIf checked, the component will be visiblein the component list. Displaying such list is done through the WEB object registering this component (WEB object PmWeb, PmWebFolder or PmWebLang).

If not checked, the component will not be visible in the list. But it will be accessible through its WEB adress. It is useful for system components (e.g. the data offered to another applications), that are not intended to be choosen from WEB browsers.

When displaying the component list in the WEB browser this option can be supressed by pressing the Shift key and clicking the list title simultaneously. At this moment the list is reopened displaying all the components (including system components).

Note:
By this page it is possible to register the object as a component into the WEB server (i.e. into the PmWeb, PmWebFolder or PmWebLang object).

The client that wants to read the data from this component, he must have the access right WebRead. If the client wants to write the data, he must have the access right WebWrite. The client requiring data from this WEB component is type of "PmDataClient" from the license point of view.

 
If the object is registered then it offers the WEB pages in the intranet on the following URL address:
http://ComputerName:Port/ComponentId/Page

Where:

ComputerName - network computer name on which this PROMOTIC application runs.
Port - port set in the PmWeb object (if the port equals to 80, it needn't be entered)
ComponentId - if the component is directly registered with the PmWeb object, then the text is stated here in the configurator "Web component identifier" on this page. If the component is registered with the PmWebFolder or PmWebLang object, then the identifier of this object is here even before, for example, "IdFolder/IdComponent", etc.
Page - page name that is offered by the object. If the page isn't entered then the default page will be displayed.
 
Another offered page is data.xml that offers the data content in the PmDataTable object as XML data. But these XML data can even have variant format so the fmt parameter has to be entered that defines the format of offered XML data. The following formats are available:
- data.xml?fmt=full offers XML data inclusive of the variables list and for each variable its name and value.
- data.xml?fmt=purevalue offers XML data inclusive of the values list separated by the semi-colon.
 
Thus the Web client has an access to the XML data of the application, it can read the data and write into them. The common client is the MS Internet Explorer or another PROMOTIC application. Another PROMOTIC application as a client then makes use of the ReadFromWeb or WriteToWeb methods of the PmDataTable object.
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice