Hi All, We have got a property defined in one of the work-classes. This property basically contains a code ;each code has a corresponding description which is available in a data page. In the UI (Section) we need to show this description instead of code. As of now the logic we have used is as below 1.Create a property of type "Single Page" which is based on the Data page class 2.Data Access --> Copy from data page. 3.The code property is passed as the input parameter to this Data Page. 4.In the UI Section we have defined a text box which is populated from this Single Page Property.desc. To me this approach seems to be bit convoluted ;isn't there a better and easy way to retrieve the description correspond to a key(in our case code). Our team is new to PEGA so still in learning phase...:) Thanks, George
***Updated by moderator: Lochan. Removed user added Ask the Expert tag. Apologies for confusion, shouldn't have been an end-user option.
You are almost there. As per my understanding you should use data page with key defined and on the property you should pass the key to the data page. The advantage of this approach is the data page would be loaded completely at once and you will be able to access the data of one specific page on the fly. But for parameter data page it would create different data page instance for each parameter and you will be able to see that in the data page from the clipboard.
Remove the parameter , set to use key instead. Define the code that is present in the work class as the key of the data page.
On the property tab copy from data page and define the key value.
Please note that the key value should be set before you render the page in the UI.