Question
Lyance
FR
Last activity: 18 Sep 2015 9:46 EDT
Apply Validate Rule on FlowAction without the default action section buttons
Hello,
We want to apply a validate rule on a flowaction that calls a section.
But we noticed that, in case we "Hide the default action section buttons" and use our own, the validate rule is not executed.
In our case, we use our customized buttons (on which we apply specific actions), so how can we apply the validate rule though?
Thank you
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Lyance
FR
Hello,
When the default buttons are hidden, the validate rule is not excuted, so we can not trace the difference.
Pegasystems Inc.
IN
Hi Rim, Good Morning!
- would calling the Validate rule via an activity as an onClick event on the customized button works?
- or an Edit-Validate works?
Please share your thoughts/comments, Thank you!
psahukaru
Pegasystems Inc.
IN
Use Obj-Validate to call Validate rule in your post processing activity.
Lyance
FR
Good morning,
Well, I actually tried using the Obj-Validate in the activity.
But the 1st problem is that: the value of the property -on which we're going to perform the validate rule-, taken in the activity is the one stored in DB and not the new one entered by the user.
I couldn't use the value entered by the user because the Validate rule doesn't take parameters as Input.
The 2nd problem is: when the Validate rule is performed, the result isn't shown on screen and doesn't forbid the user from moving to the next action. Instead, I can see it on the tracer; on the page of the Obj-Validate.
Please tell me if I am not proceeding correctly.
Thank you,
Pegasystems Inc.
IN
could you please try doing 'Page-Set-Messages' on primary page with a pre-condition (hasMessages)... post validation...
Updated: 25 Aug 2015 4:12 EDT
Lyance
FR
Good morning Phani,
Thanks alot for your help.
But this method will add a message on the primary page, which means I will have a 3rd message besides the 2 already existing, as shown in the previous screenshot.
Please tell me if I misunderstood.
Isn't there another way to perform the same process of validating a flowaction without the default buttons?
I noticed something else, the messages are stored in properties on the page, but in the activity, when I try to retrieve the property's value, they are not recognized.
- message_n are the result of the validation rule
- PZ_ is the result of the method 'Page-Set-Messages'
- xp.PZ_ and xp.message_n are not valid.
I didn't understand this phenomenon.
Thank you,
Pegasystems Inc.
IN
could you please share your onClick configurations on the custom button and use case details... Thank you!
Updated: 1 Sep 2015 6:40 EDT
Lyance
FR
Pegasystems Inc.
US
Rim,
Is the page xp your primary page? I assume you want the messages on pyWorkPage if you're performing a flow action. Try ensuring the messages are on the page that is the primary page of the object you are working on. If that doesn't work I'd look at the context of the section. Does it have a different page? Try putting messages there. Once you figure out which page you need to hit, target the validate with that.
Once we figure out the context, we can go back and try and understand what you meant by the property being from the DB and the user entering a parameter. I don't understand what you mean by that, but let's avoid confusion by focusing on one problem at a time.
Thanks,
Mike
Pegasystems
US
Going back to your statement of
>>> in case we "Hide the default action section buttons" and use our own, the validate rule is not executed.
If you trace the working version where you have default buttons, and non-working version where you hide those buttons, how do traces differ ? In particular, pay attention in the tracer to what the primary and step pages are. /Eric
Accepted Solution
Lyance
FR
Hello,
When the default buttons are hidden, the validate rule is not excuted, so we can not trace the difference.