on 04-04-2007 3:35 PM
Hi All,
I have created a simple type (Quantity) and given the Enumeration as
Value Desc
-
1 1
2 2
3 3
4 4
5 5
I have displayed this in a DropDownByKey in the View.
However, I want the value 1 to be the default or selected value.
Please let me know how to do this.
Regards
Nikhil Bansal
Hi Nikhil,
Try this:
wdContext.currentContextElement().set<value attribute name>("1");
Regards
Sid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi.
wdContext.currentContextElement.set<varname>(0);
This might helps you.
Thanks,
Lohi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nikhil,
Make sure that your enumeration 0th element value is starts for 1 1s.
Could you please give the code? I think you have to do some modifications on the code.
Regards,
Ram.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
U defined ur simple type and there u assigned the values as u mentioned.
And defined one variable in the context of ur view and type is getting from the simpletype and bind with DDK UI element then u will get the all values in ur output.
1,2,3,4,5.
Now in the init method of view simple add the following code.
Wdcontext.currentContextElement().set<varName>(0);
it should helps u.
Thanks,
Lohi.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.