Oninputprocessing- Oninialization

hi all,
Some code of event "oninitialization" has to be accessed on click of button D. This button is for downloading the itab value in an excel sheet.
The problem is that even though all other buttons lead the control to "oninitialization", this button D doesnt.It simply opens the excel sheet with itab value in it.
Please suggest what should be checked.
Thanks

Hi Shakey,
I am only guessing because I can't see your code, but I suspect in the OnInputProcessing event you are doing something like this...
response->set_data( data   = l_xstring
                    length = l_len ).
navigation->response_complete( ).
One of the things to keep in mind is that the HTTP protocol is pretty simple. The client (web browser) builds a HTTP request and sends it to the target URL. The server receives this request, builds a response, and returns the response to the client. Always one request is answered with a single response.
The above code snippet shows how to load data into the response object with the SET_DATA method. Then the NAVIGATION->RESPONSE_COMPLETE method tells the BSP runtime that you have completed processing the response object and to send it back to the client. In other words all processing is finished.
If you do not call the RESPONSE_COMPLETE method the BSP runtime carries on and calls the OnInitialization event.
Cheers
Graham Robbo

Similar Messages

  • I'm not able to get to the OnInputProcessing event from a button click

    I have a tableview and I added a button and I have put the code in the event OnInputProcessing. But when I click the button, it does not get to the event. Do you know what the problem might be?
    Please help
    Here's the complete code:
    ==============================
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name = "bsp" prefix="bsp" %>
    <% if mrept = 'X'.%>
    <htmlb:content design="classicdesign2002design2003" >
      <htmlb:page title = "Manager's Report ">
      <htmlb:form>
          <%-- TableView with columns description table --%>
          <htmlb:tableView id              = "tvX"
                           headerText      = "Manager's Report"
                           headerVisible   = "true"
                           design          = "alternating"
                           visibleRowCount = "30"
                           fillUpEmptyRows = "true"
                           onHeaderClick   = "MyEventHeaderClick"
                           onRowSelection  = "MyEventRowSelection"
                           keyColumn       = "contract"
                           table           = "<%= ZVMGR_MREPT %>"
                           iterator        = "<%= tv_iterator %>" >
          <htmlb:tableViewColumns>
              <htmlb:tableViewColumn    columnName       = "manager"
                                        wrapping         = "true"
                                        title            = "Manager" />
              <htmlb:tableViewColumn    columnName       = "sales_rep"
                                        wrapping         = "true"
                                        title            = "Sales Rep" />
              <htmlb:tableViewColumn    columnName       = "kunnr"
                                        wrapping         = "true"
                                        title            = "Sold To" />
              <htmlb:tableViewColumn    columnName       = "zzmassn"
                                        wrapping         = "true"
                                        title            = "Action" />
              <htmlb:tableViewColumn    columnName       = "action_date"
                                        wrapping         = "true"
                                        title            = "Compliance Review Date" />
              <htmlb:tableViewColumn    columnName       = "vtext"
                                        wrapping         = "true"
                                        title            = "Prod Line" />
              <htmlb:tableViewColumn    columnName       = "name1"
                                        wrapping         = "true"
                                        title            = "Name" />
              <htmlb:tableViewColumn    columnName       = "ort01"
                                        wrapping         = "true"
                                        title            = "City" />
              <htmlb:tableViewColumn    columnName       = "regio"
                                        wrapping         = "true"
                                        title            = "State" />
              <htmlb:tableViewColumn    columnName       = "period"
                                        wrapping         = "true"
                                        title            = "Compliance Review Period" />
              <htmlb:tableViewColumn    columnName       = "c_or_nc"
                                        wrapping         = "true"
                                        title            = "Status" />
              <htmlb:tableViewColumn    columnName       = "shortfall"
                                        wrapping         = "true"
                                        title            = "Shortfall Total" />
              <htmlb:tableViewColumn    columnName       = "close_date"
                                        wrapping         = "true"
                                        title            = "Action Date" />
              <htmlb:tableViewColumn    columnName       = "rewrt"
                                        wrapping         = "true"
                                        title            = "Action $" />
              <htmlb:tableViewColumn    columnName       = "zrvtid"
                                        wrapping         = "true"
                                        title            = "Contract" />
             </htmlb:tableViewColumns>
             </htmlb:tableView>
               <htmlb:button id = "btnxl" design = "emphasized" text = "Excel"
                onClientClick = "OnInputProcessing()" tooltip = "Download to Excel" />
           <p>
        <input type=submit name="onInputProcessing(Submit)"  value="Excel">
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    <%else.%>
    <htmlb:content design="classicdesign2002design2003" >
      <htmlb:page title = "Sales Rep's Report ">
        <htmlb:form>
          <%-- TableView with columns description table --%>
          <htmlb:tableView id              = "tvX"
                           headerText      = "Sales Rep's Report"
                           headerVisible   = "true"
                           design          = "alternating"
                           visibleRowCount = "30"
                           fillUpEmptyRows = "true"
                           onHeaderClick   = "MyEventHeaderClick"
                           onRowSelection  = "MyEventRowSelection"
                           keyColumn       = "contract"
                           table           = "<%= ZVMGR_SREPT %>"
                           iterator        = "<%= tv_iterator %>" >
          <htmlb:tableViewColumns>
              <htmlb:tableViewColumn    columnName       = "sales_rep"
                                        wrapping         = "true"
                                        title            = "Sales Rep" />
              <htmlb:tableViewColumn    columnName       = "kunnr"
                                        wrapping         = "true"
                                        title            = "Sold To" />
              <htmlb:tableViewColumn    columnName       = "zzmassn"
                                        wrapping         = "true"
                                        title            = "Action" />
              <htmlb:tableViewColumn    columnName       = "action_date"
                                        wrapping         = "true"
                                        title            = "Compliance Review Date" />
              <htmlb:tableViewColumn    columnName       = "vtext"
                                        wrapping         = "true"
                                        title            = "Prod Line" />
              <htmlb:tableViewColumn    columnName       = "name1"
                                        wrapping         = "true"
                                        title            = "Name" />
              <htmlb:tableViewColumn    columnName       = "ort01"
                                        wrapping         = "true"
                                        title            = "City" />
              <htmlb:tableViewColumn    columnName       = "regio"
                                        wrapping         = "true"
                                        title            = "State" />
              <htmlb:tableViewColumn    columnName       = "period"
                                        wrapping         = "true"
                                        title            = "Compliance Review Period" />
              <htmlb:tableViewColumn    columnName       = "c_or_nc"
                                        wrapping         = "true"
                                        title            = "Status" />
              <htmlb:tableViewColumn    columnName       = "shortfall"
                                        wrapping         = "true"
                                        title            = "Shortfall Total" />
              <htmlb:tableViewColumn    columnName       = "close_date"
                                        wrapping         = "true"
                                        title            = "Action Date" />
              <htmlb:tableViewColumn    columnName       = "rewrt"
                                        wrapping         = "true"
                                        title            = "Action $" />
              <htmlb:tableViewColumn    columnName       = "zrvtid"
                                        wrapping         = "true"
                                        title            = "Contract" />
             </htmlb:tableViewColumns>
             </htmlb:tableView>
               <htmlb:button id = "btnxl" design = "emphasized" text = "Excel"
                onClientClick = "OnInputProcessing()" tooltip = "Download to Excel" />
           <p>
        <input type=submit name="onInputProcessing(Submit)"  value="Excel">
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    <%endif.%>

    Hey Samuel,
    You have not defined the name of the event.
    Your button tag should be defined as follows:
    <b><htmlb:button id = "btn_ShowProductStructure"
    text = "Show Product Structure"
    design = "EMPHASIZED"
    onClick = "onInputProcessing(<i>btn_ShowProductStructure</i>)"
    tooltip = "Click here to open Product Structure.."
    /></b>
    In attribute: onClick = "onInputProcessing(btn_ShowProductStructure)" replace <b><i>btn_ShowProductStructure</i></b> by the name of the event that you want to define.
    Then onInputProcessing Page write the following code:
    <b>IF EVENT->NAME = 'button' AND EVENT->EVENT_TYPE ='click'.
       CASE EVENT->ID.
         WHEN <i>'btn_ShowProductStructure'</i>.
    <your logic comes here>
    ENDCASE.</b>
    Regards,
    Reema.
    Pl. give points if this solution addresses your problem.

  • 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

  • Open a pop-up in the OnInputProcessing part of a web page with flow Logic

    Dears all,
    System used : SAP WebAs 6.20
    I have a html page in my project where every user can choose some options with radio buttons. When the user choose something, he click on a button which send us in the OnInputProcessing part of the page.
    In the OnInputProcessing, we will do a CALL FUNCTION. If the result is Ok, we must display a pop-up with only a OK button.
    From the layout part of the page, I display a pop-up with success using this code :
    SCRIPT language=javascript
       function ConfirmMessage() {
           var bflag = confirm("Are you sure that you want to confirm your offer ?")
           u2026
    /SCRIPT
    FORM
       <input type = "submit" onClickMethod="ConfirmMessage()" name="onInputProcessing(post)" value="Confirm">
    /FORM
    But I can't call this code form the OnInputProcessing. I try with the functions of the class : CL_JAVA_SCRIPT too, but nothing is displayed.
    Someone can help me ?
    Best Regards,
    Nelson
    To Insert the post I was obligated to remove all the ">" and "<" and rename OnClick in OnClickMethod...
    Edited by: Nelson Antunes on Feb 11, 2009 10:02 AM

    Hi Nelson ........ i wrote this test BSP page for you:
    Page Attribute :
    iv_visible type boolean.
    OnCreate:
    iv_visible = 'X'.
    OnInputProcessing:
    DATA:  event TYPE REF TO cl_htmlb_event.
    event = cl_htmlb_manager=>get_event( runtime->server->request ).
    CASE event->name.
       WHEN 'button' .
        CASE event->id.
          WHEN 'BUTTON'.
            if iv_visible = 'X' .
              " data status type bollean.
              " call function 'FUNC'
              " EXOPORTING
              " status = status .
              " if status =  'X'.
                 clear iv_visible .
              " else.
              "" do nothing
              "endif.
            endif.
          WHEN 'POPUP_OK'.
            " process action after the user confirm
          WHEN 'POPUP_CANCEL'.
            " process action after user press "cancel"
            " in confirm popup
            iv_visible = 'X'.
        ENDCASE.
    ENDCASE.
    Layout:
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <htmlb:content design="design2003">
      <htmlb:page title = " ">
        <htmlb:form>
              <% if iv_visible is not initial. %>
               <% else. %>
               <% endif. %>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>    
    <style type="text/css">
        #confirm_popup{
          position: absolute;
          visibility: visible;
          border: 7px solid #001EA1;
          width: 300px;
          height: 50px;
          left: 400px;
          top: 300px;
          background-color: #ECE222;
    </style>
    Edited by: fabrizio gemma on Feb 13, 2009 5:49 PM
    Edited by: fabrizio gemma on Feb 13, 2009 5:51 PM
    Edited by: fabrizio gemma on Feb 13, 2009 5:52 PM
    Edited by: fabrizio gemma on Feb 13, 2009 5:57 PM

  • Pass parameter from OnInitialisation to OnInputProcessing

    Hi,
    I have asked this before but I closed that thread and awarded all the points.
    I'm still having trouble with it, so I post it again for clarification.
    I have a BSP, a.bsp
    in the Page Attributes I have a parameter error1 which is a string with the AUTO box checked
    in the OnInitialisation Event I set error1 = 40
    in the layout error1=40 is used as a trigger
    in the layout there is a submit button which leads to the OnInputProcessing Event for the same page
    in the OnInputProcessing Event I have an if statement with the criteria if error1 = 40
    my problem is when I debug, error1 has not value assigned in the OnInputProcessing Event so my if statement gets ignored
    why is that ?  surely the value of the string parameter should be automatically carried from the OnInitialisation Event to the OnInputProcessing Event - because it is correctly defined in the page attributes with auto checked.
    Anybody any ideas ?
    Thanks,
    Tomas.

    Craig,
    thanks for the quick reply, I just tried putting in a hidden input field in the layout to carry the value from the Initialisation event through the Submit button to the OnInputProcessing event - but it didn't work
    <htmlb:inputField id                 = "error1"
                                type     = "string"
                                required = "false"
                                visible  = "false"
                                value    = "40" />
    also tried with,  value    = "<% error1 %>" />
    but I didn't use your 'get_form_field' in the OnInputProcessing Event because I thought as Thomas points out that if a Page Attribute is set to Auto then it will be carried from Event to Event or Page to Page ?
    Thomas, I don't  think I need to use your,
    navigation->set_parameter( name = 'FLIGHT' value = "LH" ).
    because this is all in the same Page, just going between OnInitialisation Event and OnInputProcessing Event.
    I do use the,
    navigation->set_parameter( name = 'FLIGHT' value = "LH" ).
    navigation->goto_page( event->event_server_name ).
    but only for a back button to a different Page.
    Interestingly this page is navigated to automatically from another page and all of the parameters which come over automatically from the other page arrive fine and are available in all events, it is only the parameters which I set in the OnInitialisation Event which are not availablem for other Enents in the same page - which aren't working - even though they are available to the layout after the OnInitialisation.
    Oh well I keep trying.
    Thanks for feedback, any more ideas ?
    Tomas.
    Message was edited by: Tomas Altman

  • How to handle OnInputProcessing in a page from an another page

    Hi All,
    can someone help me?
    I have a bsp page with 2 frames.
    Frame1 contains a button. On pushing this button, i want to handle page2 OnInputProcessing event (without passing by OnInitialization)
    How can i do that ?
    Edited by: geek nadine on May 3, 2011 6:29 PM

    Hi Nadine,
    why don't you just put the code in a method of its' own and then you can call it from wherever you like?
    Cheers
    Graham Robbo

  • How to close bsp page in onInputprocessing eventhandler?

    On my bsp page layout, i have a cl_htmlb_button .i do some db processing in that button's onclick event,at the end of the processing i want to close the page,but i don't want to use onclientclick event (e.g. javascript:window.close() ) of that button.
    so my question: how can i access javascript function to close the current page within onInputprocessing eventhandler ?
    or which abap class method should i call to close the page?

    Hi,
    One can't use JS in the oninputprocessing. There are 2 options:
    - either you submit you form via JS and end with
    window.setTimeout('window.close()',5000);
    check http://www.devguru.com/technologies/ecmascript/quickref/win_settimeout.html for details
    - either you don't specify any page you're navigating to end set a variable.
    in the the <body> tag of your layout  you test on that variable. If set you do a window.close in the onload of the body.
    Check http://www.devguru.com/technologies/ecmascript/QuickRef/evhan_onload.html for details on that.
    Eddy
    PS. Reward the useful answers and you will get <a href="http:///people/baris.buyuktanir2/blog/2007/04/04/point-for-points-reward-yourself">one point</a> yourself!

  • Cancel navigation at onInputProcessing

    Hello,
    I have an editable table view with the standard prev/next buttons. When the user changes data I want to validate it before it is saved. This is easy for my own events.
    If the user changes something and then clicks "prev" or "next", I can see this at onInputProcessing. I could do the necessary checks and I notice that "prev" or "next" was clicked, BUT I cannot cancel the navigation.
    Of course I can cancel the navigation using Java Script on the button, but A) I did not create the button and B) the checks are quite complex and I'd prefer to do it in ABAP.
    Is there a way to cancel navigation at onInputProcessing? Otherwise I'd have to create my own "prev" and "next" buttons, but this will look ugly.
    Thank you
    Roland

    > To which page you are being navigated?
    Like I said, the user clicked "next" on a tableView, so the BSP page stays the same, just with a new set of table lines. I don't want this to happen in certain cases though.
    > What do you mean by cancel navigation?
    see above, the table should not change to new lines
    > Is it a standard application you are working on? or custom application?
    a custom BSP application

  • Calling onInputProcessing javascript error

    Hi,
    My query is as follows: I want to call onInputProcessing on pressing of a link.
    as follows.
    <a href="mailto:<%  loop at i_mail into wa_mail.    %>      <%= wa_mail%>,"
          <%  endloop.      %>
           onClick="onInputProcessing()">Send Email to selected </a>
    But It give me a javascript error on clicking of the link.
    Please help me on this.
    Thanks
    shilpa

    Hi,
    The exact same question has been answerered here:
    Mailing in HTMLB using HTML a href syntax
    Best regards,
    Guillaume

  • OPEN DATASET FROM BSP OnInputprocessing

    Hi Guys!
    I try to write a text file to the application server using oninputprocessing method in a bsp application by OPEN DATASET. If I run the BSP applcation in a LAN environment everything goes well, the application creates the file and writes the data. But if I run the same application from WAN the app. retuns with OPEN_DATASET_NO_AUTHORITY. To login users automatically i use a technical user for the internet service of this BSP application - this user is  : service type.
    The application is achieved on https. The only difference is the IP range (reached application from WAN or LAN).
    How could I preform this file creation from WAN (same as it works in LAN environment)    
    Thanks Héger A

    Dear Tobias!
    The problem was solved , by using specified roles for the technical user. In this case the roles are giving rigthts for the used areas and is able to reach the app. outside fom LAN
    Back to the original question:
    Both occasion I use the mentioned webuser without any rights.
    But I can use open_datset in a LAN environmet but couldn't from WAN.
    I ran the application in test mode logged in sap as a developer user, in se80 rigtht click on default.htm (entering point of webapp) then Test...
    Next step sap calls IE and runs the app, but logging in automatically as the technical user
    How does SAP "know" the runing environment? - I know is a stupid question, but this mechanism (i.e. in LAN occasion it runs but WAN doesn't run and evreything is the same in both occassion ) is totally ununderstable for me.
    The question is why can

  • Check in OnInitialization to be done also in OnInputProcessing

    Hi,
    I have a problem with my flow logic.
    I have a BSP application with 1 button 'Start' and a button 'Refresh'.
    In <i>OnIntialization</i>, I checked that a specific processing is not running.
    In <i>OnInputProcessing</i>, I launch the processing I mentionned above.
    The problem occurs when several people are working simultaneously :
    1) user A launches the BSP application
    2) user B launches the BSP application
    3) user B clicks on the 'Start' button, trigerring the processing
    4) user A clicks on the 'Start' button
    ==> he should be blocked! But, as the control is only done in OnInitialization, the process is launched, resulting in a crash...
    <b>Am I completely wrong in the way I handled the logic flow ?</b>
    Ideally, I would like to check once again in OnInputProcessing : the best way would be to call OnInputProcessing...
    --> <b>Is this possible to call <i>OnInitialization</i> from <i>OnInputProcessing</i>?</b>
    Thanks in advance for your replies!
    Cheers,
    Guillaume

    >By the way, is this not what the controller is supposed to do
    Well OnInitialization and OnInputProcessing aren't controllers. 
    It is a matter of opinion, but I don't like to but very much logic in my controllers at all. I like them to just control the flow of things.  Any actual processing logic I place back in my model class.  My controllers are really just full of IF and CASE statements and then method calls.  I like to have a clear separation of my logics that way if some processing needs to happen in more than more event or more than one controller it is easy to share.  If you use MVC this is still keeping it in BSP.

  • HTML Tag Problem OnInputProcessing

    Hi!
    Hope anybody can help.
    I have a MVC application. In our views, we can´t use HTMLB controlls. So we must use standard HTML controlls.
    With ?onInputProcessing it is possible to come in the on_handle_event Method in my controller class.
    The HTML statement in the view works fine :
    <a href="?onInputProcessing(NAVIGATION_MAIN_FUNCTIONS|BACK)">
    But in the select HTML Tag the statement doesn´t work.
        <select onchang e="?onInputProcessing(NAVIGATION_MAIN_FUNCTIONS|BACK)">
        <option>1</option>
        <option>2</option>
        <option>3</option>
        <option>4</option>
        <option>5</option>
        <option>6</option>
        </select>
    What`s wrong in the select tag??
    Regards,
    Anton

    Try below code, it will solve the issue
    < script t-ype="text/javascript">
    function triggerevent(event)
         document.getElementById("OnInputProcessing").value = event;
         document.getElementById("MYFORM").submit();  " Change the Form name here
    < / script >
        <select onchang e = "triggerevent_contact_dd('Your_event_name_here')">
        <option>1</option>
        <option>2</option>
        <option>3</option>
        <option>4</option>
        <option>5</option>
        <option>6</option>
        </select>
        <input type="hidden" name="OnInputProcessing" value="value"/>

  • Event OnInputProcessing not triggered ..... please help, it's urgent

    hi all,
    i have a problem in my bsp page.
    in my bsp page, there is a button which is clicked, a new pop up window will appear. after the pop up window closed the caller window will be submitted.
    after submitted, the server side script ( ABAP Code in event OnInputProcessing & OnInitiallization will be run ).
    in order to be able to do this, i used java script. and it's already works well.
    the problem is : there is 1 record that the ABAP code in event OnInputProcessing is not run. I have set break points on one of code in event OnInputProcessing, but it seems event OnInputProcessing is not triggered. if i also put the break point in event OnInitialization, it will stop in the break point in event OnInitialization.
    is there any clue why this happened ?
    please help, it's urgent because it's happened in my production system
    many thanks in advance
    regards
    eddhie

    hi Raja,
    thanks for the respond.
    the code is already works for 2 years and just 1 record of ... perhaps thousands record that used the same code.
    for other record, it go to event OnInputProcessing
    but just this 1 record it won't go to event OnInputProcessing.
    any clue ?
    please help
    regards

  • Mime Objects in 'OnInputProcessing' event

    Hi All,
                 I want to know whether we can use the mime objects in the oninputporcessing event.I tried writing
    <img src="picture.gif"> in layout it works fine, but the same code in this event doenst work.I tried writing some html codes in the oninputprocessing event.It works.Only these mime objects are not working.Kindly give some suggestions.

    data : LV_OUTPUT type string
    CONCATENATE LV_OUTPUT
    '<HTML><HEAD></HEAD>'
    '<BODY  rightmargin="0" leftmargin="0" bgcolor=white>'
    '<div class=Section1>'
    '<table align="center" width="100%" bgcolor=white ID="Table2">'
    '<tr>'
    ' <td><img align = "left" src="picture.gif"><td>'
    '                    </td>'
    '                    </tr>'
    '               </table>'
    into LV_OUTPUT.
    This variable 'LV_OUTPUT' i am using to download into a word template.Remaining layout comes properly ,except this picture.

  • 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

Maybe you are looking for

  • Performance with SSRS on Sharepoint

    Hi, Environment: Sharepoint 2010, SSRS deployed in Share Point integrated mode. Problem: Performance of page load with ssrs reports I have a Share Point page which displays 10 SSRS report, SSRS reports only contains 1 graph each. SSRS graph are displ

  • Vanilla rpd modification.

    Hi, I am currently working on OBIEE integrated with Oracle Apps. We have a discoverer report which needs to be created in OBIEE. There are coupl of fields missing in OBIEE subject area. I was able to indentify these fields in the physical and logical

  • HT204210 STATUS_CODE_ERROR message in App Store when trying to authenticate to download iMovie update after 10.10.2 update

    After updating to 10.10.2, when I try to authenticate when to download an iMovie update in the app store, I get a STATUS_CODE_ERROR message. How do I fix it?

  • Problem in loading the library through Servlet

    Hello, When i wrote an application which accesses my java component that has native methods and it loads the library that has the implementation of these methods, it works perfectly fine. But now when i am trying to access the same component through

  • Embedded Youtube Video's not Playing in Web Viewer

    I have several YouTube videos embedded in my folios. They all play fine when being viewed in the app, but if the folio is shared (by any channel) and viewed in the web viewer these videos won't play. Instead the user is greeted by this error: Not fou