on 03-24-2006 1:21 PM
Hi
I have a input field bound to a context of type date (basically DatePicker Runtime control) .I want to prefill the input box with current date automatically when the view is shown.
How to acheive that
Thanks
Ananda
try this
create a new attribute, which is a string (sNewtext).
bind this attribute to the value property of the inputfild
then put a new action the the event onEnter for the inputfied
for the action use the following code:
wdThis.wdGetContext().currentContextElement().set<snewText>(wdThis.wdGetContext().currentContextElemt.get<datecontext>.getDate.toString());
Hope this will help
Patrick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ananda,
In wdInit put something like:
wdContext.currentContextElement().setDateAttribute(new Date());
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.