Select Table row.

Hi.
I need some help!
I'm implementing a web dynpro application with a simple table.
That table has a row popin to show some more complete information about the table row.
I have also a button on that popin and I want to, when that button is pressed, show that row information on a popup window.
How can I get the information of that row?
Regards

Hi,
Try this, it will give no of selected records.
DATA lo_nd_et_postab_1 TYPE REF TO if_wd_context_node.
  DATA lo_el_et_postab_1 TYPE REF TO if_wd_context_element.
  DATA ls_et_postab_1    TYPE wd_this->Element_et_postab_1.
  DATA lt_et_postab_1    TYPE wd_this->Elements_et_postab_1.
  DATA: wa_temp TYPE REF TO if_wd_context_element,
        lt_temp TYPE wdr_context_element_set.
* navigate from <CONTEXT> to <ET_POSTAB_1> via lead selection
  lo_nd_et_postab_1 = wd_context->path_get_node( path = `ZSHP_EXTENDED_DUE_LI.CHANGING_3.ET_POSTAB_1` ).
  CALL METHOD lo_nd_et_postab_1->get_selected_elements
    RECEIVING
      set = lt_temp.
  LOOP AT lt_temp INTO wa_temp.
    CALL METHOD wa_temp->get_static_attributes
      IMPORTING
        static_attributes = ls_et_postab_1.
    * append ls_et_postab_1 to lt_et_postab_1.  // if you watn use this statement
    CLEAR ls_et_postab_1.
  ENDLOOP.
Cheers,
Kris.

Similar Messages

  • Add selected table row value to PageFlowScope so I can access in taskflow

    Hi all,
    Running into a problem getting a value from a selected ADF table row to a taskflow that is displayed as an inline popup. Here's the scenario. I have a view which displays a table. When I click on an edit btn I display my taskflow as an inline popup. What I would like to do is take the currently selected table row, pull off lets say the row name value and pass it to my taskflow for display. I've tried settting this value inside a mbean when I click the edit btn using:
            AdfFacesContext.getCurrentInstance().getPageFlowScope().put("editTargetNameSource", targetName);
            String tmpClear = (String) AdfFacesContext.getCurrentInstance().getPageFlowScope().get("editTargetNameSource");Which seems to get set but when I attempt to grab this value using EL inside my taskflow jspx page it looks to not be set.
    <af:outputLabel value="Selected Row" id="ol1"/><af:outputText value="#{pageFlowScope.editTargetNameSource}"It seems like pageFlowScope for my popup taskflow != pageFlowScope for the page my table lives in. I've tried setting this as a input page param but I have a feeling I'm missing something. I'd like to be able to set this value inside my bean when a user clicks the edit btn and then display this value in my taskflow popup.
    Any help is appreciated,
    -Wraith

    Thanks for the links Timo. I still must be missing something here. In the vids you linked it looked like he was using regions to pass params from main page to a taskflow; setting a param on child taskflow (causes param to be required when dragging into main page). So I think I understand I add an expected param to my taskflow which somehow will be set by my main page. The part I'm missing is from my main page how can I get the selected table row value and set it in the expected pageflowscope param that my taskflow is expecting?
    I've tried several things:
    1) Using managed bean associated with my main page; setting param inside the bean on main page btn click and then try accessing this mbean param (couldn't access this value as different pageflowscope I believe)
    2) Programmatically setting PageFlowScope as I linked in previous post.
    3) using setPropertyListener I can set a static value setting value in pageflowscope.start and then inside adfc.config for the task set start value to another value expected by the taskflow page. This seemed to work but I can't figure out how to do the programmatic version of this using the currently selected row and its value.
    One who seems to be missing something,
    -Wraith

  • Problem selecting table rows/cells in Indesign CC

    I have a problem when trying to select rows and cells within tables created in Indesign CC. I am using a Macbook Pro on OSX 10.9.4.
    As you can hopefully see from the image attached, I am unable to select cells & rows cleanly. Believe it or not the image attached shows the last 2 rows of the table selected. As I drag the cursor to highlight the cells/rows I want the highlighted section jumps all over the place so it is not clear which section of the table is actually selected.
    If anyone has any suggestions as to what might be causing this I would appreciate your thoughts.
    Thanks
    Craig

    I believe you should be on 9.1, this issue existed in that version and has been fixed in 9.2.1
    I would recommend that you upgrade InDesign CC to at-least 9.2.1
    Thanks
    Javed

  • How to pass the selected table row data from popup to source view

    Hi ,
    I have requirement of passing the data from popup view to source. , searching some data in  popup view and displaying in table,
    Like i am passing some input and click search button will display the data in table, when select any of the row in the table and click on the another button , i should be able to pass the select row to the source view and also should close the popup.
    When i implement , In the popup windiw, when i enter the customer no, and click on search button, it is closing the popup itslef. not able to see the data in popup.
    Can u tell me what is that soultion.
    Regards
    Vijay

    Hi Harsimran
    Thanks for the reply,
    1) Source view
    In  "Source View" i have input field called Customer_no. But,  the end user will not have any idea , what customer no to enter. so i am searching the customer no in the popup view.
    1) Customer_no( This is an inputfiled , to get the customer no from the popup view)
    2) Get Customer NO( This is a button to call the popup view)
    "Get Customer NO" This button action will open the popup view.
    In this popup, i have
    1) Input field (To enter the search term)
    2) Search (To seach the customer no based on the search term)
    3) Table ( To display the search data)
    4) Button in Table tool bar called "Select" .( To close the popup view after selected the required data in the table to pass it back to the source view).
    so in the popup view what happening is, when i click on the search button itself , it is closing the popupview  by transfering the first row of the tbale ,with out select the required row in the table.
    i need to close the window after click on the "Select" button in the toolbar , after selected the required row data to trasfer in the table.
    Can u pelase tell me what are the modifcations i need to do it.
    Regards
    Vijay

  • Dynamically enable a field based on a selected table row

    Hi everyone.
    I'm getting really confused right now, please show me the right way. My approach may be, and probably is, wrong since I am self learning this and all I have is an ASP.NET background.
    I have a page with a table in it. I've created a DataControl for a collection I've made and mapped it to the table. I added a column that shows an "edit" button. On it's click, I open a popup that shows the selected row's data. Naviguation controls are also present on the popup.
    This is working fine.
    My problem comes in the popup. Each row has multiples fields. These fields, shown on the popup, need to dynamically be enable/disable. To toggle those field, the only way I can see right now is to have a function that takes into parameter the rowId and the fieldName. Based on those two fields, I can get the necessary information to know if I need to enable or disable the control.
    What I was aiming for, but then again I totally failed, was to have that function called on the "enabled" EL Expression, returning a Boolean.
    Now that this has been said, can someone guide my on how to dynamically enable/disable each field based on the selected row.
    Thanks !

    Above +
    why don't you create a bean method that returns a Boolean ans through EL Expression Builder select the method to this property.
    btw .. on which components are you setting this?
    Also,
    If there is business logic that prohibits to update this object unless that is met.. you can also do it as..
    In EOImpl .. override isAttributeUpdateable(int i) method eg:
    @Override
    public boolean isAttributeUpdateable(int i) {
    if(i == this.ENAME && "KING".equalsIgnoreCase(this.getEname())){
    return true;
    }else
    return super.isAttributeUpdateable(i);
    and then in UI for the component say
    ReadOnly = #{bindings.Ename.updateable}
    Or, In UI
    disable = #{ bindings.Ename.attributeValue == 'KING' & bindings.Mrg.attributeValue == null ? true : false}
    adf does provides many ways to do it ..
    Cheers, Amit

  • Select Table row(eg.3rd),rows displayed from the selected row,hiding above

    If we move the horizontal scroll bar of the table and filter a column when there is a selection on the row, the rows are displayed from the selected row. The rows above the selected rows are disappearing(F5 it come back) and the rows are available when there are more rows with vertical scroll bar(above the selected row, if we scroll up).

    Frank,
    Mailed to you the sample application with the table script too. Please review the comments in the mail.
    Thanks and Regards,
    Stanley William
    Edited by: STANLEYWILLIAM on Apr 22, 2013 3:52 PM
    Edited by: STANLEYWILLIAM on Apr 22, 2013 3:52 PM

  • Dis-Select table rows after table update.

    Hello All,
    I have given the user a functionality to update table records on the BSP page.
    I am using multiselect first and then when user clicks on a button, the selected rows becomes editable...
    The user can then edit the rows and after they click on another button, the changes gets reflected in the database table....
    Now my problem is that when the table is updated, i am changing the selectionMode to Multiselect, but the rows still remains selected and i want to clear all the selected rows...i.e <b>dis-select all the rows...</b>
    Please help.
    I am using an iterator..

    Here you go..
    cl_htmlb_manager=>check_tableview_all_rows( rowcount = n
    request = request
    id = '<tableview id>'
    keytable = keytable "Table containing the key values of your itab
    check = '' ). "If its 'X' all items will be selected and ' ' will uncheck all items.
    <i>* Reward each useful answer</i>
    Raja T

  • Is it possible to enable/disable table row selection?

    I have a situation where a user can add rows to a "selection" table with a value that is used to perform a query to get a collection of objects associated with that value. Once those objects are available, a second "results" table will be populated with the row(s) returned. When the value is entered in the selection table, a web service call is made to perform the query and return the results. This may take a few moments and I am displaying an indeterminate progress indicator for the selection table row involved to indicate that the data is not yet available - the progress indicator is included as a column in the row; each row has its own indicator. Once the results are received the indicator is hidden to indicate the query for that row has completed. The user may enter as many rows in the selection table as they wish so there is a distinct possibility of multiple queries being executed at a given time. I have also attached a row selection listener to the selection table such that when a given row is selected, the results table will display the corresponding associated row(s).
    What I'd like to be able to do is somehow temporarily disable the selection of any row that has a query in progress, while leaving other rows whose queries have completed be selectable. Once the query completes, the row can then become selectable, thus allowing for the results to be loaded and displayed in the results table. The way it works right now, if the row is selected while the query is still in progress, nothing is displayed (obviously), but then the row has to be re-selected after the query has completed to see the results. This is a viable (though undesirable) solution/workaround if there is at least one other row in the table. However, if the row is the only row in the table and has been selected, it cannot be re-selected (there's no other row to select to allow for re-selection). To boil it down, what I'd like to do is prevent the selection of the row until the query for that row is complete.
    After perusing the JavaFX 2.2 API, I'm not seeing any obvious way to achieve this effect. If anyone has any solutions, suggestions, etc. on how this could be done I'd appreciate it greatly.

    Here's an [url https://github.com/james-d/Conditionally-selectable-table]example. As predicted, keyboard navigation fails if the keyboard presses would result in an unselectable item being selected using the default selection model. The best workaround I can see for this is to register event filters for the appropriate keyboard strokes, as in the previously referenced thread.
    Update: That code won't run in the current (ea b90) release of JavaFX 8.0, and probably a few recent releases; it will however run in the final release (and it runs in JDK 7). See [url https://javafx-jira.kenai.com/browse/RT-30593]RT-30593
    Edited by: James_D on May 22, 2013 7:51 PM

  • WD4A table row unselectable

    Hi ,
    I have developed a WD4A application comprising 3 views. 2 views provide overview screens to 2 different groups of users where they can select the learning forms based on various selection criteria. The third view is to actually show the details of the selected form.
    I have designed one function module to be used by both the overview screens. The function mosule takes the filters via an input structure and returns a table as output. Each view has a table control which is bound to the output table and will show different combinations of columns which are defined at design time itself. So I have 2 table controls in 2 views which are bound to the same context node. The issue is that in one of the views, I am able to select table rows via lead selection, but in the other view the lead selection is not possible. can anyone help?
    Context node details:
    Cardinality     0..n
    Selection     0..n
    Initialization Lead Selection     X
    Singleton     X
    Regds
    Thiru

    The properties for both the tables are the same
    First View:
    ID     TABLE
    accessibilityDescription     
    dataSource     LEARNERVIEW.Z_LMS_INBOX_GET_DATA.EXPORTING_1.P_EXDAT
    design     standard
    emptyTableText     
    enabled     1
    firstActualRow     0
    firstVisibleRow     0
    firstVisibleScrollableCol     
    fixedTableLayout     0
    footerVisible     1
    gridMode     both
    legendId     
    readOnly     0
    rowCount     -1
    rowSelectable     1
    scrollableColCount     -1
    selectedPopin     
    selectionChangeBehaviour     auto
    selectionMode     auto
    tooltip     
    visible     Visible
    visibleRowCount     5
    width     700px
    Events     
    onFilter     
    onLeadSelect     FORM_SELECT
    onScroll     
    onSort     
    Layout Data (FlowData)     
    cellDesign     padless
    vGutter     none
    Second View:
    ID     TABLE
    accessibilityDescription     
    dataSource     APPROVERVIEW.Z_LMS_INBOX_GET_DATA.EXPORTING_1.P_EXDAT
    design     standard
    emptyTableText     
    enabled     1
    firstActualRow     0
    firstVisibleRow     0
    firstVisibleScrollableCol     
    fixedTableLayout     0
    footerVisible     1
    gridMode     both
    legendId     
    readOnly     0
    rowCount     -1
    rowSelectable     1
    scrollableColCount     -1
    selectedPopin     
    selectionChangeBehaviour     auto
    selectionMode     auto
    tooltip     
    visible     Visible
    visibleRowCount     5
    width     700px
    Events     
    onFilter     
    onLeadSelect     FORM_SELECT
    onScroll     
    onSort     
    Layout Data (FlowData)     
    cellDesign     padless
    vGutter     none

  • Single Selection tables

    Hi all!
    I created a new UIX screen (based on an existing one) with a table that has a single selection column (radio button). This table is displaying child datasource set information. My goal is to select one row and then send the key of the selected row to a new page which will display the details of it. The thing is that I cannot get the selected row from the table. When debugging the index variable is empty as if no row was selected. The funny thing is that a javascript validation passes with no problems but when I try to interact with the JHeadstart classes I get this error.
    What should I do to pass the selected table row to JHeadstart?
    Please let me know if you need more information
    Regards
    Maxi

    Maxi,
    You can generate this by creating a group with table-form layout.
    If other parts of the system cannot be generated again, you could first create a separate application structure file with this group, and generate the required pages and entries in the service xml. You can then integrate the pages ans service content with the existing app.
    This saves you time to figure it out yourself.
    Steven Davelaar,
    JHeadstart Team.

  • How can I display "detailStamp" facet selectively for rows in a table ?

    Hi,
    My JDEV version is Studio Edition Version 11.1.1.5.0
    I am trying to display "detailStamp" facet selectively .
    If I read api in link below
    http://docs.oracle.com/cd/E26098_01/apirefs.1112/e17488/oracle/adf/view/rich/component/rich/data/RichTable.html
    Use the "detailStamp" facet on the Table to include a collapsable content area for each table row. Please note that the height of the open detail area will be a set height based on the height of the detailStamp component. Adding a component that changes in height (like showDetail or panelBox) will by default produce strange results when the detailStamp component's height changes.
    Detail Stamp can be selectively displayed for rows in the table by EL binding the "rendered" attribute of the "detailStamp" facet to "true" or "false". The EL binding can contain references to the table "var" attribute since during rendering it will be executed in the context of the row. Disclosure icon is displayed only for rows which have rendered="true".
    I can see that i can achieve it by setting rendered property for that facet. BUT this property is not available in Studio Edition Version 11.1.1.5.0

    Hi Frank.
    Thanks for your quick reply .
    But I am using Studio Edition Version 11.1.1.5.0 . In this version the property RENDERED of f:facet name="detailStamp" is NOT allowed.
    Edited by: user13764942 on Feb 7, 2013 5:48 AM
    Put in another way , I want to render the "detailStamp" facet selectively for rows , so for that I need the RENDERED property of "detailStamp" facet. This property is ONLY available in Jdev version 11.2 . I am using Jdev 11.1.1.5.0 so I need some alternative to RENDERED property as this property is NOT available in Jdev 11.1.1.5.0.
    Please suggest some way to achieve this behaviour of displaying "detailStamp" facet selectively ....
    Thanks!
    Edited by: Mangpal Singh on Feb 7, 2013 11:57 PM

  • How to select perticular row in table control for BDC

    Hi all
    I want to select perticular row in table control for deletion through BDC. My transaction is CA02, My input is  material no and plant , then it display table control with work center. Now i want to select W999 cost center and delete through BDC.
    Please Suggest me. it urgent.
    Thanks& Regards,
    RP

    Hi all
    I want to select perticular row in table control for deletion through BDC. My transaction is CA02, My input is  material no and plant , then it display table control with work center. Now i want to select W999 cost center and delete through BDC.
    Please Suggest me. it urgent.
    Thanks& Regards,
    RP

  • How to select a row in a single-select table view?

    Hello folks,
    I have a table view with a 'details' button. When a row is selected and 'details' is pressed, the table view disappears and a form view is displayed (like the toggle button in PCUI). I have implemented this using a navigation link. When I press 'cancel' in the form view, another navigation link takes the user back to the table view.
    My problem is, when the table view reappears, there is no row selected (the row that was selected previously, is de-selected). How do I make sure that the row remains selected?
    I tried using the collection_wrapper->mark() method in the inbound plug of the table view, but it works only for multi-select table.

    Hi Masood,
    Thanks for your reply.
    I had already tried using MARK ( iv_index = lv_index ), but it did not work because the first statement in the MARK method is
      check ME->MULTI_SELECT = ABAP_TRUE.
    Mine is a single-select table. So, using the MARK of the iterator object, with either the IV_BO or the IV_INDEX parameter also does not work. Is there any other way for a table with single row selection?
    Thanks!!!
    Rohan.

  • Select Multiple Rows in a Table without CTRL

    Expecting the user to press "Ctrl" when selecting multple rows is very unfriendly and unintuitive. We'd like the row selection to work as in ALV where you just select multiple rows by clicking on them.
    We've set the tables rowSelectable to true and selectionMode to 'multi' but we still cannot select multiple rows without the CTRL hotkey.
    This issue apparently [arose before|About selection in the table] but wasn't resolved.
    System Details
    SAP_ABA     701     0006     SAPKA70106
    SAP_BASIS     701     0006     SAPKB70106
    SAP_AP     700     0019     SAPKNA7019

    Hello Marc,
    you need to call IF_WD_CONTEXT_NODE->set_selected(index = lv_index) sorry for the typo in my previous comment.
    by calling IF_WD_CONTEXT_NODE->set_selected method wont remove the lead selection.
    to unselect the records, you can call the same method by passing the FLAG value as abap_false.
    so for your usecase the logic will be like this in the ON_SELECT event handler
    1. get the index of the new_lead_selection
    2. check whether this is already seleted in the context node by calling IF_WD_CONTEXT_NODE->IS_selected
    3. if already selected then call IF_WD_CONTEXT_NODE->set_selected( flag = abap_false index = lv_index)
       if not selected then call IF_WD_CONTEXT_NODE->set_selected( index = lv_index )
    Hope this solved your problem.
    BR, Saravanan
    Edited by: Saraa_n on Jul 6, 2011 11:52 AM

  • Selecting multiple rows in a table

    Hi All,
    I have one problem with selecting multiple rows in a table.I tried with setting table property-selectionMode as Multi, but i dinn't get the solution.
    please provide me solution for this.
    Thanks & Regards,
    Sreelakshmi.

    HI
    Int leadSelection = wdcontext.nodemodelnode.getLeadSelection();
      for(int i=0;i<wdcontext.nodeModelNode.size;i++)
        if(wdcontext.nodeModelNode.isMultiselected(i) || leadSelection ==i)
               String name = wdcontext.nodemodelnode.getnameelementatindex(i).getName();
               String  address = wdcontext.nodemodelnode.getaddresselementatindex(i).getAddress();
               String age = wdcontext.nodemodelnode.getAgeelementatindex(i).getAge();
            Create a method for the Table Property onLeadSelect() where you can open a popup window
             Create a value node and with attributes same as Table attributes and then set the values of the table
             to the value node attributes.
    Thanks

Maybe you are looking for

  • Aligning the end of a cutaway

    Hi iMovie '11 How does one go about aligning the end of a cutaway (and it's corresponding audio) such that a transition can be added to the end?  No matter how I cut it, the transition is ghosted (and doesn't work). Wisdom appreciated!  Thanks!

  • How do I create and send a zip file? I have Lion and I'm working in Word for mac

    To show you how little I know about any of this, I don't even know if this is the correct forum in which to ask this question. I'm a copywriter. I have a client in France. I have 15 word documents, 15 of the same documents in PDFs and a small Excel d

  • MySQL Stored Procedure Syntax Errors

    I have an online application I would like to use transactions to either commit all db updates or none at all. The code I have created is as follows, not only am I getting a syntax error on lines 5 and 16, but quite frankly I am unsure the code will a

  • Cannot Use Help In Verizon Yahoo?

    Hello. From my Verizon/Yahoo homepage or Verizon email I cannot access Help.  For example, if I am in my email and click on Help, the webpage that appears has a Help Index on the left side listing options you can click on, such as Troubleshooting, Em

  • Wireless Charger problem

    Why wont my S5 charge on the wireless pad only when the pad is connected to an outlet.