BSP Event Types [event- event_types]

Hello Peeps,
Could someone provide me the list of event types used in BSP especially when user presses "Enter"  or even any key boad strokes.
Example of event type is "click"
pseudocode:
DATA: event TYPE REF TO CL_HTMLB_EVENT.
event->event_type = 'click'.
What are the others? For "Enter"?

Hi,
Welcome to SDN.
Check this link -
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/e9/bb153aab4a0c0ee10000000a114084/frameset.htm">BSP</a>
Regards,
Amit
Reward all helpful replies.

Similar Messages

  • RETURN statement "kills" my BSP event handling

    Hi,
    I've gone through [this|Downloaded Excel data is shown using Chinese characters (!); and everything went just fine. At the end of that code, to make my BSP react and finally display that popup, I had to insert a RETURN statement, and by doing so, the BSP virtually "dies": stops reacting to any ohter event, and finally makes me close the browser. This is the relevant section of my code:
    cFolders
    OnInputProcessing event
    response->set_data( data   = lv_xstring ).
    navigation->response_complete( ). " signal that response is complete
    return.
    Why is that happening? What could I do to avoid that behavior, and keep working my custom pushbutton functionality?
    Thanks in advance, hope someone could help me.
    Regards,
    Federico.

    Hi Frederico,
    I think there is a misunderstanding, what you want your application to do and what response_complete is used for.
    Do I understand your requirement right: You want a popup-window with excel content and in background-window the standard application should run unchanged?
    That doesn't work with response_complete in OnInputProcessing, because the statement is used to prevent creating the default response of a page in onLayout method
    If you use RETURN, the processing of your page is stopped and the response consists only of the content you filled in but not of any default page layout => excel appears but your application seems to be dead
    If you do not use RETURN, you navigate to another page (statement cl_cfx_util_ui=>navigate). As navigation in BSPs is realized by a browser redirect, a complete new request-response-zyklus is started => no excel appears, your response seems to be overwritten
    Possible solutions are:
    1. Instead of sending the response object back to the client, store it in the server-cache (method SERVER_CACHE_UPLOAD of class CL_HTTP_SERVER) in OnInputProcessing and open a new browser window with url of object in server-cache.
    OR
    2. Open a new browser window with url of a new custom bsp page and generate the response in onInitialization of the new custom page.
    Search the forum, you'll find a lot of examples how to use the server-cache and how to open a new window with javacript.
    Anyway: read also SAP help to understand the control flow of BSPs: [http://help.sap.com/saphelp_nw70/helpdata/en/a3/4b9afa7aa511d5992e00508b6b8b11/frameset.htm] 
    Best regards,
    CW

  • Submit button to trigger BSP event

    Hi,
      I have a BSP applicaition which is already existing, now I need to integrate a Adobe form for User Interface.. On clicking the Submit button in the Interactive form.. I should trigger an event and at the same time it should call the 'On Input Processing' method of the BSP application.
    Please help me if some one has done it .. or give ur suggestions .. ?
    Thanks
    Sivaraj

    Hello Otto,
    Thanks for the reply,  I created my application refering the above blogs.
    I have BSP Page
    <htmlb:content u2026.>
    <htmlb:page u2026.>
    <htmlb:form>
    <<AREA FOR DISPLAYING ERROR/SUCCESS MESSAGES >>
    << HTMLB Buttons for SAVE/PRINT_PREVIEW/BACK >>
    <iframe src="getPDF.do">
    u201DControl getPDF.do returns Adobe Interactive Form in PDF format
    </iframe>
    </htmlb:form>
    </htmlb:page>
    </htmlb:content>
    in getPDF.do I'm getting PDF Interactive form as PDF Fiel, Inside the form there is a Save button.
    Currently if I click the save button in Interactive for , only the IFrame & Adobe Form is getting refreshed,
    What I want is 
    On Click of Save button of ADOBE, It should trigger Click event of Save button in BSP Page.
    Is there any script event in Adobe Form to access window.document object of my main page?
    Regards
    Geogy

  • BSP Chart Types Available

    Hi,
      I want to display Charts & Maps in BSP with the data driven from the Tables. I have seen <html:charts> which supports Bar,Line,Area,Pie(2D & 3D) Charts. But is there any component to show the Maps with the City.
      BW has some component called MAPS in BEX web application designer which comes from IGS. Is there any possibilities to use those type of Graphics in BSP.
      Has any experts done that?
    Thank you
    arun

    Hi Arun,
    the BW BEx mapping functionalities are not connected to the BSP framework.
    However, there's a <graphics:map>-Tag which would be able to display objects on top of a detailed map - unfortunately, SAP can't ship the map data together with the WebAS so this needs to be set up project-based in conjunction with a GIS partner/vendor.
    Regards,
    Philipp

  • BSP date type input datepicker blanking out

    When I introduced tabstrips to my application(main controller view) and called the subcontroller as item of each tab the datepicker dropdown for the date fields shows up as a blank box .I have read through such similar posting but the suggestion (e.g change design to 2002+2003 ) have not worked .I would appreciate anyone inputs from anybody.
    Thanks,
    Manoj
    e.g
    <htmlb:inputField id        = "im_date3"
                      value     = "<%= test %>"
                            design  = "STANDARD"
                            type      = "DATE"
                             showHelp  = "True"
                             size = "10" />

    please post this in BSP forum for better response.
    Business Server Pages (BSP)
    check out OSS note no. 616900
    Regards
    Raja
    Message was edited by: Durairaj Athavan Raja

  • Handling events in BSP application using WML tag Extensions

    Hello Everyone  ,
                            We are developing a BSP applications for Mobile handheld using WML tag library. I am looking for some code samples to know how we can handle evevents inside the BSP using the WML tag library.
    Can any one of  you plesae help us by placing a code snippet for handling onInputprocessing() methods (BSP Using WML Tag extensions).
    I mean to ask how we can handle events inside the BSP applications that uses the WML tag library.
    I know about how to handle BSP events using HTMLB and XHTMLB tags frameworks.
    Thanks for your help in advance.
    Thanks,
    Greetson

    Is this WML tag library something that is supplied by SAP u2013 as a BSP Extension Element?  Or are you just using WML tags directly in your layout?  I can tell you in general that if you want to generate HTMLB events from regular HTML code you can generate the JavaScript calls using the htmlbEvent tag of the BSP extension library.  However your tags have to be running within an HTMLB Content tag for this to work.
    If you want to work totally without HTMLB then you need to use the simple HTTP Post but format the input name as OnInputProcessing(<function code>) like this:
    <input type="submit" name="OnInputProcessing(ok)" value="OK">
    This will cause the OnInputProcessing event handler to trigger without needing any HTMLB tags (this is how it was done in WebAS 6.10 before we BSP Extensions).

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

  • Event Handling in treeNode

    Hi!
    How can I handle the onNodeClick event associated with the treeNode.
    Thank You.

    HI,
    You can see the application SBSPEXT_HTMLB page Tree.bsp.
    If in layout your tree is like:
    <htmlb:tree id = "myTree1"
                title   = "INBOX"
                toggle  = "X"
              width="240">
    <htmlb:treeNode id      = "root"
                     text    = "LIST"
                     isOpen  = "true">
             <htmlb:treeNode id    = "node2<%=sy-tabix%>"
                          text  = "<%=tab_1-MRF_NUM%>"
                           image = "@01@"
                            onNodeClick="show"  >
    Then on Input Processing you can get the node selected by handling the onnodeClick as:
    if event_id = cl_htmlb_manager=>event_id.
      event ?= cl_htmlb_manager=>get_event( runtime->server->request ).
       if  event->id = 'myTree1' and event->event_type = 'click'.
         data : t_event type ref to cl_htmlb_event_tree.
         t_event ?=  event.
        temp = t_event->node.
    where temp type string
    This way you can get the ID of the node selected by onNodeSelection.
    Regards,
    Siddhartha

  • Event handling using htmlb

    Hi,
    I am creating a small bsp application where I have Test.htm and error.htm pages. Test.htm page contains a button which when clicked should traverse to the second page which does not occur. Then code I have for the event handling is given below.
    CLASS cl_htmlb_manager DEFINITION LOAD.
    IF event_id = cl_htmlb_manager=>event_id.
      DATA: event TYPE REF TO cl_htmlb_event.
      event = cl_htmlb_manager=>get_event( runtime->server->request ).
      IF event->name = 'button' AND event->event_type = 'click'.
    <b>    DATA: button_event TYPE REF TO cl_htmlb_event_button.
        button_event ?= event.
    </b>
      ENDIF.
        CASE event->id.
          WHEN 'mybutton'.
            navigation->next_page( 'ERROR' ).
          WHEN OTHERS.
        ENDCASE.
    ENDIF.
    Also please explain me the lines of code given in bold fonts.
    Regards
    Noufal

    hi Noufal,
    The difference is that :
    When you are not using HTMLB library but using simple HTML buttons ussing <INPUT TYPE = BUTTON > then
    to capture that event you should use
    onclick = OnInputProcessing(button_id)  ,
    where "button_id" is the value in "event_id" variable in "OnInputProcessing" Event.
    But if you are using HTMLB then no need for this .
    Just use :
    onClick = "button_id"
    where "button_id" is the value you can capture in event_id attribue of an object that belongs to CL_HTMLB_EVENT class.
    For ex :
    data event type ref to CL_HTMLB_EVENT.
    event->event_id = "id of the element that has generated  
                       the event, and in this case button_id".
    I hope this will solve all your issues.
    Regards,
    Ankur

  • Problems in capturing the button event

    Hi
    I have created a BSP page with some buttons on it.
    I am trying to execute some code on click of the button, I am capturing the button in OnInput processing event using the following code
    event_data = cl_htmlb_manager=>get_event( runtime->server->request ).
    however the event_data is not getting populated with the button event and i am getting a null reference dump...
    can you tell me if i need to anything else apart from adding the above code.
    Thanks
    Bharath Mohan B

    Hi Bharrie,
    the online documentation describes this very clearly. You access it by double-clicking on the BSP Extension element in the Tag Browser.
    A brief snippet from the doco....
      DATA: event TYPE REF TO CL_HTMLB_EVENT.
      event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
      IF event->name = 'button' AND event->event_type = 'click'.
          DATA: button_event TYPE REF TO CL_HTMLB_EVENT_BUTTON.
          button_event ?= event.
      ENDIF.
    Cheers
    Graham Robbo

  • How to trap Submit button event in OAF

    Hello,
    I'm doing controller extension for create account button in Customer UI.
    Issue: I'm not able to trap the table action to add extra validation logic.
    I tried to use pageContext.getParameters("CreateButton") but it didn't work i.e. debug message was not printed written inside if statement.
    Button Structure:
    TableAction
    Flowlayout
    Submit button.
    Code:
    public void processFormRequest(OAPageContext pageContext,
                                       OAWebBean webBean) {
            //super.processFormRequest(pageContext, webBean);
            OAApplicationModule am = pageContext.getApplicationModule(webBean);
            ArrayList exceptions = new ArrayList();
            OAFlowLayoutBean oaflowlaybean =
                (OAFlowLayoutBean)webBean.findChildRecursive("TableActionsRN");
            OASubmitButtonBean vbuttonBean =
                (OASubmitButtonBean)oaflowlaybean.findChildRecursive("CreateButton");
            String buttonId = vbuttonBean.getID();
            String buttonId12 = vbuttonBean.getName();
            String asd=vbuttonBean.getEvent();
            String s = pageContext.getParameter(EVENT_PARAM);
            String s1 = pageContext.getParameter(vbuttonBean.getName());
                if (s.equalsIgnoreCase("CreateAccount")) {
                OAViewObject vo =
                    (OAViewObject)am.findViewObject("HzPuiAccountTableVO");
                if (vo != null) {
                    pageContext.writeDiagnostics("Jai-1", "VO Found", 1);
                    OARow row = (OARow)vo.getCurrentRow();
                    if (row != null) {
                        pageContext.writeDiagnostics("Jai-2", "Row Found", 1);
                        String partyid =
                            (String)row.getAttribute("PartyId").toString();
                        pageContext.writeDiagnostics("Jai-3", "PartyId" + partyid,
                                                     1);
                        int PartyNum = Integer.parseInt(partyid);
                        String partyacctcnt = null;
                        try {
                            OracleConnection conn =
                                (OracleConnection)pageContext.getApplicationModule(webBean).getOADBTransaction().getJdbcConnection();
                            pageContext.writeDiagnostics("Jai-4", "Inside Try", 1);
                            String query =
                                "SELECT count(1) lcount  FROM HZ_CUST_ACCOUNTS WHERE party_id=:1";
                            PreparedStatement stmt = conn.prepareStatement(query);
                            stmt.setInt(1, PartyNum);
                            ResultSet resultset = (ResultSet)stmt.executeQuery();
                            if (resultset.next()) {
                                pageContext.writeDiagnostics("Jai-5",
                                                             "Inside Result Next",
                                                             1);
                                partyacctcnt = resultset.getString("lcount");
                            stmt.close();
                        } catch (SQLException sqlexception) {
                            throw OAException.wrapperException(sqlexception);
                        int i = Integer.parseInt(partyacctcnt);
                        /*   String HoldFlag = (String)row.getAttribute("Attribute11");
                        // Check Hold Flag: "Y" then restrict to create new account
                        if (HoldFlag == "Y") {
                            pageContext.writeDiagnostics("Jai", "Inside Hold Flag", 1);
                            exceptions.add(new OAException("XXGCO",
                                                           "XXTCO_CREDIT_LIMIT_CHECK",
                                                           null, OAException.ERROR,
                                                           null));
                        // One Party-One Account: Greater or Equal to 1 then throw error mesaage
                        if (i > 1) {
                            pageContext.writeDiagnostics("Jai-6",
                                                         "Inside Account Check",
                                                         1);
                            exceptions.add(new OAException("XXGCO",
                                                           "XXTCO_CREDIT_LIMIT_CHECK",
                                                           null, OAException.ERROR,
                                                           null));
                        if (exceptions.size() > 0) {
                            pageContext.writeDiagnostics("Jai-7",
                                                         "Inside Exceptioon calling",
                                                         10);
                            OAException.raiseBundledOAException(exceptions);
                        } else {
                            pageContext.writeDiagnostics("Jai-8",
                                                         "Inside else Exceptioon calling",
                                                         10);
                           // super.initParametersPFR(pageContext,webBean);
                            vbuttonBean.setFireActionForSubmit(null, null, null, false);
                            super.processFormRequest(pageContext, webBean);
    Please suggest the how to overcome with above mention issue.

    Hi Kiranmai,
    You can capture the event of the radio button in the following way in oninputprocessing.
    DATA: event             TYPE REF TO if_htmlb_data,
                   radioButton_event TYPE REF TO CL_HTMLB_EVENT_RADIOBUTTON.
             event = cl_htmlb_manager=>get_event( request ).
             IF event IS NOT INITIAL AND event->event_name = htmlb_events=>radiobutton.
               radioButton_event ?= event.
               ENDIF.
    you can get the attributes of clicked radio button in
    event->event_class
    event->event_id.
    event->event_name
    event->event_type
    event->event_server_name
    In layout define the radio button as
    <htmlb:radioButtonGroup   id          = "test_id">
            <htmlb:radioButton      id          = "id_red"   text = "Red"               onClick="myClick" />
            <htmlb:radioButton      id          = "id_blue"  text = "Blue"          onClientClick="alert('blue clicked')"/>
            <htmlb:radioButton      id          = "id_green" text = "Green"      onClick="myClick" onClientClick="alert('green clicked')"/>
          </htmlb:radioButtonGroup>
    Hope this will solve your problem.
    Donot forget to assign points for helpful answers.
    Regards
    Aashish Garg

  • Event handlers question

    Which event handler is called first when navigating from a page? Say I am passing parameters from page 1 to page 2. In page 2, will the onCreate get called first or onRequest get called first?
    In onRequest, I have
    calmoyr = request->get_form_field( 'calmoyr' ).
    In OnCreate, I have
    select * from /bic/aNCN_O01300 into table itab
    where CALMONTH = calmoyr.
    For some reason, the select statement is not taking any value for calmoyr. It is getting the value from the previous page but the select statement is not working.

    page1:
    * event handler for checking and processing user input and
    * for defining navigation
    CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
    * Optional: test that this is an event from HTMLB library.
    IF event_id = CL_HTMLB_MANAGER=>EVENT_ID.
    * See if upload is triggered from button
      DATA: event TYPE REF TO CL_HTMLB_EVENT.
      event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
      IF event->name = 'button' AND event->event_type = 'click'.
        DATA: button_event TYPE REF TO CL_HTMLB_EVENT_BUTTON.
        button_event ?= event.
      ENDIF.
      CASE event->id.
        WHEN 'Submit'.
          DATA: cmy TYPE REF TO CL_HTMLB_INPUTFIELD.
          DATA: fid TYPE REF TO CL_HTMLB_INPUTFIELD.
          cmy ?= CL_HTMLB_MANAGER=>GET_DATA(
                              request = runtime->server->request
                              name    = 'inputField'
                              id      = 'calmonthyear'
          IF cmy IS NOT INITIAL.
            calmoyr = cmy->value.
          ENDIF.
          fid ?= CL_HTMLB_MANAGER=>GET_DATA(
                              request = runtime->server->request
                              name    = 'inputField'
                              id      = 'FACID'
          IF fid IS NOT INITIAL.
            facid = fid->value.
          ENDIF.
          navigation->set_parameter( 'calmoyr' ).
          navigation->set_parameter( 'facid' ).
          navigation->next_page( 'ToTest' ).
      ENDCASE.
    ENDIF.
    layout of page1:
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <htmlb:content design="design2003">
      <htmlb:page title = " ">
        <htmlb:form>
    <htmlb:group id     = "ZBOOKMARK"
                     design = "SAPCOLOR"
                     title  = "Selection Criteria for Bookmark Search"
                     width  = "100%" >
               <htmlb:groupBody>
    <htmlb:gridLayout id = "FiletypeGrid"
                                      cellSpacing    = "3"
                                      columnSize     = "4"
                                      rowSize        = "5" >
                            <htmlb:gridLayoutCell   rowIndex = "1"
                                                    columnIndex = "1"
                                                    horizontalAlignment = "right" >
                                 <htmlb:textView text = "Please choose Calendar Year/Month: "
                                         design = "EMPHASIZED"/>
                           </htmlb:gridLayoutCell>
                           <htmlb:gridLayoutCell   rowIndex = "1"
                                                    columnIndex = "2"
                                                    horizontalAlignment = "right" >
                                 <htmlb:dropdownListBox id ="calmonthyear"
                   nameOfKeyColumn   = "calmonth"
              nameOfValueColumn = "calmonth"
              table             = "<%=itab%>" >
    </htmlb:dropdownListBox>
                      </htmlb:gridLayoutCell>
    <htmlb:gridLayoutCell   rowIndex = "2"
                                                    columnIndex = "1"
                                                    horizontalAlignment = "right" >
                                 <htmlb:textView text = "Choose FACID (Optional): "
                                         design = "EMPHASIZED"/>
                           </htmlb:gridLayoutCell>
                           <htmlb:gridLayoutCell   rowIndex = "2"
                                                    columnIndex = "2"
                                                    horizontalAlignment = "right" >
                                 <htmlb:inputField id ="FACID"
                                                 maxlength = "10"
                                                 />
                           </htmlb:gridLayoutCell>
    <htmlb:gridLayoutCell   rowIndex = "3"
                                                    columnIndex = "1"
                                                    horizontalAlignment = "left" >
                                 <htmlb:button id = "Submit"
                                             text = "Submit"
                                             onClick = "Submit"
                                             design = "EMPHASIZED"
                                             width = "75" />
                           </htmlb:gridLayoutCell>
    </htmlb:gridLayout>
    </htmlb:groupBody>
    </htmlb:group>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>

  • 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 get selectall/deselectall event

    Dear  Experts,
    How to get event, tableview selectall/dselect all event..
    i need to write some logic when we choose selectall on tableview control.
    so how can i find selectall event
    your cooperation will be highly appreciated.
    sincerely

    Hi Ganesh,
    This is indeed simple....
    Provide two buttons on screen for the same.....and then put the following code in onInputProcessing....
      DATA: event       TYPE REF TO   IF_HTMLB_DATA.
      event = cl_htmlb_manager=>get_event( request ).
      IF event IS NOT INITIAL .
        IF event->EVENT_NAME = 'button' and event->EVENT_TYPE = 'click'.
          but_event ?= event.
          CASE event->EVENT_ID.
            when 'SelectAll'.
              cl_htmlb_manager=>check_tableview_all_rows( rowcount = 10
                            request = request
                            id = 'Table_view_Id'
                            check = 'X' ).
            when 'DeSelectAll'.
              cl_htmlb_manager=>check_tableview_all_rows( rowcount = 10
                              request = request
                              id = 'TV1'
                              check = '' ).
    Also there is a small advise....before posting the question, please take some effort to search through the forum, as many issues have already been resolved...
    Hope this helps.
    <b><i>Do reward each useful answer..!</i></b>
    Thanks,
    Tatvagna.

  • JVMTI GarbageCollectionFinish event - not as useful as JVMPI's?

    With JVMPI we were able to get heap info on a GC-finish event through a union 'u' member of JVMPI_Event as follows:
    static void process_event(JVMPI_Event *event)
    switch(event->event_type) {
    case JVMPI_EVENT_GC_FINISH:
    mymethod(event->env_id,
                   event->u.gc_info.used_objects,
                   event->u.gc_info.used_object_space,
                   event->u.gc_info.total_object_space);
    We knew what the used object space looked like right after GC was performed and we could provide accurate heap graphs that would indicate memory leaks.
    With JVMTI, I am not sure if this is still possible with GarbageCollectionFinish(jvmtiEnv *jvmti_env). Is this info still available? If not, it's a major loss.
    tia

    Yes.  I didn't take kindly to the change.  There are posts here on how to make the old Brick available (Léonie has made it easy for you) -- I have assigned it to a keyboard shortcut.
    That said, the new Brick is more useful than I first thought.  Like you, I was used to the _scale_ of the sliders in the old Brick, and shocked to find that what I had internalized as "enough" had become "not visible".
    You have to train your mouse-hand with the new Brick's sliders as a totally new Brick, not as a modified version of the old Brick.  Now that I am comfortable with the scale (and the variation within the scale, as you point out), the new Brick is nowhere near as useless (and offensive for this) as I first judged it to be.
    I still would like to have ready access to the old "Width" sliders, however.
    Do us a favor and leave the orchard keepers a note asking for an improved or merged H & S Brick:  "Aperture➞Provide Aperture Feedback".
    OT: "Amateur" only recently became a term of denigration.  The change seems to be part of the corporatization of public life.  I am an amateur, as proud of that as of my professional accomplishments.
    Message was edited by: Kirby Krieger -- links and OT commentary added.

Maybe you are looking for