Property "Page Data Request" <pdr>

Top  Previous  Next

The data required by a page should be declared with the configuration element <dataRequest> in the MoreMotion AF configuration. Unless there is an exceptional case, the MoreMotion Application Studio can sniff required data sources used in a page without needing an extra effort and can create the <dataRequest> definitions in the configuration.

If the data provided by the data sources need to be processed in a non-standard way (such as filtering the data nodes, or encrypting the values of them) then additional definitions can be made in the "Page Data Request" property of a page.

These definition can be made in two formats:

1. In XML format using MoreMotion AF configuration element <dataRequest>.

Example:

 

<dataRequest name="products" dataSource="products" selectAll="false">
  <node name="ID" newName="IDX" encrypt="true"/>
  <node name="NAME"/>
</dataRequest>

 

See MoreMotion AF Page Data Request for more details.

 
2. In MoreMotion Application Studio specific format that. The MoreMotion AF configuration elements are build out of the definitions made in this format.

Note: This type of definitions can only be made to define the nodes to encrypt.

Syntax:

data-source-name name-of-the-node-to-encrypt [new-name-of-the-node-to-encrypt] [/encryption-key]

              [,name-of-the-node-to-encrypt [new-name-of-the-node-to-encrypt] [/encryption-key] ... ]

 

 

data-source-name

The name of the data source whose nodes to be encrypted.

name-of-the-node-to-encrypt

The name of the data node of the data source whose value is to be encrypted.

new-name-of-the-node-to-encrypt

This optional parameter can be used if the encrypted value should be provided in another data node with a different name

encryption-key

This optional parameter defines the encryption key.

Exampes:

customers ID, CODE;   Encrypt ID and CODE nodes in the customers data source using encryption keys "ID" and "CODE".

products ID IDX;      Encrypt the value of the ID node in the products data source into new node IDX using encryption key "IDX".

products ID/x123;     Encrypt ID node in the products data source using encryption key "x123".

products ID IDX/x123; Encrypt the value of the ID node in the products data source into new node IDX using encryption key "x123".

 

 

The processing order the data sources

Unless otherwise specified the data requests are processed in the runtime in the order of their usage in the page. The one used at the top most, is processed in the first place, and the one used at the bottom most is at the last place. In case of a data source depends on another one, this order can be important.

This property can also be used to define the processing order of the data requests.

Example:

ds2;

ds1;

 

 

The definitions in the example ensures that the MoreMotion AF triggers the data source ds2 first and the data source ds1.