2 Replies Latest reply: Aug 19, 2013 9:09 AM by bsalvador RSS

    Regular Expression as page item

    bsalvador

      Hello,

       

      I´m doing a page item validation using Regular Expressions, but my Regular Expression is Dynamic. I have another page item called VL_REGEXP where I set a value of regular expression.

      But, when I write VL_REGEXP as validation expression, it doesn´t test the condition. It only tests when I put the value of the regular expression.

       

      So, what would I do to pass this Dynamic Regular Expression for validation?

       

      Example of my settings:

       

      -- It doesn´t work

       

      Type of validation:

      Item / Column in expression 1 matches Regular Expression in Expression 2

       

      Expression 1

      P12_CD_ACCOUNT

       

      Expression 2

      P12_VL_REGEXP   -- this is what i need!

       

      -- It works

       

      Type of validation:

      Item / Column in expression 1 matches Regular Expression in Expression 2

       

       

      Expression 1

      P12_CD_ACCOUNT

       


      Expression 2

      ^(\d\d\.\d\d\d\.\d)+$

       

      thanks

       

      Bsalvador