We have a decision table that our business would like to be able to modify values, the param.resValue. They feel this might be a little confusing so we want to have a simple Pega UI that they can use that will modify those values. We use a Pega Portal with dynamic layouts for the UI. Is there a way this could modify the decision table? Thanks
***Edited by Moderator Marissa to update Platform Capability tags****
Pega rules are database objects that you can read into your application using Obj-Open, just like any work object. Once you have the data on the clipboard, use standard Pega to build a UI. Afterwards Obj-Save of the page will write back the updated rule.
Before you start building, begin by just opening the rule in the dev studio, and examine the clipboard contents. The rule will not be in pyWorkPage, I think you should look for a page named RH1 - but I would not recommend using the same Pega name for your version.
@TALBJ We have created a page property in the class that we want to use for the UI and we have successfully created an activity that uses Obj-Open to fill our page with the contents of the RH_1 clipboard page.
Now we are having trouble connecting this activity and the page to the UI. Any advice on this?
Currently, it is set up as a dynamic layout with a table inside whose source is a property (the page we created). Then, the first column value is OurPageName.pyResults(1).pyCondition which is a ValueList. However, the table column is not populated and we dont see our page on the clipboard.
Posted: 8 months ago
Updated: 8 months ago
Posted: 6 Feb 2021 6:36 EST Updated: 12 Feb 2021 2:17 EST
Normally you will want to launch this from a button on some other screen. The button should use Open-URL-in-Window to run a flow. The flow includes Pre and Post operations so that you can launch the activity to fill the page as part of opening the harness, etc. Your new UI would include its own to complete the flow & the Post operation can be used to re-save the data.
The easiest way to build this is to create the button first, and add Open-URL-in-Window to its action set. Type the name of the new flow you want to launch, and click the open-rule mark - Pega will create the flow for you in the correct location. Continue creating the Activities and Sections by typing their names and opening them, and Pega will quickly build everything in the right places so that it should work the first time.
RH_1 will only contain the data when App Studio has it loaded there, so I am glad that you are using Obj-Open to load it yourself.