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

how to use radiobutton group by index

how to use radiobutton group by index

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Mar 17, 2009 at 08:42 AM

    Hello Deepika,

    Welcome to SDN!

    If you want to use radiobutton group by index and use R/3 data. Populate a node from RFC with two (key-value) attributes(you can also use single attribute) and bind this attribute to texts property of the radiobutton group by index. For this you need to use the node inside Output node.

    If you want to use local data, create a value node with cardinality 0....n; with two (key-value) attributes(you can also use single attribute) and bind this attribute to texts property of the radiobutton group by index. You need to add elements to this node programmatically.

    Regards,

    Siva

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 17, 2009 at 08:04 AM
    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      It's very simple follow below steps.

      1. Create a dictionary simple type (example Male,Female) .

      2. Create context element and set the property of type to the dictionary simple type.

      3. Place 'RadioButtonGroupByIndex' on view layout.

      4. set property of setSelectedkey to context element of type dictionary.

      5. run and check application.

      let me know if there is problem.

      Thanks and regards

      Haribabu.

  • author's profile photo Former Member
    Former Member
    Posted on Mar 17, 2009 at 08:52 AM

    Hi dear,

    Firsly you add the Ui element as RadioButtonGroupbyIndex into your View ..create ValueNode and ValueAttribute in view Context or component conext and mapped from component to view...as you do before...

    as cardinality--0:N

    Suppose ValueNode WEEK

    ValueAttribute--Day

    just put some code into

    public void wdDoInit()

    {

    //@

    String[] day = new String [] {"Mon","Tue","Wed","Thu","fri","Sat","Sun"};

    List dayList=new ArrayList();

    for(int i=0;i<day .length;i++)

    {

    //In mY case view name is CompView

    IPrivateCompView.IWEEKElement ele=WdContext.createWEEKElement();

    ele.setDay(day <i>);

    dayList.add(ele);

    }

    WdContext.nodeWEEK().bind(dayList);

    }

    Now value are set into your node...

    Then go to your Radiobuttonbygrp Rightclick chhose Propery-

    then set ValueNode as WEEK.day set into the TEXT propery of radiogrpbyinedx

    now Built and run it ..it shows your views

    Thx,

    Sjati..

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 17, 2009 at 09:53 AM

    Firsly you add the Ui element into your View as

    RadioButtonGroupbyIndex ..create ValueNode and ValueAttribute in view

    Context.

    as cardinality--0:N

    Suppose ValueNode WEEK

    ValueAttribute--Day

    just put some code into

    public void wdDoInit()

    {

    //@

    String[] day = new String []{"Mon","Tue","Wed","Thu","fri","Sat","Sun"};

    List dayList=new ArrayList();

    for(int i=0;i<day .length;i++)

    {

    //In mY case view name is CompView

    IPrivateCompView.IWEEKElement ele=WdContext.CreateWEEKElement();

    ele.setDay(day <i>);

    dayList.add(ele);

    }

    WdContext.nodeWEEK().bind(dayList);

    }

    Now value are set into your node...

    Then go to your Radiobuttonbygrp Rightclick chhose Propery-

    then set ValueNode as WEEK.day set into the TEXT propery of

    radiogrpbyinedx

    now Built and run it ..it shows your

    Edited by: sudhir kumar on Mar 17, 2009 11:00 AM

    Add a comment
    10|10000 characters needed characters exceeded

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.