Htmlb Checkbox

Hello,
I've got a java object that is dynamically creating checkbox in the context of a JSP page :
// val is a specific String
Checkbox cb = new Checkbox(val.substring(1));
cb.setChecked("X".equals(val.substring(0, 1)));
cb.setEnabled(true);
cb.render(rendererContext);
In the same page i have a button that is linked to a function in the Iview (using onClick Event). In this function, i can get back the checkbox. However their values stay as they were set during initialisation, and never change, whatever may be their value in the html page (ie checked or not checked)
Checkbox cb = (Checkbox) getComponentByName(member.getId());
// cb.checked  is alway false
In short, i can change the apparent value of a checkbox, but the value of the underlying checkbox is not changed.
I would perfer not to have any event on the checkbox, since user have qite a set to use, and having to pause after each click to allow for the server to response slow them quite a bit.
Does any one have a hint on the reason, or a solution?
regards
Guillaume

In principle, at the end of the day, everything in the browser is HTML. And HTML inputfields that are disabled are not returned to the server.
The technique that we use, is just to render the value a second time using a <input type=hidden> sequence. But of course, then you *must* know that your field you are interested in, is disabled, so that the value will only be returned once. This you can catch by looking at the customization data on the server, or by using JavaScript and then creating the hidden inputfields dynamically.
Personally: I think all of the above is a hack. If you are so dependent on the data, just use a shared model class, and always read the newest values from there.

Similar Messages

  • Refresh HTMLB checkbox by JavaScript

    Hi all, I have two HTMLB checkboxes on the browser(IE6.0).
    I would like to selecte one of thses and set the other one
    checked or unchecked. I can get the checkbox's ID on the client side. I can display the boolean value if the checkbox is checked or unchecked. But I can not set the checkbox checked or unchecked and let it displayed. The Javascript code on client side is shown as below:
    // ckid - id of the target checkbox,
    // myContent - objct of PageContext
    // test() is triggered by one of the two chechboxes
    //String ck_id=myContext.getParamIdForComponent(ckid);     
    <script language="JavaScript">
    function test()
       var myval = document.getElementById('<%=ck_id%>');
       alert(myval.checked);
       myval.checked = true; 
    Any hint will be appreciated.
    Best regards.
    Wang

    Hi Dagfinn, thanks for reply. My code is as follows, the missing 'e' is my typing error,
    String s2 = "<script>"
    +"function toggle1(){"
    +"document.forms[\'myForm\'].checkbox1.checked=!document.forms[\'myForm\'].checkbox1.checked"
    +"}"
    + "function toggle2(){"
    +"document.forms[\'myForm\'].checkbox2.checked=!document.forms[\'myForm\'].checkbox2.checked"
    +"}"
    +"</script>"
    +"<body>"
    +"<form name=\"myForm\">"
    +"<INPUT TYPE=CHECKBOX NAME=\"checkbox1\" onClick=\"toggle2();\">Check me1</input>"
    +"<INPUT TYPE=CHECKBOX NAME=\"checkbox2\" onClick=\"toggle1();\">Check me2</input>"
    +"</form>"
    +"</body>";
    getForm().addRawText(s2);
    The error message happens to both of them when they are clicked.
    Thanks for reply.
    BR.
    Wang

  • Controll HTMLB:Checkbox via JavaScript

    Hi all,
    I`ve created a BSP application containing HTMLB:Checkbox components.
    In this example the checkboxes are organized as a three of 2 levels.
    When clicking/checking the parent checkbox, I want the rest of the checkboxes (children) to change status depending on their parent's status. e.g checked=true/false and disabled=true/false. The checkboxes become disabled/enabled, but you cannot see any change in their checked/unchecked status.
    Though this works fine with design="classic", it doesn't when using design="design2003"...
    I have to use design2003 in my application, and want to use HTMLB:Checkbox instead of regular HTML Checkbox- which also works.
    The javascript syntax follows:
    (it's from a loop containing all the children checkboxes)
    nodeEl = elements<i>;
    nodeEl.checked = true/false;
    nodeEl.disabled = false/false;
    I would have appreciated any kind of help.
    Ogert

    This is my intire code, Raja T. The Javascript works fine with regular HTML Checkbox, or HTMLB:Checkbox combined with classic design.
    **HTML CODE
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <%<htmlb:content design="classic">%>
    <htmlb:content design="design2003">
      <htmlb:document>
      <htmlb:documentHead>
      <script language='javascript' src='control_checkbox.js'></script>
      </htmlb:documentHead>
        <htmlb:form>
    <table width="309" border="1">
      <tr>
        <td width="299" bgcolor="#999999">
        <htmlb:checkbox id        = "E1"
                        text      = "Parent"
                        checked   = "true"
                        onClientClick = "check_chkbox('E1');"/>
        </td>
      </tr>
      <tr>
        <td><htmlb:checkbox id        = "00111820|Chk0102|E1"
                        text      = "Child 1.1.1.2"/>
        </td>
      </tr>
      <tr>
        <td><htmlb:checkbox id        = "00111820|Chk0103|E1"
                        text      = "Child 1.1.1.3"/>
        </td>
      </tr>
        </htmlb:form>
      </htmlb:document>
    </htmlb:content>
    **Javascript Code:
    var forms;
    var elements;
    function check_chkbox(id) {
      var el;
      var nodeEl;
      var splitname;
      var ind = 2;
      var name = id;
      var tempname = split_name(id,'',ind);
      if(tempname != '') {
        ind = 1;
        name = tempname;
      getCheckBoxes();
      el = document.getElementById(id);
      if(!eval(el.checked)) {
        for(i = 0; i < elements.length; i++) {
          splitname = split_name(elements<i>.id,name,ind);
          if(splitname != '') {
            if(elements<i>.id != id && name == splitname) {
              nodeEl = elements<i>;
              nodeEl.checked = false;
              nodeEl.disabled = true;
      else {
        for(i = 0; i < elements.length; i++) {
          splitname = split_name(elements<i>.id,name,ind);
          if(splitname != '') {
            if(elements<i>.id != id && name == splitname) {
              nodeEl = elements<i>;
              nodeEl.checked = true;
              nodeEl.disabled = false;
    function split_name(name,splitname,ind) {
      var split_array = name.split("|");
      var size = split_array.length;
      var string;
      if(size == 3) {
        if(splitname != '') {
          string = split_array[ind];
          array = string.split(splitname);
          if(array[0] == '') {
            return splitname;
        string = split_array[1];
        return string;
      return '';
    function getCheckBoxes() {
      var tempArray = new Array();
      if(elements == null) {
        tempArray = document.all;
    <%--    case Firefox, Netscape --%>
        if(tempArray == null) {
          forms = document.forms;
          tempArray = forms[0];
        elements = new Array();
        for(i = 0; i < tempArray.length; i++) {
          if(tempArray<i>.getAttribute("type") == "checkbox") {
            elements[elements.length] = tempArray<i>;

  • Accessing HTMLB checkbox in javascript

    Hi,
    I have the following scenario:
    1) jsp "main.jsp" has a checkbox with id="chkBoxId"
    2) In this "main.jsp" at the end, there is a jsp include
       including another jsp "buttons.jsp" - which contains a
       SUBMIT button.
    3) On this SUBMIT button, I am calling a javascript
       function "check()" in the "onClientClick" attribute.
    4) In this "check()" function I want to access the
       checkBox (present in "main.jsp")
    Now when I try doing this using the following code in the check() function, it gives me a "Undefined is null or not an object".
    function check(chkBoxId) {
    var funcName = htmlb_formid+"_getHtmlbElementId";
    func = window[funcName];
    var chkBox1 = eval(func(chkBoxId));
    // The checkbox is obtained
    if (chkBox1)
      alert("Not Checked");
    Plzz help me !!!
    regards,
    Jitendra

    HI,
    U can write the javascript function in the header tag or create a .js file in which u write the javascript code.
    the javascript code can be like
    function ValidateForm()
    if(document.form1.s_material.value=="")
    alert("enter material");
    return false;
    return true;
    where form1 is id of form and s_material is iD of input field.
    In your coding for button onClientClick like :
    <htmlb:button  id="s_but_submit"
                                       width="20"
                                       onClick="submit"
                                       onClientClick="if(!ValidateForm(this))htmlbevent.cancelSubmit=true;"
    Regards,
    Siddhartha

  • Problem with checkbox selection in Tableview

    Hi All
    I am using table view with 8 columns - in the last 4 columns i have checkboxes for user input - i have a strange problem - when the table has multiple entries - for the last column i can only select the checkbox on line 1 - and i cannot select the checkbox on the remaining entries below - but for the other colums with checkboxes this is not the case
    The selection mode for the table is no line selection - since the table is already displayed with input enabled fields - this is to reduce the no of clicks for user
    Can anyone point out what is going wrong - how can i fix this - what i am doing wrong ?
    Thanks
    Sen

    Hi
    When i click on the checkbox for the 2nd or 3rd rows of the last column - nothing happens - the checkox is still active but nothing happens -
    this is the tableview code
    <htmlb:tableView id              = "Detail"
                     design          = "ALTERNATING"
                     headerText      = "Header Text"
                     onNavigate      = "onMyNavigate"
                     emptyTableText  = "test"
                     onRowSelection  = "onMyRowSelection"
                     fillUpEmptyRows = "false"
                     footerVisible   = "true"
                     visibleRowCount = "5"
                     table           = "<%= DETAILTAB %>"
                     iterator        = "<%= iterator %>" >
    and this is the code for the last column
    <htmlb:tableViewColumn columnName         = "OBSOFLGICON"
                               width               = "3"
                               type                = "user"
                               horizontalAlignment = "CENTER"
                               title               = "Obs" >
          <htmlb:checkbox />
        </htmlb:tableViewColumn>
    Thanks
    Sen

  • Distinguish between different checkboxes/links in onInputProcessing

    Hi everybody,
    I've got a form with two links and two checkboxes. I would like to trigger a serverside event handling when any of these elements is pressed. So I use Javascript: the page attribute 'navigate' is filled with different values on client side (document.view.navigate.value = action) and the form then sent by 'document.forms[0].submit();'.
    <form name="view">
    <a href="javascript:submit('select1');">
    <a href="javascript:submit('select2');">
    <INPUT TYPE="checkbox" NAME="cb1" VALUE="X" onclick="javascript:submit('upload1');">
    <INPUT TYPE="checkbox" NAME="cb2" VALUE="X" onclick="javascript:submit('upload2');">
    <input type="hidden" value="" NAME="navigate">
    <input type="hidden" value="" NAME="OnInputProcessing(input>">
    <endform>
    <script>
    function submit(action) {
       document.view.navigate.value = action;
       document.forms[0].submit();}
    </script>
    This works fine for the two links: 'navigate' is filled with either 'select1' or 'select2'. However 'navigate' is initial when I select one of the checkboxes.
    Unfortunately I can't use 'htmlb:checkbox' in this project.
    Can You help me there?
    Best regards,
    Markus

    I tried using this syntax and i was able to capture the event.
    <script>
    function submit_action(action)
      alert(action)
    </script>
    <input type="checkbox" name="Bike" onclick="submit_action('upload')" />
    This is passing the upload to my javascript function.
    hope this helps.
    Cheers
    cheers
    Message was edited by: vin

  • Making checkboxes mandatory on SUBMIT.

    Hi,
    How do I make a checkbox group mandatory , based on the selection of some checkboxes, in a previous section.
    Eg:
    If the user selects a checkbox, then the selection of some checkboxes in the  following checkbox group in the subsequent section has to be mandatory.
    How do I do that.
    Regards,
    Gautam

    Yes if your application is stateless then u have to use the code..
    Even in your case, you can use the code as follows:
    <b>Layout:</b>
    <% data: v_checkbox_id type string,
          sy_tabix type string.
    Loop at itab_map into wa_map.
    sy_tabix  = SY-TABIX.
    concatenate v_checkbox_id 'CHK' sy_tabix into v_checkbox_id.%>
    <td>
    <htmlb:checkbox id = "<%= v_checkbox_id %>"
    checked = "<%= wa_map-field1 %>" />
    </td>
    <% ENDLOOP.
    %>
    <b>In Oninputprocessing:</b>
    DATA: GT_TIHTTPNVP TYPE TIHTTPNVP.
    data: v_checkbox_id type string,
             wa_formfields      TYPE ihttpnvp,
          sy_tabix type string.
    REFRESH GT_TIHTTPNVP.
    CALL METHOD REQUEST->GET_FORM_FIELDS
      CHANGING
        FIELDS = GT_TIHTTPNVP.
    Loop at itab_map into wa_map.
    sy_tabix  = SY-TABIX.
    concatenate v_checkbox_id 'chk' sy_tabix into v_checkbox_id.
          READ TABLE GT_TIHTTPNVP INTO wa_formfields WITH KEY name = v_checkbox_id.
          wa_map-field1 = wa_formfields-value.
       append wa_map to itab_map.
    endloop.
    This will solve the problem..
    <i>* Reward each useful answer</i>
    Raja T

  • Dispalying Checkboxes in the Tabsprit using BSP

    Hello Everyone,
    Could you please help me that I have just created a tabstrip with group of checkboxes. I am getting tabtrip in the explorer but I am not getting this checkboxes in it.
    How to do it could any one help me out.
    With Best regards,
    Suneetha

    two problems in the code.
    1.
    <htmlb:tabStripItem id      = "tabstripitem1"
                                index   = "3"
                                title   = "SAP Products "
                                tooltip = "SAP Products und Module angeben" >
    you have only one tabstrip item , however you mentioned index 3 which is causing problem. change it to 1 you will now see the check boxes.
    2. other problem - not related to this .
    <htmlb:label for = "Benutzte SAP Produkte"
    required = " "
    text = "Produkte"/>
    </td>
    <td Valign="top">
    <htmlb:checkbox id = "ERPCO"
    checked ="<%=Z_SAPProducts-ERPCO%>"
    text = "ECC / R/3"
    />
    htmlb:label for attribute should be referring to another UI element id
    exmaple you could link into to check box id ERPCO
    in that case label for = "ERPCO"
    Regards
    Raja
    assign points to helpful answers by choosing radiobuttons

  • Accessing HTMLB from javascript

    Hi expert,
    Can someone explain how to access the attributes,methods avialable in javascript to access htmlb objects in a page,
    Like for e.g.,
    htmlbSL(this,2,'SUBMITVALUES:HandleSubmit')
    Is there any document available?
    Thank you
    AP

    Hi AP,
    I believe there is no documentation avaliable about this.
    Maybe because this accessing method is not right to do
    but I can explaint about the function htmlbSL
    function htmlbEL(this,2,'SUBMITVALUES:HandleSubmit');
    this                      = HTML element.
    2                         = event type index.
    SUBMITVALUES:HandleSubmit = objectID:eventName
    if you want to know list of event type index.
    here the list:
    <b>EVENT TYPE                  INDEX</b>
    'htmlb:breadCrumb:click'      1
    <b>'htmlb:button:click'          2</b>
    'htmlb:checkbox:click'        3
    'htmlb:image:click'           4
    'htmlb:link:click'            5
    'htmlb:radioButton:click'     6
    'htmlb:tabStrip:click'        7
    'htmlb:tree:click'            8
    hope this can help you.
    respeck,
    -adyt-

  • Checkboxes remain set when looping over screen

    Hi there,
    I have got a problem with some checkboxes on a BSP with MVC.
    I am creating an extension for cProjects within a single tabStrip.
    My BSP constist of several checkboxes and I want to loop over this screen for some times to collect data. For every call of the BSP I create a new instance, set page attributes and call the view in DO_REQUEST. The page attributes cause some checkboxes to be set. This works fine so far.
    My problem is that checkboxes that were selected on the previous screen remain selected.
    I think this happens because the checkboxes have the same names as those on previous screens.
    How can I disable this behaviour? I would appreciate your help.

    Hi Raja,
    thanks for your friendly welcome!
    My BSP is already stateless. It is for assigning test
    types to components in a production project and for
    assigning standards to these test types. So there are
    some nested groups with checkboxes.
    First I loop over some existing test types and standards which will be displayed as 'checked' and the checkboxes are disabled. This works great so far.
    <%@page language="abap" %>
    <%@extension name="bsp" prefix="bsp" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="xhtmlb" prefix="xhtmlb" %>
    <%@extension name="phtmlb" prefix="phtmlb" %>
    <xhtmlb:overflowContainer>
      <htmlb:button id      = "test_comp_next"
                    text    = "Next"
                    tooltip = "Go to next step in Task Wizard"
                    onClick = "test_comp_next"
                    design  = "EMPHASIZED" />
      <br />
      <htmlb:textView text   = "Component Validation"
                      design = "EMPHASIZED" />
      <br />
      <htmlb:group>
        <htmlb:groupHeader>
      <htmlb:textView text   = "<%= ms_component-task_descr %>"
                      design = "EMPHASIZED" />
        </htmlb:groupHeader>
        <htmlb:groupBody>
          <table cellpadding="5" valign="TOP" >
          <tr>
          <%
      mv_counter = 0.
      loop at mt_test_types_available into ms_test_type_available.
      read table mt_test_types into ms_test_type with key task_type = ms_test_type_available-test_type.
      if ms_test_type is not initial.
      mv_counter = mv_counter + 1.
          %>
          <td valign="TOP">
          <htmlb:group width="110px" >
            <htmlb:groupHeader>
          <htmlb:textView text   = "<%= ms_test_type-task_type %>"
                          design = "EMPHASIZED" />
            </htmlb:groupHeader>
            <htmlb:groupBody>
              <%
      loop at mt_standards_available into ms_standard_available.
      if ms_standard_available-test_type = ms_test_type-task_type and ms_component-task_type = ms_standard_available-task_type.
      read table mt_standards into ms_standard with key task_type = ms_standard_available-product_std parent_guid = ms_test_type-task_guid.
      if ms_standard is not initial.
              %>
              <htmlb:checkbox id       = "<%= ms_standard-task_type %><%= mv_counter %>"
                              text     = "<%= ms_standard-task_type %>"
                              checked  = "TRUE"
                              disabled = "TRUE" />
              <br />
              <%
      clear ms_standard.
    After displaying the already existing standards I also display other standards that are available for a component and might be selected.
    else.
              %>
              <htmlb:checkbox id   = "<%= ms_standard_available-product_std %><%= mv_counter %>"
                              text = "<%= ms_standard_available-product_std %>"
                              key  = "<%= ms_test_type-task_type %>" />
              <br />
              <%
      endif.
      endif.
      endloop.
              %>
              </td>
            </htmlb:groupBody>
          </htmlb:group>
          <%
      else.
    After that I also loop over test types that are not existing yet. They and their corresponding standards can be selected in addition.
    mv_counter = mv_counter + 1.
          %>
          <td valign="TOP">
          <htmlb:group width="110px" >
            <htmlb:groupHeader>
          <htmlb:textView text   = "<%= ms_test_type_available-test_type %>"
                          design = "EMPHASIZED" />
            </htmlb:groupHeader>
            <htmlb:groupBody>
              <%
      loop at mt_standards_available into ms_standard_available.
      if ms_standard_available-test_type = ms_test_type_available-test_type and ms_component-task_type = ms_standard_available-task_type.
              %>
              <htmlb:checkbox id   = "<%= ms_standard_available-product_std %><%= mv_counter %>"
                              text = "<%= ms_standard_available-product_std %>"
                              key  = "<%= ms_test_type_available-test_type %>" />
              <br />
              <%
      endif.
      endloop.
              %>
              </td>
            </htmlb:groupBody>
          </htmlb:group>
          </td>
          <%
      endif.
      endloop.
          %>
          </tr>
          </table>
        </htmlb:groupBody>
      </htmlb:group>
    </xhtmlb:overflowContainer>
    Message was edited by:
            Stefan Grosskinsky
    Message was edited by:
            Stefan Grosskinsky
    Message was edited by:
            Stefan Grosskinsky
    Sorry I have got some problems with formatting my code.
    Message was edited by:
            Stefan Grosskinsky
    Message was edited by:
            Stefan Grosskinsky

  • HTML Checkbox can raise a OnInputProcessing event???

    Hello all,
    i have a little problem with an application with flow logic page. I have to incorporate a group of html checkbox that raise an event in the OnInputProcessing like an button do. this can be done?? and how can be do it??? . Please help. Thanx in advance

    Hi Mariana,
    If you want to call the OnInputProcessing Event then you need to use htmlb checkbox.
    Here is the sample code....
    In Page with flow logic....
    In Layout section...
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="Tab Strip" >
        <htmlb:form>
          <htmlb:checkboxGroup id="chkboxgrp" >
            <htmlb:checkbox id      = "cb1"
                            text    = "Red"
                            onClick = "myEvent1" />
            <htmlb:checkbox id      = "cb2"
                            text    = "Green"
                            onClick = "myEvent2" />
            <htmlb:checkbox id      = "cb3"
                            text    = "Blue"
                            onClick = "myEvent3" />
          </htmlb:checkboxGroup>
           <br>
          <%= red %>
          <br>
          <%= green %>
          <br>
          <%= blue %>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    In Page Attributes Section...
    blue     TYPE     STRING
    green     TYPE     STRING
    red     TYPE     STRING
    In OnInputProcessing section...
    data: chkbox1 type ref to cl_htmlb_checkbox,
          chkbox2 type ref to cl_htmlb_checkbox,
          chkbox3 type ref to cl_htmlb_checkbox.
    chkbox1 ?= CL_HTMLB_MANAGER=>GET_DATA(
    request = runtime->server->request
    name = 'checkbox'
    id = 'cb1' ).
    chkbox2 ?= CL_HTMLB_MANAGER=>GET_DATA(
    request =  runtime->server->request
    name = 'checkbox'
    id = 'cb2' ).
    chkbox3 ?= CL_HTMLB_MANAGER=>GET_DATA(
    request =  runtime->server->request
    name = 'checkbox'
    id = 'cb3' ).
    DATA: event TYPE REF TO CL_HTMLB_EVENT.
    event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
    IF event->name = 'checkbox' AND event->event_type = 'click'.
      case event->id.
        when 'cb1'.
          red = chkbox1->checked.
          if red eq ' '.
            red = 'Not Selected'.
          else.
            red = 'Red Selected'.
          endif.
        when 'cb2'.
          chkbox2 ?= CL_HTMLB_MANAGER=>GET_DATA(
          request =  runtime->server->request
          name = 'checkbox'
          id = 'cb2' ).
          green = chkbox2->checked.
          if green eq ' '.
            green = 'Not Selected'.
          else.
            green = 'Green Selected'.
          endif.
        when 'cb3'.
          chkbox3 ?= CL_HTMLB_MANAGER=>GET_DATA(
          request =  runtime->server->request
          name = 'checkbox'
          id = 'cb3' ).
          blue = chkbox3->checked.
          if blue eq ' '.
            blue = 'Not Selected'.
          else.
            blue = 'Blue Selected'.
          endif.
      endcase.
    ENDIF.
    Hope it solves your problem.
    Regards,
    Maheswaran.B

  • How to put custom check box in a tableview column

    Hi,
    I would like to put a custom checkbox in a tableview column for each row of the table.
    Such that when the user selects the rows and among those rows if for fews rows this checkbox is active, i need to do some special processing. how can i add a custom check box to a tableview column.
    Can anyone help me in this regard?
    Thanks and Regards,
    Kumar

    Hi,
    You can use the checkbox code within your tableview column:
    <htmlb:tableView id = ".."
    >
    <htmlb:tableViewColumn id = " "
    type = "USER"
    >
    <htmlb:checkBox id = ".."
    selected = " "
    />
    </htmlb:tableViewColumn>
    </htmlb:tableView>
    I hope it helps.
    regards,
    Rohit

  • Disabling a Check box

    In my BSP View am using two check box.
    I want to disable one check box when the other one gets checked and vice versa.
    Right now am doing with some logics and with server side events.I want to do this in the client side.
    In <b>Java script</b> how i can code this in my BSP page where the checkbox is created with the help of htmlb.
    Kindly help me in this regards.

    Hi,
    put this in your documentHead:
    <script language="javascript">
         function uncheckyes(){
          document.form_id.yes.disabled='TRUE';
          </script>
    <script language="javascript">
         function uncheckno(){
          document.form_id.no.disabled='TRUE';
          </script>
    and this in your layout (documentBody):
           <htmlb:checkboxGroup columnCount = "2"
                                         id          = "expense" >
                      <htmlb:checkbox text          = "Yes"
                                      id            = "yes"
                                      onClientClick = "javascript:uncheckno()" >
                      </htmlb:checkbox>
                      <htmlb:checkbox text          = "no"
                                      id            = "no"
                                      onClientClick = "javascript:uncheckyes()" >
                      </htmlb:checkbox>
                    </htmlb:checkboxGroup>
    grtz
    Koen

  • Check box with value in bsp page

    hi experts.
    i  m new to bsp.
    i  want to fetch one field from a ztable  with check box may be  possible field  have more than 4 values.
    checkbox1           .... value1
    checkbox2          ..... value2
    checkbox3          ..... value3
    checkbox4          ..... valule4
    but there is  not any field for checkbox in  ztable .
    now  when we select check box  depending on the selection of checkbox related values of field come into the 2nd page.
    example if i select check box 3 and 4 than values related to value 3 and value 4 come into the 2nd page .
    if any budy have  gud example of this case plz let me  know.
    points are guarented...

    PAGE ATTRIBUTE.
    itab_result     TYPE     ST_TV
    wa_result     TYPE     TY_TV
    LAYOUT.
        <% data: v_checkbox_id type string,
          sy_tabix type string.
    Loop at itab_result into wa_result.
    sy_tabix  = SY-TABIX.
    concatenate v_checkbox_id 'CHK' sy_tabix into v_checkbox_id.%>
    <td>
    <htmlb:checkbox id = "<%= v_checkbox_id %>"
            text = "<%= wa_result-stext %>"
          checked = "<%= wa_result-idx_data %>"
           />
    </td>
    <% ENDLOOP.

  • Resolve Checklist Reference

    Hi,
    While creating a new project if one uses the Checklist Templates & wants the details of the checklist items to be seen in the project structure, he/she has to set the flag for "Resolve Checklist Reference" on the home page.
    Is there a way that this flag can be set by default?
    Regards
    Deepak

    Hi Bjorn,
    Thank you very much for all your help & replying patiently to all my querries. I succeeded, at last, in resolving the issue, rather "Resolve Checklist Reference".
    For everyones benefit I am putting below the steps to be followed for defaulting the flag:
    1. Call the report BSP_CUSTOMIZE in transaction SE38. Using the report for the BSP application cProjects, create a new BSP application in  the customer namespace:  Decide where you want to make the changes, and enter cprojects, cprojects_cp, or prp (In our case for checklist reference it is cprojects) under Name of Application and a name in the customer namespace, “z_.....” as the new name.
    2. Select “Copy Application” from the selection screen. Click “Execute (F8)”
    3. Copy the view "toolsprj.bsp". Assign a package & create a workbench request.
    4. Open the customized BSP application “z_.....” in transaction SE80.
    5. Double click on the toolsPrj.bsp, under views of your customized application & insert the following code:
    <htmlb:checkbox id      = "resolve"
                                onClick = "resolve"
                                checked = "X"
                                tooltip = "<%= otr(development_projects_ui_bsp/resolve_checklist_ref) %>" >
                </htmlb:checkbox>
    6. Then copy the 2 controllers Tools.do and error.do from cprojects to yout own "z......" BSP application.
    7. Activate both the controllers & BSP page toolsPrj.bsp
    8. Activate your change and activate your own application using the BSP_CUSTOMIZE report. You can check this, by searching for CPROJECT in the BSP_APPLC table.
    Table BSP_APPLC
    SAPAPPL      CUSAPPL     ACTIVE
    CPROJECTS    Z......     X
    Here you should find the entry above activated.
    After doing the above settings, when you open your cProjects browser & create a project, you would see that the Resolve Checklist Reference flag is set by default.
    Regards
    Deepak

Maybe you are looking for

  • Excel series

    Hi All, I'm trying to modify the series line weight of a chart on my excel sheet by using the property activex. I'm using the Graph.Chart object and the series property node return to me the error -2147352573. Where am I making mistake? I'm using: La

  • Loss of network connectivity after reboot

    I'm new to Macs, so please excuse any ignorance. I'm trying to finally get my G5 on my wireless network. I have an airport card installed and I can successfully connect to my wireless after I enter the network name and WEP key. However, if I reboot t

  • How to handle the events of business object (BAPI)

    Hi, How to register to BAPI event and handle? For example, for a business object 'inv', there is an event as 'created'. I want to insert entry in a z table when an inv is created. I assume that the 'created' event is triggered when an inv is created.

  • 7.5.2 fails to update on one of two Air port extremes

    I have two Airport Extremes and one updated the firmware fine but the other has the airport utility just sitting there searching for the latest firmware version and never updates. THe one that updated fine is the extension unit and the one that will

  • URGENT: executeQuery after setWhereClause causes infinite loop

    Hi, - I'm using jdev 9.0.3.2. - I have a JTable bound to a ViewObject. - I set the vo's whereClause, the where clause has some syntax error. - I call executeQuery - The JBO exception is shown. - I press ok. BUT: - The JBO exception is called again an