([JDev12c, ADF] 1) how to get the value of a field of the line currently selected in question 2) af:table: flowScope

Hallo,

How can I get the value of a field in the row that is currently selected in an af:table?

I need to pass this value to a setCurrentRowWithKeyValue who took the record to display in another (by a button) called page:

Limited workflow

Page1 - goToPage2-> setCurrentRowWithKeyValue-> PAGE2

I defined a managed bean flowScope for the workflow in which I created the variable 'CodeToSetPage2Row '.

I will store the value of the field for the selected line in this variable so that I can move on to the setCurrentRowWithKeyValue.

Could be this method OK? Ore is there any good practice to achieve this goal?

The managed bean flowScope used to go to the stubborn task may take some values from the outside?

The workflow defined will be executed in a dynamic region.

Thank you

Federico

Federico, you cannot use a flow variable scope for this page. The region has no access to the bean. You must use a workflow for this parameter.

To get an attribute of the currently selected line you make slide data vo of control on the page attribute. This will create a link attribute for this attribute. Once this link exists, switch to source mode and remove the component that you do not want.

The framework passes the value of the current row in this affair of the attribute (table should be in single selection mode).

Click on the button, you switch the binding of the attribute for the setting of task flow using a setPropertyListener.

In the workflow, you call the setCurrentRowWithKeyValue with the parameter of workflow as the default activity.

Timo

Tags: Java

Similar Questions

  • How to get the FileSystemTree coordinates selected item?

    Hi can we idea me in how to get the coordinates of the itwn selected in a FileSystemsTree?

    THX

    g

    You should do something like this:

    var itemRenderer:DisplayObject = fileSystemTree.itemToItemRenderer (fileSystemTree.selectedItem) as DisplayObject;
    Contact information: Point = itemRenderer.parent.localToGlobal (new Point (itemRenderer.x, itemRenderer.y)) var;

    contact information is now an object point representing the coordinates of your itemRenderer in the global coordinate system.

  • Get the line current viewObject in valueChangeListener

    Hello

    I had an editable table, based on a vo. In some of the entries in the table, I've defined a valueChangeListener. I would like to know how to get the current line in this method?

    For example, an editable table based on a vo that is based on the EMPLOYEES (eo) table. FA: input of FirstName, I declared a valueChangeListener, pointing to a bean method. In this method, I would get the value of the Email from this same line.

    Thank you for helping.

    Try adding

    
    inside the af:inputText
    

    and then at the bean to support:

    public void onChange(ValueChangeEvent valueChangeEvent) {
      Object email= valueChangeEvent.getComponent().getAttributes().get("email");
    }
    

    In addition, if you need to get all the details of the line, you can pass the pk as attribute and then find the line like this:

            DCIteratorBinding it = getBindings().findIteratorBinding("ViewIterator");
            it.setCurrentRowWithKeyValue(String.valueOf(rowPK));
    
  • How to get the line object table View

    Hello

    I use Jdev 11.1.1.7

    My requirement is, there are two ways I can get lines in my logic, you're based getFilteredRows (RowQualifier) and vo.executeQuery () - on a specific condition or I should consider first or later...

    getFilteredRows() returns the line [], I need to find a way to make [Row] of the View object properly after ececuteQuery() on the VO... When I use vo.getAllRowsInRange () which returns only a single line, but what iterate the VO even, I see that there is more than one line... How can he get all the range of the VO table?

    Thank you

    You can set the size of the field-1?

    ViewObjectImpl (Oracle ADF model and Business 10.1.2 API components reference)before calling getAllrowsinRange?

  • How to set the line current

    Dear all,

    I have a panelFormLayout with some fields on this and there are other hidden required fields I want to put values in the button submit, I'm here links but I don't know how to set the current row programmatically.

    Thanks in advance.

    Hello

    You could do something like this:

    Binding DCIteratorBinding = ADFUtils.findIterator ("EmployeesView1Iterator");

    Line currentRow = binding.getCurrentRow ();

    currentRow.setAttribute (attrName, "attrValue");

    Concerning

    PS:

    public static DCIteratorBinding findIterator (String name) {}

    DCIteratorBinding iter =

    getDCBindingContainer () .findIteratorBinding (name);

    If (iter == null) {}

    throw new IteratorNotFound ("iterator '" + name + "' not found");

    }

    Return to iter;

    }

  • How to get the link to my own question, I asked before!

    I asked 2 days before, but I m not getting issue is not its link and respond accordingly. How do I find that?

    ETA

    Click on your username in the upper right.  You will see three threads.  This is called your profile page.

    You can also click here

  • How to get the print work selection

    I am unable to get select it feel working on Firefox 11.o. I can't click on select printing but nothing prints. Apart from 11.0 to downgrade uninstall, there are patches? I use a mac os x version 10.7.3. Any help would be greatly appreciated.

    This morning, I downloaded the new version and it works now! Yes!
    Thank you for this issue!

  • How to get the data in separetd by commas in a table?

    Hi all

    I need to a function or a procudere for updating the data as below.

    sampale data - these data are already in the table like this format.

    emp table

    -------------------

    EmpName emplocation

    KOR DESTREEZ

    Bangalore DESTREEZ

    DESTREEZ us

    result in db must be like that.

    EmpName emplocation

    DESTREEZ kor, bangalore, us

    Thank you

    Dale

    Hello

    cyb12083 wrote:

    I guess you are looking for something like this:

    SELECT empname, emplocation WITHIN GROUP (ORDER BY emplocation) listagg (emplocation, ',')

    WCP

    GROUP BY empname;

    I guess that's what Ishan suggested for 2 hours before you did.

    What is the point of simply repeat someone else starting from the same thread?

  • How to get the line number in the line itself in the Sql query?

    Hello
    I pick up some lines of a sql query. Is it possible to get line number in each line while all lines are read?

    Like this:

    RowNum data1 data2
    1 abc era
    2 NBH ioi

    Yes.

    ROWNUM

    http://download.Oracle.com/docs/CD/E11882_01/server.112/e17118/pseudocolumns009.htm#SQLRF00255

    select rownum, data1, data2
    from yourtable;
    
  • How to get the line blank if the condition does not match

    Hello..

    I have 2 tables
    create table chk1 (no , nm )
    as select 1,'abc' from dual union all
    select 2,'bcd' from dual union all
    select 3,'cde' from dual
    
    
    create table chk2 (no , nm )
    as select 1,'abc' from dual union all
    select 1,'bca' from dual union all
    select 2,'cde' from dual union all
    select 2,'dce' from dual union all
    select 3,'cde' from dual
    There are 2 rows of chk2 table for each record in the table of chk1.
    Off 2 rows if a line is missing any rank must be printed as a blank line

    I wrote the following query but of no use...
    could you help me in this
    select * from chk1 c1,chk2 c2
    where c1.no=c2.no(+)
    Thank you

    Hello

    You can do this:

    SELECT *
    FROM   chk1 c1,
           (SELECT NO,
                   nm
            FROM   chk2
            UNION ALL
            SELECT   NO,
                     NULL
            FROM     chk2
            GROUP BY NO
            HAVING   COUNT(*) < 2) c2
    WHERE  c1.NO = c2.NO(+)
    
    NO     NM     NO_1     NM_1
    1     abc     1     abc
    1     abc     1     bca
    2     bcd     2     cde
    2     bcd     2     dce
    3     cde     3     cde
    3     cde     3     
    
  • How to get the item currently being processed within the State

    Will there be any environment variable that contains the element, as there are some pages and app?

    I would use it in terms of the element. The condition would be coded in a package and called several times through the elements. The problem now is that I need to pass the name of the element in the parameter of the function.

    Any idea?

    It is not available. We hope to provide this in a future release to allow plans for leave to use a code generic, similar to your goals.

    Scott

  • How to get the number of line of a multi-line string

    It seems that this Panel of string does not provide the tool to get the chain line number,

    Does anyone have the same experience?

    so...

    How to get the line number of a variable string?

    Number of lines

  • How to get the targeted object

    can you tell, how to get the object currently targeted in a class

    for example, if I use the labelfield that has his focus, how to get and make changes to the text of labelfield

    I hope that you can get that I tried 2 say

    Thank you

    Not in a class, screen...

    Features screen with a method called getFieldWithFocus...

    Check it out...

    See you soon...

  • How to get the values of the table of the ADF to bean class?

    Hi all

    My 11.1.1.6 Jdev

    Here I do not use BC ADF in my project.  I'll put values in the ADF table with bean.

    In the table, I put a checkbox. When I selected (Checkbox) a few rows in table and submit. In the submit method, I want to get all the values of line checkbox selected in my bean class.

    How can I get the values. ???

    Here my table UI code

    < af:table var = "row" rowBandingInterval = "0" id = "t1" value = "#{pageFlowScope.BinderSolutionsBean.uiBinderProperties} '"

    styleClass = "AFStretchWidth" emptyText = "no record found".

    Binding = "#{pageFlowScope.BinderSolutionsBean.binderTree}" >

    < af:column sortable = "false" headerText = "Script ID" id = 'c4' >

    < af:panelGroupLayout id = "pgl4" >

    < af:selectBooleanCheckbox id = 'sbc1' > < / af:selectBooleanCheckbox >

    < af:spacer width = "5" / >

    < af:outputText value = "#{row.scenarioId}" id = "ot5" / > "

    < / af:panelGroupLayout >

    < / af:column >

    < af:column sortable = "false" headerText = "Quote ID" id = "c1" >

    < af:outputText value = "#{row.quoteId}" id = "ot4" / > "

    < / af:column >

    < af:column sortable = "false" headerText = "NASP ID" id = "c2" >

    < af:outputText value = "#{row.naspId}" id = "ot2" / > "

    < / af:column >

    < af:column sortable = "false" headerText = "GCH ID" id = 'c3' >

    < af:outputText value = "#{row.gchId}" id = "ot3" / > "

    < / af:column >

    < af:column id = "c6" headerText = "Term" >

    < af:outputText value = "#{row.term}" id = "ot9" / > "

    < / af:column >

    < af:column sortable = "false" headerText = "Status" id = "c5" >

    < af:outputText value = "#{row.status}" id = "ot6" / > "

    < / af:column >

    < / af:table >

    follow some above recommendation such as the creation of additional attribute. You will also need the key in your collection, while making the data for your chart.

    You must write a custom selectionListener. On valueChangeEvent of box, get the key of a line and add the line at the bean.

    Maybe it's little help for you

    https://tompeez.WordPress.com/2012/01/22/jdev-custom-SelectionListener-for-viewobjects-in-rangepaging-mode/

    How to get the selected row in a table no-bind ADF

  • How to get the 6th element of a C.V. value column

    Hi all

    I use Oracle Business Intelligence 11.1.1.7.131017.

    I have a column with the following formula: C.V. ("Tickets". "Number of tickets"), but since we want to only show the values advocated by the past 6 months and which is an accumulative column, we added the rank function in the filter and placed as: grade (C.V. ("Tickets". " Number of tickets')) < = 6 and for the final formula, we need the minimum value that is placed in 6th place...

    My problem is how to get the value assigned to this position?

    Here's the column values:

    30719 (value I pretend-> min)

    31357

    32025

    32595

    33652

    34616 (I also use this value-> max)

    Any idea on how to get the value placed on tier 6?

    Thanks for the help and have a good week.

    Kind regards

    Frederico.

    I found a solution (poor, but it works)...

    As a minimum I want is always located in the row = 6 I put a case when row = 6, then returns the value I'm pretending, else return 0, so after that I need only the max of all values, as they are 0 or the value that I'm pretending, like this:

    MAX (CASE WHEN (GRADE (C.V. ("Tickets". "Number of tickets')) = 6) THEN of C.V. (FILTER ("Tickets"." Number of tickets' using 'status '. ((("" Resolved "="Resolvido")) END ELSE 0)

    I want to thank you all for the help, normally I post in the forum of the ADF but its good to know I can get a lot of support here as well...

    Many thanks to all,

    Frederico.

Maybe you are looking for

  • HP Envy 4520: Cancel/find network how hidden name?

    Hello I have trouble trying to connect my Macbook Pro in direct wifi hidden from the HP Envy 4520.  I was a fool to put on to hide the name of the network through a web server built when I thought it was to hide direct wifi of my printer to another p

  • SM bus and USB drivers for HP Pavilion DV6 6024TX controller

    I just had to do a clean install of Windows 7 Ultimate 64 bit on my HP Pavilion DV6 6024TX laptop. I installed all the recommended and optional Windows updates and everything works * except * the SM Bus controller and USB controller - which are both

  • Inspiron 9400 video card

    I have just discovered that I can not upgrade to Windows 10 because the video card won't support it. Can I replace the video card with one that will allow Windows to install 10?

  • BlackBerry Smartphones are unable to schedule call BB9700 OS-6

    I upgraded my 9700 to OS-6 OS - 5. When I was on OS - 5 and on a call I could press Menu and scroll through the list until I got to the calendar, click on and he opened the calendar so I could check appointments while still in a call, it was quite ha

  • Audit Vault 12 c without OS install

    HelloIs it possible to install Oracle Audit Vault 12 c as a stand-alone software must be installed in any system OEL existing as previous versions?Everywhere I see AVDF installation with an operating system.Good guide to want if there are of these wa