on 02-09-2015 8:43 PM
I am new in SAP Business One & Studio and I currntly developing on Visual Basic .Net but I don't know hot to set the min value for a specific edittext with a data souce type Date, can someon help me please?
Hi Jean,
Limiting a date minimum value is via coding.
There is no validation property in the object it self.
In such view, to limit a date value, you will need to catch the Before Validate event of the EditText,
and do your validation in this event.
Return a false and a message if the validation was not met.
Regards
Edy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jean,
I have never try the B1Studio with VB.
In C#, once we add the EditText in B1Studio, I would highlight the EditText and go to the properties.
Under this property, there should be events listed. On the 'BeforeValidate' event, type in a name, it should give you a procedure to handle this event.
If above does not work with VB, understanding how VB works, after you add the EditText,
Go to your code.
Under the selection of objects combobox on top, select your EditText, under the EventHandler selection, select BeforeValidate event. VB should auto create the procedure for you.
Regards
Edy
Hi Jean,
To complement suggestion also have a look at the SDK Samples on SDK installation directory. Particularly the sample C:\Program Files (x86)\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\02.CatchingEvents. This will provide you with the basic knowledge of catching events.
In B1 Studio you can create event handlers in a way that's similar to Windows Forms Designer (if you are familiar with it you'll be right at home).
Good luck.
Best regards,
Pedro Magueija
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.