Posted: 18 Jan 2017 18:46 EST Last activity: 28 Feb 2017 22:03 EST
Make History Tab - Description and Usage fields Mandatory for all the rules in application while save/SaveAs
Tried to add validation steps for pyDescription and pyUsage properties checking null values. and referred into PreSave activity rule. But, it didn't work out as the PreSave rule is in different classes for respective rule instances, and also the error messages are getting cleared in the later steps of Rule-.Save activity.
Please suggest. Thanks!
***Updated by moderator: Lochan to update Categories***
We have tried adding them as mandatory feilds in RuleHistoryForm_Description Section, and yet we are able to perform save/save as of the section rule. I am looking into this behavior at my end. I will keep updating the progress of my research.
You can make use of the CheckForCustomWarnings activity which will be called before an instance is saved. Here you can check the relative properties and set the warning messages with severity as required. When the severity is high. This way one can regulate the users by providing mandatory fields. Hope this helps.
Yes it worked for Rule-.pyPostSave or CheckForCustomWarnings respectively... But we have to skip the validation if its in specification or requirement rule types as History Description is not present for them. Thanks :)