Passing parameters to Create Work Action in a Button
Env: Pega 8.4
I have a Section in class ORG-APP-UI where I defined a Button with an action 'Create Work' on click.
The work is created in class the ORG-APP-Work-MyCase with the flow pyStartCase.
I need to pass the attribute PRN collected from the Section defined in ORG-APP-UI to the pyStartCase (in ORG-APP-Work-MyCase). The Create Work action allows to pass a parameter (if defined in the pyStartCase) but the context of that parameter is not the same of the button (ORG-APP-UI) but the same as pyStartCase (ORG-APP-Work-MyCase).
How can I address my requirement?
***Edited by Moderator: Pallavi to update platform capability tags***
thanks for your prompt answer. It makes sense, I added the class ORG-APP-UI into "Pages & Classes" of the Section where I defined the button and I can now define the PRN parameter value to the property from ORG-APP-UI.
So far so good, but still the case starts without picking the passed parameter (PRN).
Is there anything I have to do in the pyStartCase to pass the PRN parameter to the case itself?