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.

Similar Messages

  • 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

  • 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.

  • 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

  • How to name the Check Box as "Want Free Gift" using PARAMETERS statements

    Hi all,
    I am new to check boxes. I have a existing report where I have to add a check box to the selection screen.
    So i said
    PARAMETERS: p_cncldc AS CHECKBOX.
    everythibng is fine and I get the check box on the selection screen. when i execute the report i get the name of check box as p_cncldc. but i want the name of the check box as "Want Free Gift".
    How to name the check box as "Want Free Gift".
    if i am saying
    PARAMTERS: Want Free Gift AS CHECKBOX. it says a syntax error saying it canot be more that 8 chars.
    Some one please help. I am new to Check boxes
    Regards,
    Jessica Sam
    Edited by: jessica sam on Mar 31, 2009 10:37 PM

    Text on the Right hand side of check box.
    selection-screen begin of block b1.
    selection-screen begin of line.
    parameters: w_check as checkbox.
    selection-screen: comment  4(30) TEST .
      selection-screen end of line.
    selection-screen end of block b1.
    INITIALIZATION.
    test = 'Want Free Gift AS CHECKBOX'.
    Text on the Left hand side of check box.
    selection-screen begin of block b1.
    selection-screen begin of line.
    selection-screen: comment  2(30) TEST .
    parameters: w_check as checkbox.
      selection-screen end of line.
    selection-screen end of block b1.
    INITIALIZATION.
    test = 'Want Free Gift AS CHECKBOX'.
    OR:
    GOTO(Menubar)>Text Elements>Selection Texts
    Regards,
    Gurpreet

  • How to validate and pass a value stored in the Check box to a SQL report

    I have a menu(parameter form) with select lists and two check boxes(one option for DD/MM/YY(called CHK_BOX_MTH) and other for Quarter(Called CHK_BOX_QTR)).
    If the user selects the check box for month, he should be only be able to select list of values for Month, Day and Year. The user should not be able to choose Quarter(or should be prompted with a message, "Check only one option"). Similarly if Quarter is chosen, DD/MM/YY should be disallowed.
    How do I code this validation in HTML DB and where would it reside on the item?
    How do I then pass these parameters(Checked box value) using a URL to another page as input?
    The query expects the following
    SELECT ... FROM DIM_DAY
    WHERE
    (:CHK_BOX_MTH IS NOT NULL AND START_DATE = ":SELECTED_DATE")
    OR
    (:CHK_BOX_QTR IS NOT NULL AND QTR = ":SELECTED_QTR");

    Vikas ,Thank you for your reply.
    The only reason I am not able to use the radio group because I am not able to place the items shown adjacent to Month in the page. The From Date and To date (user enterable fields) should appear to the right of the Month radio button and quarter item to the right of the quarter radio button.
    From Date : "Month" "Day" "Year" (should be displayed to the right of Month )
    End Date : "Month" "Day" "Year" (should be displayed to the bottom right of
    Month and above the Quarter line)
    I hope I am making sense.

  • How to pass the check box values from one view to another view

    Hi Experts,
    I have a selection screen view which consists of check boxes.
    WBS System status.
    Release                      Completed                  Closed as 3 check boxes.
    Note : The above ones are check boxes.
    Based on the selection made by the user, those values needs to be passed to second view which retrieves the data and
    displays the data accordingly.
    At the same time if the user does not make any selection, then WBS System status should contain Released, Completed and Closed values and that needs to be sent to Second view.
    Kindly advise.
    Regards,
    Chitrasen

    hi ,
    make a attribute of type WDY_BOOLEAN to achieve this functionality
    u need to follow these steps :
    1 in side ur component controller , under the ATTRIBUTES tab , make 3 attributes say attr1 , attr2 and attr3 of type WDY_BOOLEAN
    2 create a context node , cn_check and 3 context attribute ca_check1 , ca_check2 and ca_check3 in ur first view for
    release , complete and close check boxes
    3 inside the DOINIT of ur 1st view , set the attributes attr1 , attr2 and attr3 to blank
    wd_comp_controller->attr1 = ' '
    wd_comp_controller->attr2 = ' '
    wd_comp_controller->attr3 = ' '
    4 inside the method , where u r validating , if the check boxes are checked or not , read the attributes ca_check1 , ca_check2 and
    ca_check3
      DATA lo_nd_cn_check TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_check TYPE REF TO if_wd_context_element.
        DATA ls_cn_check TYPE wd_this->element_cn_check.
        DATA lv_ca_check1 LIKE ls_cn_check-ca_check1.
    *   navigate from <CONTEXT> to <CN_CHECK> via lead selection
        lo_nd_cn_check = wd_context->get_child_node( name = wd_this->wdctx_cn_check ).
    *   get element via lead selection
        lo_el_cn_check = lo_nd_cn_check->get_element(  ).
    *   get single attribute
        lo_el_cn_check->get_attribute(
          EXPORTING
            name =  `CA_CHECK`
          IMPORTING
            value = lv_ca_check1 ).
    IF lv_ca_check1 EQ 'X' .
    wd_comp_controller->attr1 = ' X'
    wd_comp_controller->attr2 = 'X '
    wd_comp_controller->attr3 = ' X'

  • 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???

  • Disabling button if the check box is uncheked

    Hai all,
       I want to enable the button once checked the check box. Am using this code,
    DATA lo_el_context TYPE REF TO if_wd_context_element.
        DATA ls_context TYPE wd_this->Element_context.
        DATA lv_check_button TYPE wd_this->Element_context-check_button.
    lv_check_button = 'ABAP_TRUE'.
      get element via lead selection
        lo_el_context = wd_context->get_element( ).
      @TODO handle not set lead selection
        IF lo_el_context IS INITIAL.
        ENDIF.
      set single attribute
        lo_el_context->set_attribute(
          EXPORTING
            name =  `CHECK_BUTTON`
           value = 'lv_check_button' ).
    Am getting it.
    Once I uncheck the check box means the button has to be disabled. What can I do to resolve this. Pls give some suggestions.
    Thanks in Advance,
    Nalla.B

    hai kris,
    I did the same But if i uncheck the checkbox means that button is still enabled.....
    I hav bounded that check attribute to the 'checked' propertyof the checkbox UI element......
    Can u pls help me where i went wrong. Tis s my coding
    DATA lo_el_context TYPE REF TO if_wd_context_element.
        DATA ls_context TYPE wd_this->Element_context.
        DATA lv_check TYPE wd_this->Element_context-check.
      get element via lead selection
        lo_el_context = wd_context->get_element( ).
      @TODO handle not set lead selection
        IF lo_el_context IS INITIAL.
        ENDIF.
      get single attribute
        lo_el_context->get_attribute(
          EXPORTING
            name =  `CHECK`
          IMPORTING
            value = lv_check ).
    "IF lv_check EQ ' X'.
        "DATA lo_el_context TYPE REF TO if_wd_context_element.
       " DATA ls_context TYPE wd_this->Element_context.
        DATA lv_check_button TYPE wd_this->Element_context-check_button.
      get element via lead selection
        lo_el_context = wd_context->get_element( ).
      @TODO handle not set lead selection
        IF lo_el_context IS INITIAL.
        ENDIF.
    if lv_check eq 'X'.
    lv_check_button = 'ABAP_TRUE'.
    else.
    lv_check_button = 'ABAP_FALSE'.
    endif.
      set single attribute
        lo_el_context->set_attribute(
          EXPORTING
            name =  `CHECK_BUTTON`
           value = 'lv_check_button' ).
    Thanks in advance,
    Nalla.B

  • How to use the check box?

    How is the check box to be used? If I have 10,000 songs in my itunes library and have 1,000 of them checked, how can I place all 1,000 checked songs into a new playlist that I have created just for them. They are not located together in my library so I can't just hold down the SHIFT key and highlight them all for movement. Also, I would rather not have to hold down the CONTROL key and then search through 10,000 songs for the 1,000 I have checked. So what is the secret to accomplishing this?
    Can you sort your library by whether a songs is checked or not? If I could sort them all together as a group, then I could use the SHIFT key to highlight and move them all.
    Am I missing something here? How can you select and sort songs by whether they are checked or not in your library?
    Thanks so much for any help you can provide.

    If only the 1,000 songs you want are currently checked, create a Smart Playlist to collect them.
    How to Create a Smart Playlist
    - File=>New Smart Playlist
    - Playlist is 'whatever playlist you want to use'
    - Match only checked songs
    Note: There is no way to select the Main Library. If you're working with the Library as a base, you'll need un-check the 'Match the following rule' and check 'Limit to' and put a high enough number to capture all the songs.
    Several ways to creatively manage the issue.
    You may wish to create a Static Playlist once you are done, and drag those songs into it for more permanence.
    Post back if you have more questions.

  • 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

  • How to read the check box value in alv report

    hi experts,
    i m working on one alv report where i m using the check box for field selection in alv display.
    but i don't know how to read the only selected fields.
    wa_fieldcat-fieldname = 'BOX'.
      wa_fieldcat-tabname = 'IT_HEADER'.
      wa_fieldcat-seltext_m = 'Box'.
      wa_fieldcat-checkbox = 'X'.
      wa_fieldcat-input = 'X'.
      wa_fieldcat-edit = 'X'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'AUFNR'.
      wa_fieldcat-tabname = 'IT_HEADER'.
      wa_fieldcat-seltext_m = 'Sales Doc'.
      wa_fieldcat-hotspot = 'X'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program                = v_repid
         I_CALLBACK_PF_STATUS_SET          = 'SET_PF_STATUS'
         i_callback_user_command           = 'USER_COMMAND'
         i_callback_top_of_page            = 'TOP_OF_PAGE'
         it_fieldcat                       = i_fieldcat[]
         i_save                            = 'A'
         it_events                         = v_events
        TABLES
          t_outtab                          = it_header
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
    *&      Form  USER_COMMAND
          text
         -->R_UCOMM    text
         -->,          text
         -->RS_SLEFIELDtext
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
    when '&RELEAS'.
    endcase
    endform.
    i gone through some already posted que for same problem i tried options like
    loop at it_header.
    endloop.
    but i m getting box field empty.
    is there i missed something? plz sugeest.. if u have any other solution plz post...

    Have this code in your user command fm:
    * For capturing changed data
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = w_grid.
      CALL METHOD w_grid->check_changed_data
        IMPORTING
          e_valid = w_valid.
      IF w_valid = 'X'.
    loop at itab where mark = 'X'.
    endloop.
    ENDIF.
    Regards,
    Ravi

  • How do  we check the check box items based on the databse fields.

    Hi All,
    I have a requirement like as mentioned below#
    1. I have a combox box whcih i will be populated from database.
    2. I have created two check box as "Stategric " and "Non Stategric".
    3. Now when i select the combox box condition i need to select the check box items.
    4. But the problem is i wil be knowing weather it is a stategric or Non stategirc based on the database column.
    5. How do i need to map the database point of view and correlacte with javascript pont of view.
    6. Do we need to write any Application process to achieve this task and who we can do that.
    Thanks,
    Anoo..

    Hi VC,
    As per my understanding the code should be placed between --.
    Based on this i have placed the code
    function setCheckbox(pThis, pItem){
    alert('inside');
        var l_code = '';
        // Get checkbox name
        rName = document.getElementsById('P1_ENG_BAU').firstChild.name;
    alert("The value is"+rName);
        // Fire AJAX
        var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=CHECKBOX_LIST',0);
        get.add('F120_COMPANY',pThis.value);
        gReturn = get.get('XML');
        if (gReturn) {
          var values = gReturn.getElementsByTagName('value');
          var messages = gReturn.getElementsByTagName('message');
          // Build the checkbox
          for (i=0; i<values.length; i++) {
            var rValue = values.firstChild.nodeValue;
    var rMessage = messages[i].firstChild.nodeValue;
    l_code+='<input id='+P1_ENG_BAU+'_'+i+' type=checkbox value='+rValue+' name='+rName+'>';
    l_code+='<label for='+P1_ENG_BAU+'_'+i+'>'+rMessage+'</label>
    document.getElementsById('P1_ENG_BAU').innerHTML = l_code;
    Correct me if iam understanding is wrong.
    Thanks,
    Anoo..
    Edited by: Anoo on May 31, 2012 11:04 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • By clicking on  a button all the check boxes i have should be checked

    Hi all,
    Im having a button 'SELECT ALL', by clicking on that all the check boxes i have in my view should be checked.
    Help me out with procedure and the sample code.
    Thanks & Regards,
    Suresh

    Hi Sureshkumar,
    1. Create a value attribute named <b>select</b> of type boolean.
    2. Bind the <b>checked property</b> of all the checkboxes to this attribute.
    3. Create an action called <b>click</b> and bind it to <b>OnAction</b> event of the button(whose click will check all the checkboxes) and write this code in that action.
    <b>wdContext.currentContextElement().setSelect(true);</b>
    Warm Regards,
    Murtuza

Maybe you are looking for

  • Multiple Freezes

    Recently I have noticed that I am unable to run a weekly MacJanitor and also get a freeze up using cocktail (at the crons task function) when using the Pilot to perform all the assigned tasks. Tonight after trying to use both and force quitting them

  • Canvas issue

    I have a button on Canvas A that opens up canvas B.. But I noticed when canvas B opens canvas A becomes deactivated... is there anyway I can still have Canvas A active so I can copy and paste from canvas A into Canvas B .... This is the code I am usi

  • STO from EOU plant to DTA plant

    Hi, I need a help on one issue. We are doing STO from plant to plant under one company code with delivery with SD(mvt type 641) I have done following steps 1. Create ST PO ME21N (receiving plant) 2. VL10F(supply plant) 3. J1IIN(suppl plant) 4 MIGO ag

  • Hi, can someone help me interpret this kernel panic log please

    Thanks in advance! Anonymous UUID: D584B334-4FAD-1B8A-568E-41BE7FADE6CD Mon Mar 24 21:24:56 2014 panic(cpu 6 caller 0xffffff800ccdbe2e): Kernel trap at 0xffffff800cdfb544, type 14=page fault, registers: CR0: 0x000000008001003b, CR2: 0x00000000000000d

  • SWTOR Midnight Openings

    So, when will we know if our store will open at midnight for SWTOR?