on 11-18-2008 3:07 PM
I have a model attribute "checked" which is under a model node T_Tasks.
T_Tasks is of type List and "checked" is having multiple values(size of T_Tasks).
I want to store all these multiples values of "Checked" in a value attribte "fetchedCheck" which of type List.
How can i do this.
Thanks
Akhilesh
answered
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Akhilesh,
List list = new List();
for(int i=0; i<wdContext.node<output>().size();i++)
{
String value = wdContext.node<output>().get<output>ElementAt(i).get<attribute>();
list.add(value);
}
wdContext.currentContextElement().set<ListAttribute>(list);
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
loop the values of "checked" for size of T_Task and inside the loop get the values from "Checked" and set those values to attribute "fetchedChecked".
PradeeP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> I have a model attribute "checked" which is under a model node T_Tasks.
> T_Tasks is of type List and "checked" is having multiple values(size of T_Tasks).
>
> I want to store all these multiples values of "Checked" in a value attribte "fetchedCheck" which of type List.
>
> How can i do this.
Hi,
Have you tried -
for loop (i=0; i<size of T_Tasks; i++)
fetchedCheck[<i>] = wdcontext.nodeT_Tasks().getElementAt(i).getChecked();
Regards,
Anagha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
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.