Help in Check box group

Hi,
I have created a check box Group
texts = Mydata.Interest.Interests
Mydata is  a node , Interests is of type Simple type Interests.
It has 3 enumerations.
But when i run, I am able to only one check box with out any text.
Where am i wrong?

Hi you cannot use symple type to name the check boxes.
create a node(Say CheckBox) of cardinality 0..N
with a context variable(Say CheckValue) of type String. Bind this attribute(CheckValue) to "texts" property of CheckBoxGroup.
Now, to add 5 checkboxes from code, use the following code
IPrivate<View>.ICheckBoxNode lNode=wdContext.nodeCheckBox();
IPrivate<View>.ICheckBoxElement lEl;
for(int i=0;i<5;i++)
lEl=lNode.createCheckBoxElement();
lNode.addElement(lEl);
lEl.setCheckValue("Text"(i1));
xxxxxxxxxxxxxxxxxxxx
Edited by: Armin Reichert on May 21, 2008 7:58 PM

Similar Messages

  • Setting tab order in a check box group

    I am running a 508 accessibility test on forms created in Adobe.  The issue that I am having is that when I verify the tab order, it skips the second or any other check boxes in a check box group.  Does anyone know where to set it to recognize all the boxes in a check box group?

    Paul,
    Thank you.  You were correct, it was a version issue.  When I opened the form in Reader 9 with JAWS 10, I was aable to arrow through all of the check boxes with correct identification of each field.  Thanks again for all your help.

  • How to create a message check boxes group dynamically in OA Framework

    Hi all,
    I am developing a custom OAF page. It is a master-detail page. And I am having some difficulties to build that.
    Firstly, I need to create a dynamic message check boxes group. These check boxes will get the prompt from a standard database table's column. Let's say I have table X with description column and it has 7 rows. Values of description column are A,B,C, ...etc. Then my master region on the page will have 7 check boxes with the prompts of A,B, C... Check box number will depend on the row/rows that this table has.
    The other requirement is to create master and detail rows that depends on the number of any checked check boxes. If 2 check boxes are checked then we need to create 2 rows of master data and detail data too.
    Does any of you have any ideas or suggestions to do that?
    It is urgent, any help would be appreciated.
    Thanks in advance and regards
    PS: Is it possible to do that? Can anyone put some light on this thread please?
    Edited by: user1742330 on Aug 12, 2012 4:23 PM

    Please help me out with this issue...
    I am in a very urgent situation. Any idea about this thread???

  • Re: Retrieving data from the check box group.....

    Hi all,
    I am new to webdynpro Java. I'm facing a problem while retrieving data from the check box group..
    I've taken a simple type "Status" and Node with value attribute named status and set the property of that attribute as the simple type. This attribute is bound to the checkboxgroup.The cardinality of the Node is 0..n
    But i am unable to read the checked items of the group.
    Please help me out in solving my problem........

    Hi,
    Use the following
    for (int x=0; x< wdContext.nodeTest().size(); x++)
         if( wdContext.nodeTest().isMultiSelected(x) )
                     // Selected Element
              IWDNodeElement nodeElement = wdContext.nodeTest().getElementAt(x);
               nodeElement.setAttributeValue("<Your Attribute> ", <Value>);
              //Ex setting value for attribute called Name
              nodeElement.setAttributeValue("Name", "Test");
    Regards
    Ayyapparaj

  • Check box group

    Hi experts,
    I am new to webdynpro, i want to add one more check box in a check box group,
    can anyone help me,(but default it is coming 3)
    thanks in advance

    Hi,
        if it is limiting to three what you can do is create a two views with three check boxs each and create a view conatiner element in one view and embed the second view inside the view conatiner element.
    so by doing this you can have more than three checkbox
    cheers

  • Hi! I am newbie to Reports need help with check boxes

    Hi! I am newbie to Reports need help with check boxes. I am try-in to make a new check boxes that will validate in runtime. I have created two frames and one frame is dummy and other frame has big X line on it with conditions. Is this a right way to create check box! Please help thanks!

    and one frame is dummy and other frame has big X
    line on it with conditions. Is this a right way to
    create check box! Please help thanks!Instead of creating a frame for X, you can create Ractangle and place X in it. Rest is fine.

  • Refreshing the 'Check Box Group' UI element

    Hi ,
    The requirement is the 'Check Box Group' UI element should be refreshed automatically . I am dynamically creating the 'Check Box Group' UI element and want to refresh it once I transfer the checked values from the Check Box group.
    How this can be realized !!!
    Best Regards
    Sid

    Hi Sid,
    CheckBoxGroup UI element`s content is done by binding property <i>texts</i> with appropriate attribute in context node. So, if you change data node and node elements, this will affect UI element immediately.
    Best regards, Maksim Rashchynski.

  • Spry Check Box Group

    I am setting up a form to use the Spry check box field and
    need to have a check box grouping to have a minimum and maximum
    number of check boxes that can be selected. How is this done. I
    have got individual spry check boxes with their own spry fields but
    can't seem to find any documentation which shows me how to set up a
    spry check box group. Could someone please tell me how to do this?
    Thanks.

    Hi,
      You can use the following code.
      String[] monthNames = new String []
       "January", "February", "March", "April",
      List Year = new ArrayList();
       for (int i =  0; i < monthNames.length; ++i)
      IPrivateWebdyn_tableView.IYearElement month = wdContext.createYearElement();
      month.setAtt1(monthNames<i>);
      Year.add(month);
      wdContext.nodeYear().bind(Year);
    Bind the Checkbox group element to the node attribute.
    Thanks,
    Madhavi A.

  • Radio Button or Check Box Group

    Hi,
    I built a form based on a query. There is a flag column, only one of queried records is allowed to be "Y" in this column. The rests must be null.
    Most ideal thing is to have a radio button group, only one of them can be selected.
    Another way is to have a group of check boxes also allow only one checked. Once another check box is selected, the previously selected box must be unchecked.
    Does anybody have idea of how to do it?
    Thanks,
    null

    You have the save the number of the current ("checked") record in your data block.
    After that you can launch a trigger which will scan every record in your data block (there are enough built-ins like FIRST_RECORD, LAST_RECORD, NEXT_RECORD, Current_record property, etc.)to allow you to do this. The trigger will set the check item property to "unchecked" if it is not the saved "checked" record.
    Joseph
    null

  • F1 help for Check Box on Selection-Screen

    Hi Friends,
    I want to attach F1 help for a check box on selection-screen. Though I have checked SDN community for this but did not get any relevant answer.
    so, please give me correct example if someone has done similar.
    Regards
    Pradeep

    Pradeep,
    I think this fucntion module needs to be used DD_SHLP_CALL_FROM_DYNP.If possibe try to screen debug using /H before pressing f1 for a field.
    K.Kiran.

  • Automate check box group selections.

    Hello there, 
         Is there a way to programmatically select checkbox group items and save them into the context.
    Thanks
    Srinivas

    Hi Srinivas,
       You are doing the selection part completely wrong.
    wdContext.nodeCheckbox_GroupList().setSelected(adminOfficeIndex, true);
    The above code will not select a check  box. This is used to select elements in a table.
    First you have to check to which attributes the checkboxes are bound in the context. Let us know the context structure.
    You should also know that Checkbox will take data only from the lead selected element of the context node. For instance you have a context node Checkbox_GroupList. The node should have a cardinality 1:1. If you have six checkboxes then you need to have six attributes of type boolean in that node. Each checkbox's checked property need to be bound to an attribute in the node Checkbox_GroupList node.
    For selecting the checkbox the code should be some thing like this.
    wdContext.nodeCheckbox_GroupList().currentCheckbox_GroupListElement().setCheckBox1(true);
    Like wise all the six attribute values need to be checked.
    In your case I guess you are comparing the attribute value with the contents of an array. If you know exactly what the names in officeList array is going to be then you can name the context attribute with the exact name then use your code like this,
    String[] officeList;
                   officeList = wdContext.currentUser_Search_ResultsElement().getOffice_List().split(",");     
              int adminOfficeIndex = -1;     
              while(finalCheckbox.hasNext()){               
                   adminOfficeIndex++;
                   String adminOffice = finalCheckbox.next().toString();          ;          
                        IPublicRepNetAdminComp.ICheckbox_GroupListElement officeNames =
                                  wdContext.createCheckbox_GroupListElement();
                        wdContext.nodeCheckbox_GroupList().addElement(officeNames);     
                        officeNames.setGroup_Names(adminOffice);
                                       //loop through user group to compare, if present make the selection
                        for(int i =0; i < officeList.length ; i++){     
                             if(adminOffice.trim().equalsIgnoreCase(officeList<i>.trim())){
                                  wdContext.nodeCheckbox_GroupList().currentCheckbox_GroupListElement().setAttributeValue(adminOffice.trim(), Boolean(true));
                                  break;
    Make sure that you make the node Checkbox_GroupList cardinality 1:1 and name the attributes exactly the values in officeList.
    Sanyev

  • Need Help With Check Box count Script

    Need to count the number of checked boxes. I'm using the script below and its not working. What I'm I doing wrong? It's driving me crazy.
    // document level function to sum named fields
    function Sum(aFieldNames) {
    var sum = 0; // sum of values
    // loop through fields
    for (var i = 0; i < aFieldNames.length; i++) {
    if(!isNaN(this.getField(aFieldNames[i]).value) )
    sum += Number(this.getField(aFieldNames[i]).value);
    return sum;
    } // end of Sum function
    // array of field names sum
    var aCheckBox = new Array('Check Box5', 'Check Box8', 'Check Box11', 'Check Box16', 'Check Box19','Check Box22', 'Check Box25','Check Box28', 'Check Box31', 'Check Box34','Check Box37', 'Check Box40','Check Box43', 'Check Box46', 'Check Box49','Check Box52', 'Check Box55','Check Box58', 'Check Box61', 'Check Box64','Check Box68');
    // sum named fields
    event.value = Sum(aCheckBox);

    Then why are you checking if they're a number by using the isNaN function, and then trying to add that number to the sum variable? It looks like you just copied the code from somewhere else, even though it doesn't apply to your situation.
    Replace those two lines of the code with this:
    if (this.getField(aFieldNames[i]).value!="Off") sum++;

  • How to create a field with combo or check box group in a form

    1 - i created a database table messages (sender_name , date , message_type , message_body)
    message type accept only COMPLAINT , SUGESSTION OR OPENION
    2 - I created a form which has a field called message_type
    3 - i want the message type appear in the runtime as a checkbox group or as combo box (with values COMPLAINT , SUGESSTION OR OPENION)
    PLEASE GUIDE ME STEP BY STEP TO DEVELOP IT
    Regards
    Mohamed Hammed

    Hi,
    You can create another table to hold the unique values COMPLAINT, SUGESSTION and OPINION. You can then dynamically query this table in a Dynamic Page & construct the HTML code within a function like this :-
    CREATE OR REPLACE FUNCTION FN_GET_RADIO_OPTIONS
    RETURN VARCHAR2
    AS
    ln_return_html VARCHAR2(32767);
    BEGIN
    FOR rec IN ( SELECT ROWNUM,MESSAGE_TYPE FROM SCOTT.MESSAGES_TYPES )
    LOOP
    ln_return_html := ln_return_html || '<INPUT TYPE=RADIO NAME=rd'||rec.ROWNUM||' VALUE='||rec.MESSAGE_TYPE||' />';
    END LOOP;
    RETURN ln_return_html;
    END;
    /You can then get something out of Dynamic Page like this :-
    <ORACLE>
    DECLARE
    ln_SQL VARCHAR2(32767);
    BEGIN
    ln_SQL:= FN_GET_RADIO_OPTIONS;
    HTP.P(ln_SQL);
    END;
    </ORACLE>Of course, you do the same in a million other ways - using Java, etc - this is just an example to give you an idea.
    Regards,
    Sandeep

  • Hide check box label

    hi guys,
    I have a check box group one of the two check box's are never displayed, im having a problem with the label of that hidden checkbox, ive checked the page source and the label seems to have the same ID as the element itself and im unsure of how to assign the an id for that particular check box, any ideas, thanks
    Stefan

    Hi Stefan,
    You mention "+im having a problem with the label of that hidden checkbox+". Is the problem that the checkbox is hidden but it's associated label is still being displayed? Have you tried creating a dynamic action to hide that particular checkbox option? I'm not sure if this is what you're looking for, it will result in the checkbox & label being hidden. As you've said, you've checked the page source, so you know the ID of the checkbox option you wish to hide. For example, your page source may look as follows:
    <input type="checkbox" id="P20_CHECKBOX_4" name="p_v11" value="50"   /><label for="P20_CHECKBOX_4">50</label></td><td>Now, to hide this option of a checkbox, you could create a Standard Dynamic Action, specifying the event to fire action e.g. Page Load. Then in the True Action, set the Action to Hide, set the Affected Elements 'Selection Type' to jQuery Selector, and in the jQuery Selector text field you'd enter the following: #P20_CHECKBOX_4. Now when you run the page, the checkbox option & its associated label are hidden.
    I hope this helps.
    Regards,
    Hilary

  • Check boxes not responding correctly in form.

    I've created a form in forms central. Then I used XI to edit more fields. I have 7 check boxes grouped together. They are required and have a min. of 1 and max of 7. They are allowed to check as many as they wish. But when they hit the submission of the form it is allowing it to be submitted with those boxes left empty. What else can I do?

    This is probably due to the following user preference: Acrobat > Preferences > Page Display > Rendering > Enhance thin lines
    You should deselect it.

Maybe you are looking for