BSP Checkbox Application.

Dear All,
I am facing an issue.
I had developed an application using BSP - HTML with ABAP.In this application, i have two pages.I am calling 2nd page from 1st page based on some input on first page.Based on input on first page,second page is displaying values in one table. Second page also has one button called OK.The table is having three columns.First column is checkbox and the other two are material number,base unit of measure.
Now the question is suppose table has 10 entries and i want to select entry number 3 then i tick mark the checkbox corresponding to entry number 3.But i am not able to get material number and unit based on checkbox selection. How can i read the checkbox value in OnInputProcessing event in BSP.

hi:
do like this
Layout ->
      <htmlb:tableView id              = "Programmer_Data"
                       table           = "<%= t_progmr %>"
                       visibleRowCount = "5"
                       selectionMode   = "SINGLESELECT"
                       onRowSelection  = "rowSelection" >  "check box "
        <htmlb:tableViewColumn columnName = "EMNO"
                               title      = "Employee Number" />
        <htmlb:tableViewColumn columnName = "DOB"
                               title      = "Date of Birth" />
        <htmlb:tableViewColumn columnName = "DOJ"
                               title      = "Date of Joining" />
        <htmlb:tableViewColumn columnName = "SALARY"
                               title      = "Salary" />
      </htmlb:tableView>
In OnInputprocessing
      DATA:
        event  TYPE REF TO if_htmlb_data,
        selrow TYPE REF TO cl_htmlb_tableview.
      event = cl_htmlb_manager=>get_event_ex( request ).
      selrow ?= cl_htmlb_manager=>get_data( request = request
                                            name    = 'tableView'
                                            id      = 'Programmer_Data).
      DATA: tv_data TYPE REF TO cl_htmlb_event_tableview.
      tv_data = selrow->data.
      w_index = tv_data->selectedrowindex.  " It would select the clicked rows
w_eventid contains the id of button, table-view, etc.
w_index contains selected-row-index value.
To catch the event, we make use of Class cl_htmlb_manager and method get_event.
Regards
Shashi

Similar Messages

  • BSP Web Application anonymous and no-anonymous for Solution Manager 4.0

    Hi all,
    I’ve created BSP Web Application to access Earlywatch, alerts, monitoring from Solution Manager 4.0:
    1.- http://emvpml501.endesa.es:8000/sap/bc/bsp/sap/dswp_bsp?sap-client=420&ISBSP=X&CMD=SLDSP&SLID=000000380242000&ASID=0000000265&SUBASID=0000000265&ISIV=X
    2.- http://emvpml501.endesa.es:8000/sap/bc/bsp/sap/dswp_bsp?sap-client=420&ISBSP=X&CMD=SLDSP&SLID=000000380242000&ASID=0000000267&SUBASID=0000000267&ISIV=X
    3.- http://emvpml501.endesa.es:8000/sap/bc/bsp/sap/dswp_bsp?sap-client=420&ISBSP=X&CMD=SLDSP&SLID=000000380242000&ASID=0000000266&SUBASID=0000000266&ISIV=X&sap-user=ES02532022k&sap-password=endesa
    URL (1, 2) needs authentication, appears a pop-up to type usr/pwd
    URL (3) is anonymous, I’ve added usr/pwd in order to pass logon and It works ok.
    My problem is that when I first access to anonymous URL(3), and after, I return to html file, to access other URLs(1 or 2), these URLs don’t appear logon pop-up to authenticate.
    Does anyone know about this ?
    Regards,
    Raul

    Hi Raul,
    The problem is : when you access link 3 , you are authenticated with user : ES02532022k and password=endesa, an one time authenticated ,the  system not inquiry logon pop-up anymore.
    My suggestion is NOT access link with login and pass...
    I hope this help you..
    Claudenir Bispo

  • Logoff BSP closing application and closing SAP session.

    When I'm closing my  BSP appication by closing browser ,SAP session are not ending.I need to implement logoff functionality into my BSP application.
    Please send me some sample code for logoff from BSP.

    Use this..it worked for me.
      Restart of BSP test application IT00 use sap-sessioncmd=open:
    Example:
    http://myServer.sap.corp:1080/sap/bc/bsp/sap/it00?sap-sessioncmd=open
    Ending the application externally:
    Example:
    http://myServer.sap.corp:1080/sap/bc/bsp/sap/it00?sap-sessioncmd=close&sap-exiturl=http%3a%2f%2fwww.sap.com

  • How to clear the variables before closing a BSP MVC application

    I am calling a custom stateful BSP MVC application to display additional PO information as a popup window inside SAP BSP. When I close this popup window and open it later on a different PO, it still displays the old PO information. I am clearing the variables in the DO_HANDLE_EVENT. 
    I am using the javascript
    <htmlb:button id      = "Close"
                        text    = "Close window"
                        onClientClick="javascript:window.close()"  />
    to close the window.
    Could someone tell me what do I need to do before closing so that I can clear all the variables.

    Hi Krishana,
    Other neater way could be..
    instead of calling java script.. raise a server event.. in DO_HANDLE_EVENT set a flag <b>lv_close_window</b> to 'X'.
    on the page call the script to close the window if flag <b>lv_close_window</b> is set to 'X'.
    just before setting rhe flag to 'X' you can clear all unnecessary data.
    rememebr: javascript wont take you to DO_HANDLE_EVENT.
    <htmlb:button id = "Close"
    text = "Close window"
    onClick="close_window" />
    i would to this way if i am willing to go to DO_HANDLE_EVENT.
    A.

  • SAP-BSP Checkbox Method Retrive the Data Value

    Hi,
    Please Help Me which Class Method use to retrieve  the Check box Value From Page and Store in the Variable in bsp application
    Thanks Regards,
    Mithun
    Moderator message: please do more research before asking,e.g. check in the separate BSP forum.
    Edited by: Thomas Zloch on Apr 8, 2011 2:46 PM

    Hi Surya ,
    U can get the UME API  <a href="https://help.sap.com/javadocs/NW04S/current/se/index.html">here</a>
    <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/ep/_s-u/Using%20The%20New%20User%20Management%20API%20in%20EP%206.0">USING THE NEW USER MANAGEMENT API</a>
    Check UserMangement Development
    <a href="http://media.sdn.sap.com/html/submitted_docs/ume/ume40_0_index.htm">weblog</a>
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/b8/8312409ab58f5ce10000000a155106/frameset.htm">Examples of Data Source</a>
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/42/60af25032c1422e10000000a114cbd/frameset.htm">Starting KM development project using ume</a>
    Thanks
    Swathi
    Reward pts if helped in anyway

  • Change colours of BSP standalone application

    Hi all,
    I want to run e-recruiting (bsp or webdynpro) as standalone application and need to change the colours of the GUI elements. The header picture should also be changed.
    Where can I do the changes? Do I do it in the portal theme editor even if I don't use portal to display the web application??
    Thanks in advance
    Karsten

    Hi Karsten,
    you do not need portal to create or change themes and to use it for your application.
    There is a good documentation which explains it:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ccb6bcf4-0401-0010-e3bc-ec0ef03e13d1
    Regards,
    Frank

  • SRMSUS: Need a BSP MVC application example to upload file on to the server

    I need to modify view item_edit.inc in the BSP application SRMSUS to add a fileupload option. Also I need to change the filename before uploading on to a specific location on the server. Does anyone have an example that I can look at. Your help is greatly appreciated.
    Thanks
    Krishna
    [email protected]

    did it myself.

  • BSP  checkbox element (wrapping property) ???????

    Hi all,
    I want to use something like the wrapping property within the checkbox.
    Problem:
    The Checkbox has no wrapping property. Do you know something like wrapping for Checkboxes, because my text after the box is too long.
    Thanks && Kind Regards
    Kathrin
    Message was edited by: Kathrin Gossmann

    Hi Kathrin,
    I think you should post in the dedicated BSP Forum instead of the General ABAP.
    Maybe the solution to your problem is just to juxtapose 2 differents elements (using a matrix Layout or something similar)
    Best regards,
    Guillaume

  • Deploy BSP-GWT application

    I have created a BSP application and use Google Web Toolkit to create rich user interface. I have tested UI on local Apache Tomcat WS. Now I want to deploy all files (HTML,JS,CSS,....) to SAP Web Server, where I hosted BSP pages. How can I do it easy? Is it possible to deploy by one package?

    Use the WebDAV interface. All covered in the SAP documentation.
    Cheers
    Graham Robbo

  • How to figure out a BSP page application in Sicf

    Hello Experts,
    We are facing some issue in a BSP application,
    We are trying to implement SRM in our proj. The main page called as registration page ,
    for which we need to do some changed...
    but who can i find which funtion module or which application that BSP page is running on,
    I.e.
    what i acctually need to do is that,
    After the supplier fill the form it is getting saved i need to know what event  is getting triggered in backend for saving that data..
    can u help me on this...where do i find it.
    please give the steps
    Thanks IN advance!!!

    Hello,
    BSP name as service name in SICF...
    To know how it is handling event - it depends on which type of application is..
    1. If it is following MVC model, please look in DO_HANDLE_EVENT for detailed logic
    2. If it is not MVC and having ;Page with flow logic' concept - then look in event handler tab...
    Thanks

  • BSP Checkbox

    Hi Experts,
    Currently I have requirement where I need to set page attribute based on whether the checkbox is checked or not. I am using htmlb tags for most of the page development. But for this problem I am trying to use  html tag and event.
    Now when the user tick the checkbox, at bottom of explorer I get message 'Error on page'.
    Any idea how we can fix it?
    I am not able to add the code in this message, it seems there is some problem.
    Thanks and Regards,

    Hi Kathrin,
    I think you should post in the dedicated BSP Forum instead of the General ABAP.
    Maybe the solution to your problem is just to juxtapose 2 differents elements (using a matrix Layout or something similar)
    Best regards,
    Guillaume

  • HAP_Document BSP Application "Enter Objective Here "

    HI All BSP Expert and PMS Expert.
    BSP Standard application "HAP_DOCUMENT" Copy as a Z application. In Standard application "Enter Objective Here" Coming As Label but In Z Application i had changed as Input Field , That Input Field Values it  Does not save to R/3 System.
    So , Please it is urgent , Suggest me How to save that value to R/3 System.
    IF you have any document Related To this Query Please Mail  Me.
    id : pappu21198mehta @ gmail.com
    Thanks & Regard.
    Pappu Mehta.

    No need to email you the document related to this query. You can find it right [here|http://wiki.sdn.sap.com/wiki/display/HOME/Rules%20of%20Engagement?bc=true].
    Cheers
    Graham Robbo

  • Customizing the ICH (UIBSP)BSP application

    Hi All,
    I am reposting my query here again.I have seen some postings related to this by PradeepReddy/Raja.
    Could somebody help me on this.....
    We have implemented the ICH and integrated it into the Portal.In this regard I want to link a BW report to every PO header. Has SAP provided the flexibility of customizing this BSP(UIBSP)application and is there any cookbook provided for this?.
    Any help is greatly appericiated.
    Thanks,
    Vasu.

    Any luck with customisation of BSP's. We are looking to customise the E-recrutment pages in HR/Payroll.
    If you have managed to do this please point me in the right direction especially where view calls are made.
    I am looking for an equivalent of a "where used list" so that i can change make necessary changes. All our changes to the views are currently not coming through even though the customised applicationis being called.
    Regards,
    Anderson

  • Session Management in BSP applications

    Hello,
    I habe been developing the following application to send E-Mails from Outlook to SAP WEB AS Abap Stack:
    - I have created a COM-Addin in MS Outlook
    - When the user clicks on a button, that I have created, the currently marked E-Mail-Message is read
    - The E-Mail-Information is analysed
    - MS Internet Explorer is dynamically opened by my Outlook application
    - A html form is dynamically created
    - html form is posted dynamically to a BSP-application
    -> Basically what I have is a HTML form, that is posted to a BSP application
    I am facing the problem that Web AS is mixing up different sessions:
    - I have no user specified for my BSP application, that means whenever a client visits my page a login popup should appear
    - I have defined the first page of my web application as stateless
    So what I expected was, that whenever my html form is posted to the Web AS, I get a logon popup, and everytime my web page is called a new session is started
    Actually MS Internet Explorer and my BSP Web Application are acting differently:
    When I post the html form for the first time, the logon popup appears and everything works fine
    When I post the html form for the second time WITHOUT CLOSING THE FORMER INTERNET EXPLORER INSTANCE, the LOGON POPUP DOES NOT APPEAR, and the BSP application is using old, wrong data from the former html form
    When I CLOSE ALL INTERNET EXPLORER INSTANCES, THE LOGON POPUP APPEARS, and I get the correct information for my BSP application
    ->
    Whenever I have already sent a html form to the application and do not close all internet explorer instances, my BSP application mixes up old data
    Whenever I have already sent a html form to the application and CLOSE all internet explorer instances, my BSP application is working fine.
    I have the following settings for my BSP application in transaction SICF:
    - Logon Procedure: Stanadard
    - Anonymous Logon Data:
         Client: 301
         User: [blank]
         Password: [blank]
    Does anybody have an idea how to get my application to work correctly?
    - I cannot change internet explorer settings as I have many clients and no authorization for that
    - I can change (maybe meta data?) the html form
    - Are there any settings of the BSP application that I can change, so that my application works fine
    Thanks for your help in advance!
    Andreas

    Hello Sebastian,
    Thanks for your answer!!!
    Unfortunately I cannot close the brower window via javascript, as my BSP application is not simply one page reveiving the form and sending one response page, but the BSP application consists of more pages (providing search functionalities,...).
    I have tried the following:
    - I have opened a new Internet Explorer application "IE-application1"
    - I have started my MS Outlook application which (dynamically) opened a new Internet Explorer "window2".
    - The Mail was saved to SAP
    - I closed the "window2"
    - I sent another mail to SAP via "window3"
    -> SAP was still remembering the session of "window2" and mixed up the session (session info obviously was hold in "IE-application1")
    I did not fully understand your answer refering to BSP Application "system" and its page "session_single_frame.htm" together with the source code of "session_single_frame.htm".
    What I need is, to tell my startpage "index.htm" the following: Forget every cookie and session and whatever else you have had until now, take the input values of the html form and process them. Is this possible with "session_single_frame.htm"?
    Andreas

  • Enhancinig a standard BSP application/page (/SCF/UIBSP)

    Hi Experts,
    We have a requirement to enhance stanard BSP page (application /SCF/UIBSP, ICH, SCM system). I understand that we can't enhance stanard BSP pages like we do in R/3 or ABAP. Please confirm.
    Incase I need to copy the entire application to a Z/Y program, I would like to know if I have to take any precautions. I am little concerned, as this is the main ICH page delivered by SAP.
    Thank you for your time.
    Regards,
    Sudhakar Karumuri.

    Hi Pavitra,
    Thank you for your inputs.
    Yes the appliation we are about to enhance used MVC design pattern. So I hope I can use the program u suggested.
    Below is our requirement.
    We have a Standard BSP application, /SCF/UIBSP called from program /SCA/ICH_START. This BSP application has a Tree View. We have to add one more node in that tree and when clicked on it we need to display a page with some static text and a button. And when User clicks on that button we need to call an RFC from our R/3 system and get data from it and download the same data into a local system(of user).
    If you can share your email ID I would like to forward some screen shots.
    Thank you for your help.
    Regards,
    Sudhakar Karumuri.

Maybe you are looking for

  • How to get my passcode on iPad?

    Hi, I downloaded iOS 7 and it asked me to enter a passcode for syncing using icloud. I created one and now can't recall the passcode - so can't access my iPad! How can I get my passcode? Is there a facillity on itunes that allows users to recover for

  • Connect a pc to my network?

    I have an imac G5 connected to the internet with an airport extreme and my new roommate has the misfortune to own a pc laptop running windows XP that she'd like to connect to my network. Basically I have been surfing for ages and looking in all the b

  • How to separate/Decentralize a SLD in SAP PI 7.3?

    Hi Experts; I have one central SLD for PID and PIQ, because during installation of PIQ was connected to SLD of the PID. My requirement is one SLD for PID and other for PIQ. I review the following link an notes: Planning Guide SLD 3.1 : http://www.sdn

  • [JS][CS3] Break Link to Style

    Hello everyone. A while back ago I wrote a script to Brake Links to Paragraph Styles and Character Styles. That was easy since you can set to false the option "Clearing Overrides" when applying "No Paragraph Style" [0] or "None" [0]. But I cannot do

  • Help with APP_USER in SQL query

    Hi, I would like to extract a user details in one Item of DML form based on the Logged user and standard authentication schema. I have this query in the Item: select ANALYST_FIRST_NAME ||' '|| ANALYST_LAST_NAME d, ANALYST_ID r from QTMT_ANALYST where