on 09-10-2007 8:44 AM
Hi
I have a created a simple type of type date. The user is only allowed to select dates <= today's date.
Is there a way I can set the Maximum Inclusive Date to always be something like sy-datum (current Date)?
thanks in advance
Anton Kruse
Hi,
I dont think it takes parameter dynamically.
You will have to validate it through code itself.
Ashu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anton,
I don't know is this your exact requirement or not:
You can put this code in wdDoInit()
IWDAttributeInfo attr = wdContext.getNodeInfo().getAttribute(<name of your context>);
ISimpleTypeModifiable sim = attr.getModifiableSimpleType();
Date dt = new Date();// will return today's date
sim.setMaxInclusive(dt);
Regards,
Murtuza
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.