Skip to Content
author's profile photo Former Member
Former Member

Radio Button in Table

Hi Experts,

I am having a problem in using the radio button in the table.

I am having a node say "Table" under the context.

Under the Table node i created a node called "Selection" node of cardinality 1..1 and selection 1..1 .

Under the Selection node i created a attribute caleed "Value", which is binded to the radio buttons in the table.

There are 3 radio buttons namely "Accept", "Reject" and "Hold". I had assigned the KeyToSelect property of the radio buttons as "a", "r" and "h".

As default, accept should be selected.

I had used the following code. but it was not working...

for(int i=0; i<wdContext.nodetable.size(); i++)

{

wdContext.currentselectionelement().setvalue("a");

}

and also i tried with creating an element for the selection node. But still not working..... Help Me....!

Thanks and Regards,

Mugundhan.A

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2008 at 06:06 AM

    Hi Kandha,

    Put this code out side the for loop, in WDinit mthod()

    wdContext.currentselectionelement().setvalue("a");

    for more check this link

    http://help.sap.com/saphelp_nw04/helpdata/en/77/e8cf153ebb2e468324ee8acd525fe2/content.htm

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2008 at 09:29 AM

    Hi,

    Under the Table node i created a node called "Selection" node of cardinality 1..1 and selection 1..1 . ?

    why you taken selection node under the table node any specific reason ?

    i think you bind the table uoi with Table node,

    then create a attribute "value" under the table node bind with radio button.

    and do like this,

    for(int i=0; i<wdContext.nodetable.size(); i++)

    {

    wdContext.nodeTable().getTableeleemntAt(i).setvalue("a");

    }

    Regards,

    ramesh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ramesh,

      The "Table" node is a structure, which is structure binding from the model. we cannot create any new attributes under this table node know. so i created a new node called selection under the table node. I had set the singleton property of the selection node as false.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.