Apply Validate Rule on FlowAction without  the default action section buttons


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

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
September 18, 2015 - 9:46am


When the default buttons are hidden, the validate rule is not excuted, so we can not trace the difference.


Keep up to date on this post and subscribe to comments

August 18, 2015 - 12:10pm

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!


August 18, 2015 - 3:29pm

Use Obj-Validate to call Validate rule in your post processing activity.

August 19, 2015 - 4:41am

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,

August 23, 2015 - 10:18am
Response to Rim.Frikha

could you please try doing 'Page-Set-Messages' on primary page with a pre-condition (hasMessages)... post validation...

August 25, 2015 - 4:07am
Response to sahup1

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,

August 30, 2015 - 6:52am
Response to Rim.Frikha

could you please share your onClick configurations on the custom button and use case details... Thank you!

September 1, 2015 - 6:39am
Response to sahup1


Pleas eshare your thoughts; here is how I call the activity on click of the button


and here is the main step of the activity: Obj-Validate


Thank you,

September 1, 2015 - 11:12am
Response to Rim.Frikha


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.



September 2, 2015 - 9:20am

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

September 18, 2015 - 9:46am
Response to ericosman_GCS


When the default buttons are hidden, the validate rule is not excuted, so we can not trace the difference.