Page context is changing to pyWorkPage when user clicks on button to run Local Action
I have a requirement to click on a button to run a Local Action in grid context . The source to Grid is UserPage.pxResults() , here what happens is : Page context is changing to pyWorkPage when user clicks on button to run Local Action and pyWorkPage is overwritten with UserPage that we provided as Using Page . Local Action is defined in Work Class and referring via Using Page option . This issue happens on Pega7.3.1 platform.
***Edited by Moderator: Pallavi to update platform capability tags***
It is an expected behaviour, Whenever you do anything in pega on case-level by default it will take pyWorkPage context.
I don't think this is the right approach. Developer Help Guidealso confirms that Launch > Local Action does not operate normally in repeating grids and we should instead make use of List > open Local Action which works on the repeat grid's row context.
As mentioned above, if you are launching a local action from a grid then you should use the list based local action to do this in the correct context.
Copying the warning from the above linked help:
If this control is located in a repeating grid row (from a button or icon, for example), then you should click the All actions link and select List > Open local action. Local action does not operate normally in the repeating grid environment.