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

Similar Messages

  • How to find the average of table row values it should display in next row in libwindow/​CVI

    Hi,
    How to find the average of table row values it should display in next row in libwindow/CVI
    Please let me know the solution.

    There isn't a built-in function to perform calculations on thable cells. What you can do is to retrieve thable cells values and calculate the average by yourself.
    To retrieve a bunch of cells in a single instruction you can use GetTableCellRangeVals: prerequisite for this function to work correctly is that cells are all included in a Rect structure (shortly, a rectangle) and are all of the same data type. See the help for the function for some explanations and the link to an example of its usage. In Cell range parameter you can pass VAL_TABLE_ROW_RANGE (row) macro to retrieve an entire row. See here for details.
    Once you have retrieved cell values in an array, you can pass it to Mean function to calculate the average.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Add a table row

    I have a standard html table in and ICE div and want my
    client to be able to add table rows to enter new problems reported.
    When in edit mode we can edit content in the existing rows, but do
    not seem to be able to add a new row. Suggestions?
    Morris

    Hello Morris,
    You can set table rows to be repeating regions, which will
    make your table a repeating group element. Doing this allows your
    users to duplicate the table rows and add new ones.
    It sounds like the first thing you you will want to do is
    remove the DIV wrapping the table in Dreamweaver. Then, place your
    cursor in a table cell (the <td> elements in the row) and go
    to Insert > InContext Editing > Create Editable Region. Do
    this for each cell in the row you want to be editable. After you
    have specified the editable cells in your table row, select the
    table row (<tr> element of your table), and go to Insert >
    InContext Editing > Create Repeating Region. This will allow
    editors to duplicate the table rows, and edit the cells within the
    row you have specified as editable.
    Take a look at the following section of the Dreamweaver help
    for more information on repeating regions:
    http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WS228F034D-1255-463f-BE80-D075F0BACF11. html
    And please let me know if you need further assistance with
    this.
    Best regards,
    Corey

  • 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

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

  • SELECTION TABLE PASSING VALUES

    I want to pass multiple values with submit statuement. Here I m passing a selection table but I also want to pass one more value.
    SUBMIT zxx_xxx  USING SELECTION-SCREEN 0501
                                 WITH S_CUST IN gt_customer_range
    Is there anyother way to pass an addition value along with this selection table

    hi,
    u can use like this
    First declare with range iof like this   it_rangemtart      LIKE RANGE OF mara-mtart,
    Then pass the values as shown below
    *Material number
    IF FL_MATNR IS NOT INITIAL AND FL_MATNR1 IS INITIAL.
         CLEAR : wa_matnr,
                   it_rangematnr.
              wa_matnr-sign   = 'I'.
              wa_matnr-option = 'EQ'.
              wa_matnr-low    = fl_matnr.
              APPEND wa_matnr TO it_rangematnr.
          ELSEIF fl_matnr  IS NOT INITIAL AND
                 fl_matnr1 IS NOT INITIAL.
                 CLEAR : wa_matnr,
                 it_rangematnr.
                wa_matnr-sign   = 'I'.
                wa_matnr-option = 'BT'.
                wa_matnr-low    = fl_matnr.
                wa_matnr-high    = fl_matnr1.
                APPEND wa_matnr TO it_rangematnr.
    ENDIF.
             *Material decription
          CLEAR : wa_maktx,
                  it_rangematkx.
          wa_maktx-sign   = 'I'.
          wa_maktx-low    = fl_makt1.
          wa_maktx-high    = fl_makt2.
          IF fl_makt1 IS NOT INITIAL
          AND fl_makt2 IS NOT INITIAL.
            wa_maktx-option = 'BT'.
            APPEND wa_maktx TO it_rangematkx.
          ELSEIF fl_makt1 IS NOT INITIAL
            AND  fl_makt2 IS INITIAL.
            wa_maktx-option = 'EQ'.
            APPEND wa_maktx TO it_rangematkx.
          ENDIF.
            SUBMIT zlabmaterial
                           WITH s_mtart IN it_rangemtart
                           WITH s_matkl IN it_rangematkl
                           WITH s_matnr IN it_rangematnr
                           WITH s_maktx IN it_rangematkx
                           WITH p_print  EQ fl_out
                           WITH p_copie EQ fl_copy
                           AND RETURN.

  • 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

  • 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

  • How to select multiple rows from List Of Values

    Hello,
    I use ADF 11g to create my list of values (LOV). I want to select multiple rows from it. but i can't.
    so how i can select many rows to set them in my adf table.
    Thank in advance

    Hi,
    LOV is map to an attribute in the viewObject so it will return only one value or more values from selected row. You can't select multiple rows from LOV.
    But you can do this by using popup which you can select multiple rows and insert the selected rows to another table.
    This blog post explain how to achieve this :
    http://husaindalal.blogspot.com/2009/11/search-from-popup-and-add-to-new-table.html#comments
    Sameh Nassar

  • 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

  • How to get edited row values from ADF table?

    JDev 11.
    I have a table which is populated with data from Bean.
    I need to save changes after user make changes in any table cell. InputText is defined for table column component.
    I have defined ValueChangeListener for inputText field and AutoSubmit=true. So when user change value in inputText field, method is called:
    public void SaveMaterial(ValueChangeEvent valueChangeEvent) {
    getSelectedRow();
    SaveMaterial(material);
    This method should call getSelectedRow which take values from selected table row and save them into object:
    private Row getSelectedRow(){
    RichTable table = this.getMaterialTable();
    Iterator selection = table.getSelectedRowKeys().iterator();
    while (selection.hasNext())
    Object key = selection.next();
    table.setRowKey(key);
    Object o = table.getRowData();
    material = (MATERIAL) o;
    System.out.println("Selected Material Desc = "+material.getEnumb());
    return null;
    Problem is that getSelectedRow method doesnt get new (edited) values, old values are still used.
    I have tried to use ActiveButton with same method and it works fine in that case. New values are selected from active row and inserted into object.
    JSF:
    <af:table var="row" rowSelection="single" columnSelection="single"
    value="#{ManageWO.material}" binding="#{ManageWO.materialTable}">
    <af:column sortable="false" headerText="E-number">
    <af:inputText value="#{row.enumb}" valueChangeListener="#{ManageWO.SaveMaterial}" autoSubmit="true"/>
    </af:column>
    <af:column sortable="false" headerText="Description">
    <af:inputText value="#{row.desc}" valueChangeListener="#{ManageWO.SaveMaterial}" autoSubmit="true"/>
    </af:column>
    </af:table>
    <af:activeCommandToolbarButton text="Save" action="#{ManageWO.EditData}"/>
    What is a correct place from where save method should be called to get new (edited) values from ADF table?
    Thanks.

    Did you look into the valueChangeEvent?
    It has oldValue and newValue attributes.
    public void SaveMaterial(ValueChangeEvent valueChangeEvent) {
    Object oldVal = valueChangeEvent.getOldValue();
    Object newVal = valueChangeEvent.getNewValue();
    // check if you see what you are looking for.....
    getSelectedRow();
    SaveMaterial(material);
    }Timo

  • How can I export table row in internet explorer?

    I need to export a single table row on a website and I can't figure out how to do it.  The source view for the row I need is:
    tr class="alt">
    <td id="16ZwhxLjCN8fafA8wuYEnMFtGJGrFy6qcE">16ZwhxLjCN8fafA8wuYEnMFtGJGrFy6qcE</td>
    <td></td>
    <td></td>
    <td>0.00065227</td>
    <td>0.01233629</td>
    <td>0.00371003</td>
    </tr>I can get the table ID using the code below, but I don't know how to get the rest of the values. The table ID does not change but the numerical values do.$ie = New-Object -com InternetExplorer.Application
    $ie.silent = $false
    $ie.navigate2("mywebsite.com")
    $ie.Document.getElementById("16ZwhxLjCN8fafA8wuYEnMFtGJGrFy6qcE")

    Hi Tom,
    this may not be quite the perfect solution, but it works for me at least. I'm not using the IE ComObject, but rather the .NET Webclient for it ...
    # Load downloader function
    function Get-WebContent
    <#
    .SYNOPSIS
    Downloads a file
    .DESCRIPTION
    Download any file using a valid weblink and either store it locally or return its content
    .PARAMETER webLink
    The full link to the file (Example: "http://www.example.com/files/examplefile.dat"). Adds "http://" if webLink starts with "www".
    .PARAMETER destination
    The target where you want to store the file, including the filename (Example: "C:\Example\examplefile.dat"). Folder needs not exist but path must be valid. Optional.
    .PARAMETER getContent
    Switch that controls whether the function returns the file content.
    .EXAMPLE
    Get-WebContent -webLink "http://www.technet.com" -destination "C:\Example\technet.html"
    This will download the technet website and store it as a html file to the target location
    .EXAMPLE
    Get-WebContent -webLink "www.technet.com" -getContent
    This will download the technet website and return its content (as a string)
    #>
    Param(
    [Parameter(Mandatory=$true,Position="0")]
    [Alias('from')]
    [string]
    $WebLink,
    [Parameter(Position="1")]
    [Alias('to')]
    [string]
    $Destination,
    [Alias('grab')]
    [switch]
    $GetContent
    # Correct WebLink for typical errors
    if ($webLink.StartsWith("www") -or $webLink.StartsWith("WWW")){$webLink = "http://" + $webLink}
    $webclient = New-Object Net.Webclient
    $file = $webclient.DownloadString($webLink)
    if ($destination -ne "")
    try {Set-Content -Path $destination -Value $file -Force}
    catch {}
    if ($getContent){return $file}
    # Download website
    $website = Get-WebContent -WebLink "http://www.mywebsite.com" -GetContent
    # Cut away everything before the relevant part
    $string = $website.SubString($website.IndexOf('<td id="16ZwhxLjCN8fafA8wuYEnMFtGJGrFy6qcE">'))
    # Cut away everything after the row
    $string = $string.SubString(0,$string.IndexOf('</tr>'))
    # Split the string into each individual line
    $lines = $string.Split("`n")
    # Prepareing result variable
    $results = @()
    # For each line, cut away the clutter
    foreach ($line in $lines)
    $temp = $line.SubString(4,($line.length - 10))
    # for the first line, the td has an id, which this compensates for
    if ($temp -like 'id="16ZwhxLjCN8fafA8wuYEnMFtGJGrFy6qcE">*'){$temp = $temp.SubString(($temp.IndexOf(">") + 1))}
    # Add cleaned line to results
    $results += $temp
    You may need to adapt the string parsing beneath the function, if the text you posted is not literally identical to the way this function returns it. It worked for a string block acquired via copy&paste from your post anyway. :)
    I certainly would be more than happy to read a more elegant version, if someone has one to offer.
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • How get pervious row value in grid

    hi master
    sir
    I have grid in my form my user design the balance sheet
    Then he want add the last row value in next row
    Such as
    Row2          amount=1000
    Row3               row2+2000
    Total          row3-row2
    How I get last row value
    Please give me idea

    Other solution is to use a collection in a package unit.
    Type TYP_COLL is table of Number INDEX BY BINARY_INTEGER ;
    my_coll TYP_COLL ;
    Then in the Post-Trigger :
    my_coll( :system.current_record ) := value ;so you can navigate easily within the collection in both directions Next/Previous.
    Easy to get the previous value:
    value := my_coll( :system.current_record - 1 ) ;Francois

Maybe you are looking for