Wednesday, June 27, 2012

Embedded List View from Main List View


We can show embedded list view from Smart info setting at Format tab. One list view row Expand->show related other list view under that row as below.


 

At format tab as below we can use activity and tick embedded.


Call Html fragment from activity

 

 


 


From fragment we can call activity and load other List view with data as below. At parameter page we have pyRowIndex of clicked main list view row number. We can use that row index and get related data to embedded list view from calling activity.


 

Call activity from JSP(java) (Html section or fragment)
<% String activityName = "GetDependentsDetails";pega_rules_pegarulesutilities.callActivity(tools.findPage("pyWorkPage") activityName,tools.getParameterPage()) ;%>


 Hardcode pyWorkPage (we used data class so we have to call activity at work class.Because we hard code that .IF activity at work class we can called tools.getPrimaryPage ();

Pass parameter page as use this