Discussion
Ford Motor Company
US
Last activity: 6 Apr 2018 19:26 EDT
Converting Dynamic Select into Dropdown control
Hi All,
We are converting the Pega 6.2 into Pega 7, while converting the dynamic select into dropdown.
In Pega 6.2 we have called the activity to get the result for dynamic select, in Pega 7 we dont have option to call the activity in the drop down control.
Can you please someone suggest, what is the best approach for the conversion.
Regards,
Anandh
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Northbridge
CA
hi,
In Pega 7, please create a data page with the source as the same activity. Then use pxDropDown as the control and the source of this can be referred to as the data page.
Alternatively, if the dynamic select is just getting the data from a table, please create a report definition for the same and use the report definition as the source instead.
Regards,
Anusheel Mishra.
Ford Motor Company
US
Thanks Anusheel for your response.
Thats what we thought of doing that, as clipboard page may not right solution. We have created Datapage and populate those value/
Regards,
Anandh
Tech Mahindra
IN
Hi Anandh,
You can also use normal clipboard page as an option. When you select this option, you will get to call a activity. Here you can call your activity which you already created for your dynamic select. Just make a small change in the activity by commenting the Show methods.
Updated: 10 Mar 2016 5:22 EST
Cognizant
IN
The suggestion below attempts to address "what is the best approach for the conversion..." in Anandh’s initial post.
Post-upgrading a 6.X application to 7.1.9 we built a data table (called DropDownValues) that stores the values of all the drop downs found in the application.
Whenever a dropdown requires values for rendering the UI it refers to a data page ( Structure = list ).
This data page has its data source set as a Report Definition ( requires a string parameter ).
The report definition uses the parameter supplied to query the DropDownValues to fetch the relevant results for the concerned dropdown.
In the earlier versions of PRPC; 'datapages' aka 'declarepages' were not sophisticated enough to do this however this 'design pattern' is possible now in P7.
Scotiabank
CA
Hello
I agree with VAMSIRISHNA, using 'Clipboard Page' and calling the same old activity can be done with the least changes made. If your application have huge number of dynamic selects with activity, changing all of them to Data Pages will take huge amount of time. Instead we can choose Clipboard Page and call the old activity to populate the page, only few changes we have to do in the Activity are comment 'Show-Page' and 'Page-Remove' steps.
Regards,
Sandeep
LTIMindtree
CA
Where are you getting the option to call the "old activity" ?
Pegasystems Inc.
IN
First select the Clipboard page in the property panel then it shows the Activity smart Prompt to select the activity.
Levis
IN
We can call Activity or Data transform when we use Clipboard Page as the Source for the dropdown.
Stratosphere Technical Consulting
US
I have another question on using the activity to create a clipboard page for the dropdown. As previously stated, the existing activity is used to create a top level page and the activity no longer removes the page. Is it the case that the top level page created will live in the user session until the user session expires? If it is indeed the case, do you do Page-Remove when user leaves the screen when they click Submit or Cancel button?
Thanks
Pegasystems Inc.
IN
You can refer https://docs-previous.pega.com/pega-7-platform-ui-element-upgrade-guide which has more details for most of the controls / usecases
Capgemini
IN
In Pega 7.2 I do not see any option to enter the Activity Name when we select the Clipboard Page, the only options we get is: Clipboard Page name and the Property For Value, please help
Virtusa
IN
Hi,
In pega 7.X versions, you cannot call activity directly like in dynamic select control. As an alternative you can call the activity in Datapage and Use data page to populate the results in dropdown.
Hope this helps.
Thanks,
Kiran
Pegasystems Inc.
IN
In Pega 6.x , we have Section containing Dynamic Select in Work-xxx Class and source activity is in Data-xxx Class. As we had an option of specifying AppliesTo Class Name for calling Activity, we were able to call activity from any class to populate Dynamic Select in Work-XXX class.
After upgrade when we come to Pega 7.x we use Drop Down and source for this Drop Down we take Data Page , but Data Page now can take source activity only of Code-Pega-List AppliesTo class. Our old activity is from some Org-Div-Data-XXX class.
Please suggested best solution /approach in this scenario