on 05-09-2006 11:21 AM
Friends,
does anybody have idea or code snippet for the following.
1.I want a listbox with years(from 1945 to 2006)
Thanks in advance
Hi Baskaran,
Make one context value node "year" in view context.
Make one context value attribute "yearValue" under this value node.
Add DropdownbyIndex UI in the layout. Bind above create attribute to this dropdownByIndex.
Write following code to populate the list.
for(i=1945;i<=2006;i++)
{
IView<view name>.IYearElement year_ele = wdcontext.nodeYear().createYearElement();
year_ele.setYearvalue(i);
wdcontext.nodeYear().addYearElement(year_ele);
}
Regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.