Dear;
I am looking for a solution to pass value as parameter to the error message.
What I want to achive is that I have to validate Date field. This date field's 
validation is of general type and with the concept of re-useablity. 
The validation rule(s) is like the date should be greater then current date + 5 
minutes. The validation rule parameter can vary with 5, 10, 20 ...
So what I did is:<field property="startDate" depends="isFutureDateMinutes">   
<arg position="0" key="label.startDate" />   <arg position="1" 
name="futureMinutes" key="${var:inFutureMin}" resource="false" />     <var>     
   <var-name>dateformat</var-name> <var-value>dd/MM/yyyyHHmm</var-value>     
</var>     <var>      <var-name>minutesofhour</var-name>      
<var-value>startDateMinutes</var-value>     </var>     <var>    
<var-name>inFutureMin</var-name>        <var-value>5</var-value>     
</var></field>
I want to use inFutureMin value in my error message.
Please recommend how can I do it.  

Thanking you in advance.

Muhammad Owais Bilal Awan,
+966-56-5823-940



      

Reply via email to