AF:iterator and get the values of a particular line

Hello

I use af:iterator to browse a set of results in the original Version.

< af:iterator binding = "#{backingBeanScope.backing_subscribe.i1} '"
value = "#{bindings." SubscriptionPublicView1.collectionModel}.
var = "row".
ID = "i1" >

At each iteration, I display a row of data since my VO in a box.

Each box has a Link command.

In general, the bean of my support, I do something like this to get an iterator attribute out of sight.

Line currentRow = getIterator("SubscriptionPublicView1Iterator").getCurrentRow ();
int sid = (Integer) currentRow.getAttribute ("Sid");


However, in this case, I always get the "sid" from the first record in the collectionModel and not the "sid" which corresponds to the commandLink selected by the user.

What is the best way to do when using an af:iterator?

Thank you

Joel

Joel,
Take a look at this video: http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/classic_api_mistakes_part2/classic_api_mistakes_part2.html
In there, Frank shows how to use af:iterator and af:forEach and to avoid warnings.

It seems that you do not set the current line, so that you always get the value of the first row.

Timo

Tags: Java

Similar Questions

  • Set and get the value of the item application in Javascript

    Hello guys,.
    Can you tell me an example how to set and get the value of the application element in Javascript, and how do I check if the value of the point of application is null in Javascript, too. I have read a few replies, but nothing worked (e.g. $x (app_item), $v (app_item), $s (app_item) and so on).

    Thanks in advance!

    To get the value of an element, use the following syntax:

      alert("The value of MY_TEST_ITEM is " + $x("MY_TEST_ITEM").value);
    

    to set the value that you have just made

      $x("MY_TEST_ITEM").value="Set to this value";
    

    Keep in mind however that you need to send the page in order so that he could be picked up by APEX - javascript is CLIENT SIDE, ONLY! Either that or use AJAX to put on the side server.

  • How to get the value of a particular tag to a column (clob)

    Hi friends,

    How to get the value of a particular tag to a column (clob), which has an XML value?

    Thanks in advance.

    Kind regards
    Sirot Chauvet

    You are welcome, if you got your answer to the question as such brand

  • compare a value to the range of values in the table and get the value of corr

    Hi all

    I'm a begineer and glued at one point.
    I have a table that has 2 fields
    number of days and the number of cards with values such as:

    number of days number of cards 20 1

    40 2
    60 3
    I have a SELECT query that returns the number of days, I need to get the number of cards based on the number of days.
    As if the select returns 30 I should get 1 as the number of cards, if select returns 48 I should get 2 and so on.

    Please help me

    Thanks and greetings
    SELECT MAX(num_of_cards)
    FROM   your_table
    WHERE  num_of_days <= X
    
  • Set and get the value of indicator of ActionScript

    Hello

    I have an Actionscript class

    the util package
    {

    public class flag
    {
    public var viewNamesample:String;
    public function getFlagvalue (): String {}
    Return viewNamesample;
    }

    }
    }

    In one of my MXML file I do this use of above Actionscript class and defining its value as

    < mx:script >
    public var flag: flag = new Flag();

    If()
    flag.viewNamesample = "A";

    on the other
    flag.viewNamesample = "Two";

    < / mx:script >

    How can I access this value of flag.viewNamesample in my MXML another file?

    Please tell me.

    It is difficult to know exactly what you are trying to achieve, but maybe it will be you point in the right direction



    http://www.Adobe.com/2006/mxml '.
    Layout = "vertical".
    verticalAlign = "top".
    "backgroundColor ="white"xmlns:local =" * ">
       
       
            [Bindable]
    public var flag: flag = new Flag();

    protected function button1_clickHandler(event:MouseEvent):void
    {
    flag.viewNamesample = "A";
    }
               
    protected function button2_clickHandler(event:MouseEvent):void
    {
    flag.viewNamesample = "Two";
    }

    ]]>
       
       
       
           
           
           
       

       

    package
    {
    public class flag
    {
    [Bindable]
    public var viewNamesample:String;
           
    public function getFlagvalue (): String {}
    Return viewNamesample;
    }
           
           
    }
    }


    http://www.Adobe.com/2006/mxml">
       
       
            [Bindable]
    public var flag: String;
    ]]>
       

       
       
       

  • How to get the value of a particular column column name?

    Hi all

    How to get the column name for a particular column value.
    example:

    create table test (ID number, col2, col3 varchar varchar);

    Insert into test values (1, 'true', 'false');
    Insert into test values (2, 'false', 'true');
    commit;

    I want to choose the name of the data column 'true' with id = 1;

    That is to say) while waiting for answer is "col2". pls help someone.

    This might help:

    DECLARE
       c1 SYS_REFCURSOR;
    BEGIN
       OPEN c1 FOR
       SELECT col2,
              col3
       FROM   test
       WHERE  id = 1;
       --
       FOR c IN (SELECT rownum rn,
                        t2.column_value.getrootelement() name,
                        EXTRACTVALUE(t2.column_value, 'node()') value
                   FROM TABLE(XMLSEQUENCE(c1)) t,
                        TABLE(XMLSEQUENCE(EXTRACT(column_value, '/ROW/node()'))) t2)
       LOOP
          IF c.value = 'true' THEN
             DBMS_OUTPUT.PUT_LINE(c.name);
          END IF;
       END LOOP;
    END;
    
  • How to get the values in a single line, without the help of the union

    Hello

    I have a table with the structure and the following data

    EmpID address phoneno emailid
    1001 xyz
    1001 1234234
    1001 [email protected]
    1002 23434
    1002 [email protected]
    1003 abcd
    1003 [email protected]
    1004 [email protected]



    I need to get a result in this format.


    EMP id address phoneno emailid
    1001 xyz 1234234 [email protected]
    1002 23434 [email protected]
    1003 abcd [email protected]
    1004 [email protected]


    I can do this by using the union, but who gives a performance of questions with a large table. I want to do it using any other way using lead or something, but with the relative to data complexity, I couldn't do it.

    Can someone help me please?


    Natarajan

    Published by: Nikita on December 3, 2009 15:50
    Select employee_id, max(address), max(phone), max(email)
    from emp
    group by employee_id;
    

    Max

  • Get and set the value to allow selected rolling Shuffle and facing page

    Hello world

    I work with the page and spread,

    For now, I want to value page spead shuffle and type of document.

    but I just find the function to get and set the value for the Document Pages allow Shuffle using the

    InterfacePtr < IPageLayoutPrefs > iPageLayoutPrefs (static_cast < IPageLayoutPrefs * > (: QueryPreferences (IID_IPAGELAYOUTPREFERENCES, iDocument)))

    It has no function to set and get the value of enable selected rolling Shuffle and facing page

    No one knows about it?

    I thank in advance

    There is no code for this example in the SDK or internet. Just understand and apply the concept.

    Find the code for the shuffle spread and together following spread shuffle...

    // Get active spread
    UIDRef GetActiveSpread() {
        UIDRef spreadRef = UIDRef::gNull;
    
        InterfacePtr layoutData(Utils()->QueryFrontLayoutData());
        if(layoutData) {
      spreadRef = layoutData->GetSpreadRef();
      }
    
      return spreadRef;
    }
    
    // Get spread shuffle of passed in spread
    bool16 GetSpreadShuffle(UIDRef& spreadRef) {
        InterfacePtr spread(spreadRef, UseDefaultIID());
        if(!spread)
      return kFalse;
    
      InterfacePtr iBoolData(spread, IID_IISLANDSPREAD);
        if(iBoolData) {
            return iBoolData->GetBool();
        }
    
        return kFalse;
    }
    
    // Set spread shuffle of passed in spread
    // @param bValue: kTrue = no shuffle, kFalse = allow shuffle
    ErrorCode SetSpreadShuffle(UIDRef spreadRef, bool16 bValue) {
        ErrorCode status = kFailure;
    
        InterfacePtr spreadCmd(CmdUtils::CreateCommand(kSetIslandSpreadCmdBoss));
        if(!spreadCmd)
            return status;
    
        spreadCmd->SetItemList(UIDList(spreadRef));
    
        InterfacePtr iBoolData(spreadCmd, UseDefaultIID());
        if(iBoolData) {
            iBoolData->Set(bValue);
        }
    
        status = CmdUtils::ProcessCommand(spreadCmd);
        return status;
    }
    
  • Get the value of the field notes.

    Hi all

    I just started with powercli.

    I want to set and get the value of the field notes.

    Put in it, is done by, virtual Set-machine - VM "Name VM" - Description "text1 text2 etc." - confirm: $false

    But how to get the value of the field notes? I it could be done like: Get-VM-name 'VM ' | Get-Annotation CustomAttribute - Description

    However, I get an error:

    Get-Annotation: 08/07/2012 11:11:28 Get Annotation found Cu

    stomAttribute with the name "Description".
    On line: 1 char: 44
    + Get - Vm "klj - bastionhost | Get-Annotation < < < <-CustomAttribute description
    n
    + CategoryInfo: ObjectNotFound: (Description: String) [Get-annotated
    tion], VimException
    + FullyQualifiedErrorId: Core_ObnSelector_SelectObjectByNameCore_ObjectNo
    tFound, VMware.VimAutomation.ViCore.Cmdlets.Commands.GetAnnotation

    kim look

    You can get the field notes VM with:

    Get - VM | Select-Object - Property Name, Description

  • How to get the value of messageStyledText that is present in the other RN

    Hello

    I have xxcompscore messageStyledText in the region 1 (separate controller) and xxobjscore messageStyledText in the region.2 (separate controller).

    The two values are doubles.

    My requirement is to get that value from another region (layout) and adds that the values and display in the RN.

    How to do this, I tried a lot but I get error NullPointerException.

    HI San,

    According to my understanding, you have the following requirement.

    xxcompscore messageStyledText in the region1 (separate controller) - Say controller is XxxRN1CO
    xxobjscore messageStyledText in region.2 (separate controller). -The controller is XxxRN2CO
    Page Layout RN - Say controller is XxxPageLayoutRNCO

    If you try to get the value of the region1 - PR Noire2 and display in Pagelayout cannot be achieved by the way you write the code...
    What follows is drawn sequence of the controller...
    1 XxxPageLayoutRNCO--> processRequest
    XxxRN1CO--> processRequest
    XxxRN2CO--> processRequest

    XxxRN2CO--> processFormRequest
    XxxRN1CO--> processFormRequest
    XxxPageLayoutRNCO--> processFormRequest

    So you can't get the session values configured in XxxRN1CO--> processRequest or XxxRN2CO--> processRequest in XxxPageLayoutRNCO--> processRequest.

    You need to take the following approach to get these values.

    -> If the underlying VO for the region1/region.2 is executed in PageLayout controller or controller of the region1
    then you can get the required values of the underlying attributes of your calculation VO do and set the value of TotalScoreText
    on the other
    If executed in the level controller VO region then you will need to run these vo also in pageLayout controller and
    get the values of the attributes of VO and do your math and set the value to TotalScoreText

    Let me know if you need assistance.

    Kind regards
    RAM

  • RandomGen elements, case structure nothing if it's false, while the loop passes iterations, can not get the values in table outside the structure of the case

    Hello!

    I tried to build a trigger that triggers a true value each 1000 milliseconds (from the first real);

    which real command structure box to a value of the randomNrGen of the sample and place it in a table.

    but I would like to USE this table and I can't do this beacause I can not get out of the structure of the case.

    AND:

    the while loop ignores samples; If you run the vi and look at the speed at which the table fills, ypu notice it is not periodic: the first few items are inserted at 1 second interval, but then it jumps one;

    would it be because of the wait time 1ms?

    1. How can I create a structure that does this:

    If set to True, it samples a value from Genesis at random and places it in the table

    OTHERWISE, it does NOTHING, without zeros sent to the table just waiting for the next true and only the values sampled at True remain in the table?

    2. How can I stop it pop samples (multiples of 1000 in my case)?

    In conclusion: I need to be able to take samples on the sample generator and store them in an array of 3d in a zig - zag (1.jpg) way, but able to think about it, we need to go beyond these two questions.

    Please ignore the meter.

    Please help me!

    TibiG wrote:

    Thanks, Crossrulz!

    This did not omit all values and it works fine.

    Is it possible to get information in a case without making use of the large loop?

    My program will become very complex (I need to synchronize a magnetometer and a stepper motor to make a 3d map of the magnetic field of the magnet) and I want to do everything as simple as possible.

    If there is a way to get information about a case structure, other tnan using registers with shift on the big loop, and you know it, please show me.

    Thank you!

    You could also use a Feedback node, just keep it out of the structure of the case.

  • How to get the value of the property and the hierarchy specified in a global property, by javascripts

    Hi DRM team:

    I want to get a property value and precise when the hierarchy from. So, I thought that LocalNodeObjects method GetReferenceInHier (hierAbbrev), but the question is coming, I'm working on a global property, node. GetReferenceInHier (hierAbbrev) is not available. How can I get the value of the specified node hierarchy?

    Thanks for any response.

    Jim

    Hi Jim.cyciopes

    Try this-

    var worm is node. Version;

    var hier_ref = worm. HierByAbbrev ("name of your hierarchy");

    var node_ref is hier_ref. NodeByAbbrev (node. ABBREV);

    {if(node_ref!=null)}

    var propval is node_ref. VarValeurProp ("YourPropertyName");

    }

    Return propval;

    Thank you

    Denzz

  • [JDev12c, ADF] How to get the value of a field from the selected line in af:table and...

    Hallo,

    I want to double click on a line of an af:table to call a page that displays a form (based on a View object) with the details of the selected line.

    I need to go to the second page the value of a field on the line that is selected on the first page.

    How can I do this? In particular, how can I get the value of a field from the selected line? How can I call the second page on double-click on the af line: table?

    Thank you

    F.

    Why would user, you need to pass a value of the line to the shape?

    The framework selects the line you want to display in the form. All you have to do is to show the form with the selected line. It is the framework automatically as long as you use e vo even the same data control.

    Timo

    Post edited by: Timo Hahn
    And the handling double-clicks is described here http://www.oracle.com/technetwork/developer-tools/adf/learnmore/56-handle-doubleclick-in-table-170924.pdf

  • How to get the value of the outputtext in javascript and send it to backing bean

    Hi Experts ADF,

    JDev Version 11.1.1.7.0

    I have the following: the value of the outputtext must be treated in javascript and the serverlistener method has the same value. I founded this value returns a string that wshould see the mouseover NIJ.

    Help, please. Thanks in advance.

    < af:column sortProperty = "#{bindings." OrderProposalReadClient.hints.exceptions.name}.

    filterable = "true" sortable = "true".

    headerText = "#{suiviewBundle.EXCEPTIONS} '"

    ID = "c16" >

    < af:outputText value = "#{row.exceptions}" id = "ot32" clientComponent = "true" > "

    < af:clientListener type = "mouseOver".

    method = "customJsFunction" / >

    < af:serverListener type = "mycustomserverEvent".

    Method="#{pageFlowScope.ChangeOrderProposalBean.handleServerEvent}"/ >

    < / af:outputText >

    < / af:column >

    JavaScript

    < af:resource type = "javascript" >

    var customJsFunction = function (event)

    {

    var exceptiondata = AdfPage.PAGE.findComponentByAbsoluteId ('ot32');

    AdfCustomEvent.queue ();

    Returns true;

    }

    < / af:resource >

    BackingBean

    public String handleServerEvent(EC ClientEvent)

    {

    Please let me know how to get the value that javascript code sends here.

    Let's say javascript sends the value of outputtext as "001".

    So, I have to check "001" in my list and return a value that appears on mouseover.

    }

    Kind regards
    Roy

    Hello, Roy.

    To use the value on another component of the user interface, I shows an example:

    -code of the page

    shortDesc = "shortDesc" >

    method = "customJsFunction" / >


    -the javascript code

    var customJsFunction = function (event)

    {

    var exceptiondata = event.getSource ().findComponent("ot32").getValue ();

    AdfCustomEvent.queue (event.getSource (),

    "mycustomserverEvent,"

    {param1:exceptiondata},

    (true);

    Returns true;

    }

    -OutputTextCase11.java

    public void handleServerEvent (EC ClientEvent)

    {

    String param = (String) ce.getParameters () .get ("param1");

    RichOutputText outputText = (RichOutputText) ce.getComponent () .findComponent ("ot1");

    outputText.setShortDesc (param);

    outputText.setValue (param);

    AdfFacesContext.getCurrentInstance () .addPartialTarget (outputText);

    }

    I hope this helps you.

    RFH.

  • Starting from two data tables, how do you get the values in two columns using values in a column (values get col. If col. A is not null values and get the pass. B if col. A is null)?

    Two tables provided, how you retrieve the values in two columns using values in a column (the pass get values. If col. A is not null values and get the pass. B if col. A is null)?

    Guessing

    Select nvl (x.col_a, y.col_b) the_column

    from table_1 x,.

    table_2 y

    where x.pk = y.pk

    Concerning

    Etbin

Maybe you are looking for

  • Low soundlevel using bluetoothspeaker

    Hello. Problem occurs when I use bluetooth in my iPhone 6 to connect to a speaker. Soundlevel is so low I have bearly here at all! When I connect my iPhone normally wired it sounds good. Where can I adjust the soundlevel?

  • How to hide icons in the Bookmark Bar to conserve space?

    You want to maximize the use of space of the bookmarks bar. Y at - it an option to view only the text and hide icons in the BB? When the screen real estate is at a premium, even on a 17 "in 1920 x 1200 laptop, that would be helpful. My apologies if t

  • Satellite A80 - a few questions about system restore

    Hello world I had a satellite A80, but I got no recovery disk, so my questions are the following: 1: How to get this drive?2: is it possible that this drive is hidden somewhere on my computer (hidden partition)3: How to restore the system? Thanks & r

  • 7610: print envelope A10 from one Android device on printer Officejet 7610

    HP Printing Service decision-making in available on Google Android game seems to settle and open normally. The printer is a wireless HP Officejet 7610 large Format printer. After an address in Word (on Android) and or Google Docs, try to print an A10

  • 800 Microsoft wireless keyboard and mouse

    I have Windows 7 Pro OS. When I tried to install drivers and software after downloading from the Microsoft Web site, I got a "system error is not compatible, please check the system requirements" even if this device box comes indicates Windows 7 as o