Question

Centene Corporation
US
Last activity: 30 Dec 2021 12:56 EST
Conditions on actions for a button control not working as expected
Pega V.8.5.2
On the Member Issue creation screen I have a "Create" button with action set assigned to the click event. There is a new requirement that before creating a new Member Issue, the application will run a report that will identify Member Issues for that memberID with the same LOBState created in the last 7 days and display the list of Member issues in a modal form so that the operator can avoid creating a duplicate MI.
The action set begins with a data transform that sets text property pyDisplayHarness.CheckTrue = "true", sets parameters SubscriberID and LOBState for RD to populate D_ListOfRecentMIs.pxResults and for each page in pxResults, sets pyDisplayHarness.IsRecentMIFound ="true". This data transform is working as expected and I can see in trace that pyDisplayHarness.CheckTrue = "true" and if there are results in D_ListORecentMIs pyDisplayHarness.IsRecentMIFound ="true".
These two properties are then used as conditions for the actions that would create a new MI.
when other property pyDisplayHarness.IsRecentMIFound != pyDisplayHarness.CheckTrue
and for the Local Action DisplayDuplicateMIs Target Overlay.
when other property pyDisplayHarness.IsRecentMIFound = pyDisplayHarness.CheckTrue
Pega V.8.5.2
On the Member Issue creation screen I have a "Create" button with action set assigned to the click event. There is a new requirement that before creating a new Member Issue, the application will run a report that will identify Member Issues for that memberID with the same LOBState created in the last 7 days and display the list of Member issues in a modal form so that the operator can avoid creating a duplicate MI.
The action set begins with a data transform that sets text property pyDisplayHarness.CheckTrue = "true", sets parameters SubscriberID and LOBState for RD to populate D_ListOfRecentMIs.pxResults and for each page in pxResults, sets pyDisplayHarness.IsRecentMIFound ="true". This data transform is working as expected and I can see in trace that pyDisplayHarness.CheckTrue = "true" and if there are results in D_ListORecentMIs pyDisplayHarness.IsRecentMIFound ="true".
These two properties are then used as conditions for the actions that would create a new MI.
when other property pyDisplayHarness.IsRecentMIFound != pyDisplayHarness.CheckTrue
and for the Local Action DisplayDuplicateMIs Target Overlay.
when other property pyDisplayHarness.IsRecentMIFound = pyDisplayHarness.CheckTrue
What I am seeing invariably is that regardless of the value of pyDisplayHarness.IsRecentMIFound, the create new MI related actions are NOT being executed but the Local Action DisplayDuplicateMIs IS being executed. This would lead me to believe that (pyDisplayHarness.IsRecentMIFound = pyDisplayHarness.CheckTrue) is always true, even when I can see in the trace that CheckTrue is "true" and IsRecentMIFound does not exist on pyDisplayHarness.
Would a post values action be required for the new values set by the data transform to be recognized and utilized in the when conditions of the actions following it?