PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Validation Rules?  (Read 1825 times)

Odell

  • New Member
  • *
  • Posts: 3
    • View Profile
Validation Rules?
« on: October 25, 2019, 01:47:34 PM »
Is there any documentation that explains how to set up Validation rules both Fixed and Expressions?

Mike King

  • Diamond Member
  • *****
  • Posts: 3818
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Validation Rules?
« Reply #1 on: October 25, 2019, 05:29:12 PM »
Check out the "Validation" section on the page below under 'rules':

https://manual.pvxplus.com/page/NOMADS%20Graphical%20Application/Creating%20Panel%20Controls/Multi-Line%20Control/Multi-Line%20Properties.htm

Here is what you will find:
   
Input validation range and/or values (comma-separated); e.g. A, C, R-T. Can be a Fixed value, string Expression or Dynamic. (Dynamic is available only when a data Class is entered.) If using Property Sheets and setting Rules to Dynamic, the Validator and Formatter properties will automatically be set to Dynamic.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

Odell

  • New Member
  • *
  • Posts: 3
    • View Profile
Re: Validation Rules?
« Reply #2 on: October 28, 2019, 11:36:19 AM »
In data dictionary (2017) we have the option to validate rules using expression.  I have tried several different ways to enter an expression (for a numeric) but always get an invalid expression message? 

Mike King

  • Diamond Member
  • *****
  • Posts: 3818
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Validation Rules?
« Reply #3 on: October 28, 2019, 03:19:05 PM »
Can you describe the validation rule you are looking to apply? 

For example if you want the validation to be that the value must be between the values held in %Min_days and %Max_days then your expression would be:

str(%min_days)+"-"+str(%max_days)

Let us know what you are trying to achieve.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com