on 08-09-2005 8:40 AM
Hi everyone,
I have a table and inside it dropdownbykey.
I want to go with a loop on the table contents.
with the following command:
wdContext.nodeResearcherTable().getElementAt(i)...
I get the selected row of the table.
But, how do I get what the user chose?How do I get the selected key of the dropdownbykey in the table ?
Thanks you guys.
Ruthie.
I am sorry.
Make the singleton as false for the innernode.
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Anilkumar & Bharathwaj,
I did make the singleton as false for the innernode
and it worked!!!
Thanks so much.
Ruthie.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> Hi everyone,
>
> I have a table and inside it dropdownbykey.
> I want to go with a loop on the table contents.
> with the following command:
> wdContext.nodeResearcherTable().getElementAt(i)...
> I get the selected row of the table.
> But, how do I get what the user chose?How do I get
> the selected key of the dropdownbykey in the table ?
>
> Thanks you guys.
> Ruthie.
Hi Anilkumar,
The innderNode is defined as singleton in the context properties.
Any Suggestions ???
Thanks.
Ruthie.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Make the innderNode as singleton in the context properties.
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> Hi everyone,
>
> I have a table and inside it dropdownbykey.
> I want to go with a loop on the table contents.
> with the following command:
> wdContext.nodeResearcherTable().getElementAt(i)...
> I get the selected row of the table.
> But, how do I get what the user chose?How do I get
> the selected key of the dropdownbykey in the table ?
>
> Thanks you guys.
> Ruthie.
Hi Anilkumar,
I don't have the option of :
ele.nodeInnerNode()...
but only ele.node()
Any Suggestions ???
Thanks.
Ruthie.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Consider the example:
TopNode
--Attr1
--Attr2
InnerNode (Singleton)
--InnerAttr
You can use the following to iterate and reading the values.
for(int i=0;i<wdContext.nodeTopNode() .size();i++)
{
IPrivateTestAppView .ITopNodeElement ele=(IPrivateTestAppView .ITopNodeElement)wdContext.nodeTopNode() .getElementAt(i);;
ele.nodeInnerNode() .currentInnerNodeElement().getInnerAttr() ;
}
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> Hi everyone,
>
> I have a table and inside it dropdownbykey.
> I want to go with a loop on the table contents.
> with the following command:
> wdContext.nodeResearcherTable().getElementAt(i)...
> I get the selected row of the table.
> But, how do I get what the user chose?How do I get
> the selected key of the dropdownbykey in the table ?
>
> Thanks you guys.
> Ruthie.
Hi Guys,
I still have problems.
Anilkumar - I can't use currentTableNodeElement() because
I need to go over the intire table with a loop so I need
some condition which uses the iterator of the loop -
like - getElementAt(i)...
Bharathwaj - I wasn't clear enough. key isn't a name of
a field but I wanted to get the key of the dropdownbykey.
after:
wdContext.nodeResearcherTable().getElementAt(i)
I can use either getAttributeValue()
or getAttributeAsText().
Any suggestions ???
Thanks.
Ruthie.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Try this.
Make the innernode (i.e) ropDownKeyNode as singleton.
wdContext.currentTableNodeElement() .nodeDropDownKeyNode() .currentDropNodeKeyElement().getNodeValue();
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anilkumar,
The dropdownkey is assigned to a value node:
- Table node
- Dropdownkey node
- value attribute (desired value)
In this case, what is the ("<<Attributename>>)???
I tried a few options and got exceptions.
Thanks.
Ruthie.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If the dropdownkey is assigned to a attribute which is directly inside the node to which table is bound then you can do that by
wdContext.nodeResearcherTable().getElementAt(i).getAttributeValue("<<Attributename>>)
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.