Question
TD Bank
CA
Last activity: 8 Mar 2018 13:55 EST
How to verify if a parameterized datapage exits in clipboard through WHEN rule?
When I reference the data page in WHEN rule to verify if it exists in clipboard, it gets created .So the WHEN rule is always returning true.
Please let me know if there is a way to verify if a parameterized datapage exists without creating it.
In WHEN rule I was verifying : @PageExistsWithClass(D_Customer[pyWorkPage.pyID], tools)
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
When data pages are referenced, they will be created if they do not already exist or if they have expired. Can you provide more details on your use case and why you are trying to check if it is there but do not want to create it?
TD Bank
CA
I want to display a section only if this DataPage exists in clipboard.
Is there any way I can verify without creating it?
TD Bank
CA
I want to check if we are actually performing an interaction and not reviewing it. Tried using CPMIsNewAssignPageExists page when rule but not working in the flow.
Pegasystems Inc.
US
Can you use the pzIsPerform When rule?
TD Bank
CA
Thank You, this when rule helped to differentiate review and perform.
375008155608
US
Did you try @PageExists("D_Customer[pyWorkPage.pyID]")? Generally the functions that take in the property/page as a string will not create it if it does not exist.
TD Bank
CA
@PageExists("D_Customer[pyWorkPage.pyID]") is failing with below error:
InvalidReference D_Customer[pyWorkPage.pyID] declare page parameters not supported by PropertyReference
375008155608
US
Another idea is that rather than making the when rule on your section check for if the data page exists, check for if a value on that data page exists. For example, maybe you could show the section only if D_Customer[.pyID].SSN exists with a value? Alternatively, if the reason that the data page is empty without real data is because it is populated from a service call, you could do a check that the data page exists and does not have page messages on it.
TATA Consultancy Services
IN
Can you please provide the D page scope, Structure and before checking the When condition the d page referred anywhere? . if you are using page exist function its create a page and give a result as true. Better try for property exist like D_Customer[Param.pyID:pyWorkPage.pyID].SSN.
-
Heejae Chang