Support Article
Validation Not Fired on Property Having Edit Input
SA-17126
Summary
Fields with no Edit Input configured in the advance tab of the property panel are showing error icon. Fields configured with Edit Input are not showing an error icon. Problem occurs in Example Case Case when Add Item is clicked followed by Validate & Refresh Button without giving any inputs to all fields.
Error Messages
Not Applicable
Steps to Reproduce
Create a text-input property with Edit-Input configured as upper case.
Configure the same property in Edit-validate rule.
Create a button, on click which calls validate activity.
on button actions add run activity and refresh the section.
Validation will not be shown when field is empty
Root Cause
Edit-Input validation is getting called for each action. It clears the error messages on the property and then the property is validated again as per its definition. However, Rule-Obj-Validate will not get called at this time . It will execute only when explicitly called.
As a result, once Run-Activity has added error messages, Edit-Input gets called before the execution of the next action and it clears the message.
Resolution
Make the following local change:
1. Save-as @baseclass • pyPreGridUpdate activity to the row class of grid. Say the created activity is Sandbox-ExampleCase • OnRefreshList(An activity with same name should be created in @baseclass also - @baseclass • OnRefreshList) .
2. Now open grid property panel, go to "Operations" tab, expand "Advanced configuration", check "Run activity before grid update" and specify "OnRefreshList" in text input.
3. In Sandbox-ExampleCase • OnRefreshList activity un comment the step with description "Implement this step for Refresh Row" and in that step call Edit-validate activity
4. On "Validate & Refresh" button remove "Run activity" action.
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.