Thursday, January 24, 2013 7:12 AM
I have one xml file as given below where i specified all the validations. Calling this code from the .Net using the Xpath. The problem is i have to call the VBScript function DateDiff to compare 2 Dates. Please see the below given code. When i run my .Net application i am getting the Invalid token error for the VBScript code. Need help on how to call the VBScript function in XMl File.
<ValidationGroup enable="true" tab="Pricing Info" processCondition="count(/Loanfile/ExceptionRequest/LienCol/Lien/PricingCol/@*) > 0" tabId="PricingInfo" validationGroupId="Pricing" stopOnError="N">
<Validation enable="true" severity="Error" validationId="PointsTotal.inEighths" condition="(@pointsTotal != '' and (VBScript:DateDiff('d','1/1/2012','3/3/2013') > 0)))" assertion="(((@pointsTotal)*1000) mod 125) = 0" message="Points Total must be in increments of eigths (.125)"/>
Friday, January 25, 2013 9:31 AMModerator
Welcome to the MSDN forum.
I am trying to involve a senior expert into your thread. Please wait for the response. Sorry for any inconvenience.
Have a nice day.
Alexander Sun [MSFT]
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Tuesday, February 05, 2013 8:50 PM
Can you please post the .net code using which you call the VBScript function? This would really help us understand how you are trying to implement this.