DATA Pages
DATA Pages
b) You can now configure data pages to aggregate data from multiple sources. With this enhancement,
data pages load more easily, making your implementations faster and easier. For example, by
aggregating sources, you can call multiple REST connectors to load your data page, instead of using an
activity.
2. How many ways to load Datapage? (many ways)
We have method in activity called Load-Data Page to load data page asynchronously. Also you can call data
page from activity, Data transform, Sections (Layouts and dropdown) as source.
When above rules executed for the first time Data page will get loaded.
3. How many ways to clear the Datapage? (many ways)
1. Click on Clear data page button in load
2. You can remove the content of the data page through an activity by using Page-Remove with the. it
will applicable for Parameterized data pages also.
Example
Page-Remove D_YourDataPage[ParamName:ParamValue]
3. If you wish to flush all the available instances of a particular data page, call "FlushDeclarativePage"
Activity and pass page name as the parameter to be flushed along with parameter pyFlushAll as true.
c) you can invoke an OOTB function "pega.getDeclarativePageUtils().flushPage(<YourPageName>));" to
flush out data page instances
d) use java method as below to remove all instances of Data page,
@java("pega.getDeclarativePageUtils().deleteAllInstancesOfDeclarativePage(\"yourdatapagename\")")
set this to a dummy parameter like param.TempFlush to allow the DT to save.
e) @(Pega-RULES:DeclarePages).pzDeleteAllInstancesOfDeclarativePage(tools,"<Data Page Name>")
b. management tab in Data page
a)
I. No node in scope when we select editable in mode. Why?
The purpose of editable Datapages is to manipulate the data on Datapage. Requestor 1 fetches the actual data
and modifies the data. If it is fetch by requestor 2, data inconsistency is there. Because of these issues, pega has
removed the node scope for the editable mode.
II. What is look up source option in Datapages?
The look up option for Datapage is obj-open where the look up is use in order to fetch the single record in
Datatable using clasky.
III. How to use two data sources in Datapage?
In order to use two data sources in a Datapage, we have one option called aggregate source. If we will go with
the aggregate source then we can two different sources for Datapage. Other than that in normal regular process
also we can add a when condition and add one more source which is conditional sourcing we can implement.
IV. How to call Datapage with in another Datapage?
We can call Datapage from another Datapage when we the source data transform or activity. Suppose it is data
transform, with in a data transform, anywhere if you use or refer the name of another data page, then other
Datapage will be automatically called.
You could directly use "Set" method in the data transform rule.
Action: Set
Target: Your Page/PageList were you want to store the content of DataPage.
Source: D_YourDataPageName[Param1:ParamValue1,Param2:ParamValue2]
Generally rule resolution will works on access group to find load activity to load data on to
data page. And generally Data page will load data only when it referenced in some place.
that time it can consume that particular requester access group to load data, there no
problem system can use that. But the point of or the utility of data page is to load one
time and share the data to all the requesters connected to particular node.
If it use every requester access group, then it has to load for every requester. Then it loose
the concept of Node level Data page.
So for this reason only we have maintain a separate access group for node level data page
to invoke load activity to load the data and it can be shared between all the requesters
connected to that particular node.
thanks, it can be helpful to others who has a confusion with this point.
Or
Node level data page acts as a separate requestor which runs in its own execution stack, which is different from
any requestor user. Since it is independent we need to specify the access group for node scoped data page.
Example: Even though you private check out data page source activity, and modify with your changes. When
you run the data page standalone from actions>> run menu, you would notice that your private ruleset changes
are not picked. This is one justification that node level data page will run in its own execution stack .
I. Explain the refresh Strategy in Data Pages?
II. How to call Data Page from different rules?
III. How to Pass Parameters to the data page from Data transform?
IV. How to flush data page dynamically?
V. Explain Savable data pages? How to configure Savable data pages?
VI. How to handle exceptions in data pages?
VII. How can we load datapage asynchronously?
Data page can be loaded asynchronously by calling the datapage from activity. In activity there is method
available, load datapage, when we use that method and provide the datapage name then data page will get
loaded asynchconously, which means that activity at the calling step will not wait. Activity will call the data page
and will proceed forward on its way. Where as datapage executed in a background in a diferent thread. Like we
are calling activity from another activity by using queue instuction how it asynchronously execute. The way load
datapage is going to execute the activity and datapage asynchronously.
VIII. If we do not mention any refresh strategy, when the D page does gets removed from server?
IX. What is Reload once per interaction?
X. What is Pool ID in Load-Data Page Method?
XI. What is Keyed Data access Page? Explain the purpose?
The advantage of using this keyed access Datapage is entire list data will retrieve and being made available in
the clipboard. So whenever you are referring a page property which is calling a Datapage and passing the key
values. Now it will search existing Datapage from clipboard and retrieve the data from the clipboard. That data
we are getting on the screen. Datapage loaded only once hit the database one time only.
So by using keyed access pages, search will happen directly on the clipboard, not on the data type or table.
XIII. Difference between Keyed Data Pages and Parameterized data pages in one scenario?
We have search screen three, we are going to serach the customer details with customer ID. We will pass this ID
as a parameter to the datapage, in the datapage I am going to do a look up, means it is going to search for the
customer details. On the clipboard, it will get created whenever a customer ID been entered, and click on
button probably calling an activity and activity is calling datapage and datapage is getting loaded. That is case,
then datapage is going to created on clipboard for each parameter.
For parameterised datapage, for every customer search, the search is happening by hitting the database. But we
go with keyed page access, the search will happen on the clipboard. Because datapage is already fetch all the
customer details on the clipboard on the pxresults. As you are passing the customer ID as key for datapage of list
structure. Now the search will happen in the pxresults of datapage which is there on the clipboard. It going to
match with customer on the pxresults1,2,3, and retrieve that page record and that will automatically copied to
the page on which you are calling the datapage of keyed page access. That how it is going to work. This is
efficient process, there is no need to hit the database again
and again when we go with keys.