Getting hold onto the row selected of a table

Hi Gurus,
To get to the selected row in the table.I tried the code below.
The ViewObject: AssignedRespVO contains a Transient ViewObject i.e Select which is of Type String and has Default value : Y
This code is running fine in some other PG but not in this PG...
Can anybody tell me What is wrong with this code????? its urgent...
public void handleSelectAssignedRespVO(String reqid)
System.out.println("In handleSelectAssignedRespVO");
OAViewObject vo = (OAViewObject)getAssignedRespVO1();
if((vo != null) && (vo.getFetchedRowCount()>0))
Row[] selectRows = vo.getFilteredRows("Select","Y") ;
System.out.println(" Value of length: "+selectRows.length);// Always getting 0 (zero) here
for(int i=0; i<selectRows.length; i++)
AssignedRespVORowImpl selectedRows = (AssignedRespVORowImpl) selectRows;
String respid = selectedRows.getAttribute("ResponsibilityId")+"";
String respname = selectedRows.getAttribute("ResponsibilityName")+"";
String strtate = selectedRows.getAttribute("StartDate")+"";
String endate = selectedRows.getAttribute("EndDate")+"";
System.out.println("value/AssignedRespVO/respid: "+respid);
System.out.println("value/AssignedRespVO/respname: "+respname);
System.out.println("value/AssignedRespVO/strtate: "+strtate);
System.out.println("value/AssignedRespVO/endate: "+endate);
System.out.println("to calling procedure");
String message, result = null;
Connection txn = getOADBTransaction().getJdbcConnection();
String linestatus ="A";
try
catch(Exception e)
Thanks,
Sombit

Hi Reetesh,
As always thanks for the quick response.
Yes...I do have the same AM for these two PGs but the calling COs are different.
and in the same AM they are two different methods with near about same logic.
Thanks,
Sombit

Similar Messages

  • What happens when the row selection of a table is set as 'none'?

    I have a page, with a Search box, Departments and Employees tables. The user will enter a departmentId and click on Search button. Departments will be displayed. The departmentId column in Departments table is surrounded with a link. So when the user will click on the link, the desired employees will be displayed in the Employees table, if there is a view link between the VOs.
    Now suppose I have removed the view link. And the row selection of the Departments table is set as 'none'. So is it possible to get the desired employees of the chosen departmentId in this scenario, as because row selection has been disabled in the Departments table?
    I also dont want to use the Set Property Listener in this use case.

    Hi,
    If you have disabled rowselection and also are not implementing the selection listener? How will you find which row did the user select?
    Ramandeep

  • Need to get the row selected in table control without ay action

    Dear Team,
    I have a requirement in which I need to pass the row selected of a table control to a variable.
    Here I need to get the row selected with out any other action
    then the action of selection of a row.
    Is it possible to read table control values using FM DYNP_VALUES_READ.
    thanks in advance,
    regards,
    Sai

    HI,
    Sai Kumar Potluri
    I tried in IDES it working.
    Here is the code.
    REPORT  ZPRA_TC_D.
    TABLES : SCARR.
    CONTROLS TC TYPE TABLEVIEW USING SCREEN 1.
    DATA : SELLINE TYPE I,
           SELINDEX TYPE I.
    DATA : ACT LIKE SCARR-CARRID,
           ANT LIKE SCARR-CARRNAME.
    DATA : ITAB LIKE SCARR OCCURS 0 WITH HEADER LINE.
    CALL SCREEN 1.
    *&      Module  STATUS_0001  OUTPUT
    *       text
    MODULE STATUS_0001 OUTPUT.
      SET PF-STATUS 'ME'.
    *  SET TITLEBAR 'xxx'.
    SELECT * FROM SCARR INTO TABLE ITAB.
    ENDMODULE.                 " STATUS_0001  OUTPUT
    *&      Module  MOV  OUTPUT
    *       text
    MODULE MOV OUTPUT.
      MOVE-CORRESPONDING ITAB TO SCARR.
    ENDMODULE.                 " MOV  OUTPUT
    *&      Module  USER_COMMAND_0001  INPUT
    *       text
    MODULE USER_COMMAND_0001 INPUT.
    CASE SY-UCOMM.
    WHEN 'BACK' OR 'UP' OR 'EXIT'.
      LEAVE PROGRAM.
    WHEN 'SEL'.
      GET CURSOR FIELD SCARR-CARRID LINE SELLINE.
      SELINDEX = TC-TOP_LINE + SELLINE - 1.
      READ TABLE ITAB INDEX SELINDEX.
      ACT = ITAB-CARRID.
      ANT = ITAB-CARRNAME.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0001  INPUT
    In Flow Logic.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0001.
    LOOP AT ITAB WITH CONTROL TC.
      MODULE MOV.
    ENDLOOP.
    PROCESS AFTER INPUT.
    LOOP AT ITAB.
    ENDLOOP.
    MODULE USER_COMMAND_0001.

  • To determine the number of rows selected in a table view (BSP)

    Hi,
    My requirement is:
    I would be selecting 1 row from a table view ( which is made multiselect for another requirement) , and press a button.
    The functionality of button is to open a popup window based on the row selected.
    I want to display an error message if more than 1 row is selected, and button is clicked.
    Message will say that "you cannot select more than 1 row".
    For this,  I need to know how I can get the number of selected rows in a table view.
    I tried using the below code.
    But I feel this will work only in DO_HANDLE_DATA method.
    The popup would open, even before control comes in this method.
      CALL METHOD cl_hrrcf_iterator=>get_tv_index
        EXPORTING
          p_id               = p_tableview_id
          pt_form_fields = table_form_fields
        IMPORTING
          pt_indices      = sel_row_index_tab.
    Could you please provide me with a solution.
    Quick replies will be highly appreciated.
    Thanks,
    Nisha Vengal.

    Hi ,
    Your TV :
    <htmlb:tableView id              = "tv1l"
                                   design          = "alternating"
                                   visibleRowCount = "10"
                                   fillUpEmptyRows = "true"
                               onRowSelection  = "MyEventRowSelection" <----This is the event you have to use
                                   selectionMode   = "MULTILINEEDIT"
                                  filter          = "SERVER"
                                   table           = "<%= some table %>" >
    in DO_REQUEST:
    DATA:  tv                  TYPE REF TO cl_htmlb_tableview,
           tv_event          TYPE REF TO cl_htmlb_event_tableview ,
           event             TYPE REF TO if_htmlb_data.
    event = cl_htmlb_manager=>get_event( request ).
    IF event IS NOT INITIAL AND event->event_name = htmlb_events=>tableview.
      tv_event ?= event.
      CASE event->event_server_name.
        WHEN 'MyEventRowSelection'.
    count = count + 1 .
    if count ne 1 .
    errmsg = 'Your message'.
    endif.
    ENDCASE.
    ENDIF.
    in View/Layout:
    <% if errmsg is not initial. %>
    <s cript t y p e   =   t e x t / j a v a s c r i p t >
    a l e r t ("<%= errmsg %>") .
    </ s c r i p t>
    <% clear errmsg. %>
    <% endif. %>
    errmsg is a class attribute of type string and count is also a class attribute of type c .
    Regards,
    Anubhav.
    Reward if useful
    Edited by: Anubhav Jain on Sep 19, 2008 3:08 PM

  • Can I get hold of the setup file for an earlier version of Desktop Manager

    Hello,
    I've been using my Blackberry Bold 9700 trouble free for well over 18 months now.  The other day I was prompted to upgrade the OS to level 6, which I did with no problem.  I then noticed that there was also an upgrade for the Desktop Manager software.  I also upgraded this (to version 6).  I'm now really wishing I hadn't....
    Ever since the upgrade I get the BSOD upon initially connecting my BB.  I uninstalled the desktop manager and did a complete reinstall.  This, if anything made matters worse as I then found that any USB device would cause the BSOD once I plugged it in.
    The only way I've been  able to solve this is by totally uninstalling the Desktop Manager and then also going and uninstalling and then reinstalling all the USB controllers from the Windows device manager.
    All I really need the desktop manager for is to tether my BB to get internet acces when I'm off site, and I'd really like to go back to the earlier version but cannot find anywhere to download the setup file.
    I'm running XP Pro by the way.  It's obviously an incompatibility with something on specifically on my laptop which is causing the problem.  I tried installing Desktop Manager 6 onto another laptop running XP Pro and it seems to be fine on there.  I've not really got the time to mess around with this much more though so would prefer just to downgrade back to the previous version on this laptop if someone could point me in the right direction to get hold of the setup file.
    Many thanks.

    Skeets181 wrote:
    I also want to revert back to previous OS. Can you give me the site addy where you downloaded. Thanks
    Skeets
    Device OS, or the Desktop Software.
    Please be specific about what you need.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Capture the rows selected ,tableView

    Hi Friends,
    I have a requirement and i was searching in the forum and i have seen the same question been asked 
    Capture the rows selected in a multiselect table view (BSP)   but i couldn't able to judge how the thread is closed
    We have a tableView that is filled on selecting a value from a dropDownListBox.
    and now i select some rows from the table view and click on a button(say btn_ok)
    now the data is processed .
    now what is my requirement is when   i again run the page and select the same drop down value i want to see the rows to be already selected for which i have done before
    example
    dropdown -
    > a is selected
    table view
    1----> selected
    2
    3---->selected
    4
    5---->selected
    6
    btn ok
    next time i want to c these selected rows already as SELECTED
    Regards
    Bhavana

    Hi,
    Are you able to fetch single row? If yes then debug and try to solve it. I don't have SAP System right now but this will help you. First change your table selection mode "Multiple". After that write following code in your "OnInputProcessing"
    Sending Selected Field to the calling Screen
    DATA : tv      TYPE REF TO cl_htmlb_tableview,
           tv_data TYPE REF TO cl_htmlb_event_tableview,
           event   TYPE REF TO cl_htmlb_event.
    tv ?= cl_htmlb_manager=>get_data(
            request = runtime->server->request
            name    = 'tableView'
            id      = 'tv_field' ).
         RECEIVING
           data    = tv.
    tv_data = tv->data.
    w_field = tv_data->row_key.
    Where w_field is your field name. By the way this I used to get one row. Try debugging and may be you will find your way.
    Thanks,
    Muhammad Usman

  • How do i get videos onto the new ipod?

    haven't been able to figure out how to get videos onto the ipod. tried to click and drag a home video into the video section but that didn't work. any help would be greatly appreciated.
    also, where do i go to get an episode to download onto the ipod?

    Hi Sebastian,
    Use iTunes to put videos onto your iPod. Make sure you have the newest version (by pressing Help, then selecting check for iTunes updates).
    Once you are sure you have the newest version of iTunes, just press File -> add file to library, or drag your video file onto the iTunes library. Then all you need to do is update your iPod.
    - Greg.

  • How to dynamically display the data from a table base on row selection of another table in ADF

    Hi ,
    I have a requirement in ADF. I need to change the data of a table  based on row selection of another Table . Both the table have a Parent Child relationship between them. They have a common attribute say department_id.
                                                                                         For this I created bind variable in view object of employees table and wrote a where clause in the sql query using that bind variable. Then I created method for selection listener of department Table in java bean.
    My method is following
        public void onrowselection(SelectionEvent selectionEvent) {
            RichTable richTable = (RichTable)selectionEvent.getSource();
                            CollectionModel tableModel = (CollectionModel)richTable.getValue();
                            JUCtrlHierBinding adfTableBinding = (JUCtrlHierBinding)tableModel.getWrappedData();
                            Object selectedRowData = richTable.getSelectedRowData();
                            JUCtrlHierNodeBinding nodeBinding = (JUCtrlHierNodeBinding)selectedRowData;
                    oracle.jbo.domain.Number newVal = (oracle.jbo.domain.Number) nodeBinding.getAttribute("DepartmentId");
                    Number pallet = newVal.bigDecimalValue();
                    System.out.println("Selected values " + pallet);
            BindingContext bindingctx = BindingContext.getCurrent();
                          BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
                          DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
                  DCIteratorBinding dciter = bindingsImpl.findIteratorBinding("EmployeesView1Iterator");//access the iterator by its ID value in the PageDef file
                          ViewObject vo =dciter.getViewObject();
                          vo.setNamedWhereClauseParam("DepartmentId", pallet);//enter your value
                          vo.executeQuery();
    It is printing the selected value of department id from department table in the log. But it is not able to pass the value to employees view. It is showing the following error in the log
    "Definition DepartmentId of type Variable is not found in EmployeesView1."
    I will be very thankful if someone helps me to solve this errror or is there any other way to achieve the same requirement.
    Thanks
    Nilesh

    Note quite sure why you simply wont create a viewlink for the viewobject the tables are based on..
    The viewlink attribute will be based on the departmentId and it's a simple master detail relationship which automatically uses ppr.
    However, if both tables are on the same page; using your hack about;
    On the underlying viewobject, define a viewcriteria e.g. "listById" and set your bind variable here.
    I would bind table two to a RichTable component:
    RichTable t2;
    public void onrowselection(SelectionEvent selectionEvent) {
            RichTable richTable = (RichTable)selectionEvent.getSource();
                            CollectionModel tableModel = (CollectionModel)richTable.getValue();
                            JUCtrlHierBinding adfTableBinding = (JUCtrlHierBinding)tableModel.getWrappedData();
                            Object selectedRowData = richTable.getSelectedRowData();
                            JUCtrlHierNodeBinding nodeBinding = (JUCtrlHierNodeBinding)selectedRowData;
                    oracle.jbo.domain.Number newVal = (oracle.jbo.domain.Number) nodeBinding.getAttribute("DepartmentId");
                    Number pallet = newVal.bigDecimalValue();
                    System.out.println("Selected values " + pallet);
                   refreshTable2(pallet);
            BindingContext bindingctx = BindingContext.getCurrent();
                          BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
                          DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
                  DCIteratorBinding dciter = bindingsImpl.findIteratorBinding("EmployeesView1Iterator");//access the iterator by its ID value in the PageDef file
                          ViewObject vo =dciter.getViewObject();
                          vo.setNamedWhereClauseParam("DepartmentId", pallet);//enter your value
                          vo.executeQuery();
    private void refreshTable2(Number pallet){
    RichTable x=getT2();
    CollectionModel cm=(CollectionModel)x.getValue();
    JUCtrlHierBinding jcb=(JUCtrlHierBinding)cm.getWrappedData();
    BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
    DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
    DCIteratorBinding dciter = bindingsImpl.findIteratorBinding(jcb.getName()+"Iterator");
    ViewObject vo =dciter.getViewObject();
    ViewCriteriaManager vcm=vo.getViewCriteriaManager();
    ViewCriteria vc=vcm.getViewCriteria("listById");
    vo.applyViewCriteria(vc);
    vo.setNamedWhereClauseParam("DepartmentId",pallet);
    vo.executeQuery();
    AdfFacesContext.getCurrentInstance().addPartialTarget(getT2());

  • HOW to emphasize the row selected in a different colour

    Hi all,
    there is any way to set the selected row in a table in a different background-colour?
    i want to emphasize the row selected by user, i try this:
    <af:column headerText="#{res['abogados.nombre']}"
    sortProperty="Nombre" sortable="true"
    binding="#{backing_app_Abogados.column14}"
    id="column14">
    <af:outputText value="#{row.Nombre}"
    binding="#{backing_app_Abogados.outputText14}"
    id="outputText14"
    inlineStyle="background-color:#{bindings.AbogadosView1.currentRow.codigo == row.Codigo ? 'red' : 'transparent'};"/>
    </af:column>
    but this sets the outputText's background to red, i want to set in red all the row..
    any idea?

    Does Rado's following blog entry help: http://adf-rk.blogspot.com/2007/01/adf-oracle-form-like-overflow-in-adf.html

  • How can I get hold of the hWnd for a CWgraph control?

    I wish to plot the area between two cursors on a CWGraph in inverse colour. I believe I can do this if I can get the hWnd of the control. Can I get hold of the hWnd in VB or do I have to go to VC and CW++. (I hope not 'cos I REALLY don't like MFC)
    Paul Rocca

    I have attached here a screenshot of the effect we need to be able to demonstrate. Any ideas for a way of doing something like this in Measurement Studio would be much appreciated.
    Attachments:
    Doc2.doc ‏41 KB

  • How can I get hold of the receipt for my Mac bought in NY, Soho

    Hi, does anyone know how or where to get hold of the receipt emailed me when purchased my Mac - trouble with email.

    I have attached here a screenshot of the effect we need to be able to demonstrate. Any ideas for a way of doing something like this in Measurement Studio would be much appreciated.
    Attachments:
    Doc2.doc ‏41 KB

  • Getting hold of the servlet context within a filter

    How can I get hold of the servlet context from within a filter?

    The Filter has a FilterConfig that contains the ServletContext.
    class myFilter implements Filter {
       private FilterConfig config;
      public void init(FilterConfig filterConfig)
              throws ServletException {
            this.config = FilterConfig;
        public void doFilter(ServletRequest request,
                         ServletResponse response,
                         FilterChain chain)
                  throws java.io.IOException,
                         ServletException {
              ServletContext context = this.config.getServletContext();
    }

  • How to get hold of the JavaFX applet in some java code called from it

    I have a scenario where I am trying to reuse some java libraries that existed before and used the Applet API. In order to give a new UI to these APIs I am redesigning the front end using JavaFX. I can create instances of java classes from these old libraries. Methods on these old classes take java.applet.Applet as an argument.
    When the JavaFX applet is deployed as an applet, how can one get hold of the corresponding Applet object?
    Thanks in advance.

    When run as an applet, FX.getArgument("javafx.applet") will return the JApplet instance.

  • HT201441 What will happen to the phone if i cannot get hold of the previous owner

    What will happen to the phone if i cannot get hold of the previous owner??
    Is there any way to find the previous owners email address to contact him/herr??

    It becomes unusable. Makes a nice paper weight.

  • I own CS6, I am upgrading my computer.  How do I get this onto the new computer when it arrives?

    Having purchased the download version of CS6, how do I get this onto the new computer?
    Thanks,
    Peter

    Download your installer from here
    http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
    and enter your serial number when asked.
    Gene

Maybe you are looking for

  • How do I compile a java file in eclipse

    Hi, I have just installed eclipse and added a plugin for tomcat. I created a new tomcat project and have been trying out several jsp files. Everything nice and dandy. Now there is a bean in the tutorial that I am doing. So I use the context menu, new

  • How to save session state for a text item

    hi @averyone, i designed in interactive report with one apex_item.text field, let's name it "count" normally the report has more then one pages. the report should work like a kind of a shopcart. the user enters some data into "count" and moves on to

  • Xl Reporter Timeout Setting

    Hi All We have the following message when trying to generate a large report in XL Reporter.  An error occurred while Executing report! Decription: Rows 2358, Column 244 Timeout expired This is a very large report and it times out before it completes.

  • How can i find JKM for "Asynchronous Autolog"

    How can i find JKM for "Asynchronous Autolog" change data capture?

  • Not able to import canon raw CR2 photos direct from a camera into Lightroom 5.5

    I've just purchased Lightroom 5 and updated it with the latest version 5.5, and I am running windows 7.  Everything appears to be working fine, however I am not able to import Canon CR2 raw files directly from my camera.  Importing JPEG files directl