Using 'For Each' Method in re-usable ADF library application

I'm trying to build a re-usable RSS library application from the following (using JDev Studio Edition Version 11.1.1.4.0 on Windows 2008 Server):
http://blogs.oracle.com/dana/entry/reusable_adf_library_rssfeedre
I'm bascially creating the application from scratch, but I run into problems when trying to drag and drop the 'output text' data controls into the jsff page fragment. The instructions say that "For Each" iterator was used as the operation to iterate through these fields but I don't see For Each appearing as any option for the Operations anywhere in the data controls. The only options i see are CREATE, DELETE, EXECUTE, FIRST, LAST, NEXT, PREVIOUS, RemoveRowWithKey, SetRowWithKey, SetCurrentRowWithKey. After droppipng the data controls and going to the 'Bindings', i can't see options for using For Each either.
Can anyone please tell me how to add the For Each method as per the above instructions? Thank you!

<af:forEach> will be sufficient for most user's needs, it does not work with a JSF DataModel, or CollectionModel. It also cannot be bound to EL expressions that use component-managed EL variables..
http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_forEach.html.
if you want to iterate then you have to use the programatic iteration using the rowSetIterator

Similar Messages

  • Use for each operation

    how can I use for each operation in jdeveloper 11.1.1.5.0 in adf fusion web application to show images stored in database?

    How are the images stored in the database?
    If it has the path - create the VO and show the images using foreach by creating a tree/table binding in the pageDef as follows:
    <af:forEach items="#{bindings.BillToStateLOV.rangeSet}" var="item">
    <af:image id="si9" source="#{item.src}"/>
    </af:forEach>
    If the images are stored as BLOBS, take the approach as mentioned in the blog post:
    http://baigsorcl.blogspot.com/2010/09/store-images-in-blob-in-oracle-adf.html
    Thanks,
    Navaneeth

  • How to use For-Each Structure with Multiple node XML structure

    Hi,
      How to use for-each (BPEL 2.0) construct for Multinode XML structure.
    Here is the easy case: I have list of suppliers specified by supplier
    <supplierList>
    <supplier>1</supplier>
    <supplier>2</supplier>
    <supplier>3</supplier>
    </supplierList>
    Now there is a web service http://hostname/getsupplierdetails/wsdl which accepts one supplier at a time.
    like
    <supplier>1</supplier>
    reponse object is
    <message> notfound/found </message>
    But how can I use for each of XML node to call this service and collect the result like
    <supplierList1>
         <Suppinfo>
            <supplier>1</supplier>
            <message> not found</message>
    </suppinfo>
        <suppinfo>
            <supplier>1</supplier>
            <message> not found</message>
    </suppinfo>
    </supplierlist1>
    Thanks

    For looping you use foreach loop and , loop for the number of occurences and when constructing response, adding a new element you have to use bpelx:append.  Good sample at Enterprise Integration: Oracle SOA Suite 11g: Populating a list or an array in BPEL without using XSLT.

  • How to use 'for-each' in transform

    Hi
    I have created a BPEL process which transforms '.csv' to '.xml'
    The input .csv looks like this
    1,09042008,1263,80019.5,HC_D
    2,01011030,J100246,00051779J1002460903,30032008,46.20,LUTON PRIME
    3,01011030,SE1320/4431,46.20,00051779Payment,0.00,2
    2,01011030,J100246,00051779J1002461603,30032008,46.20,LUTON PRIME
    3,01011030,SE1320/4431,46.20,00051779Payment,0.00,2
    2,01011030,J100246,00051779J1002462303,30032008,46.20,LUTON PRIME
    3,01011030,SE1320/4431,46.20,00051779Payment,0.00,2
    so the line which starts with '1' is the header
    the line which starts with '2' is the voucher
    the line which starts with '3' is the detail
    and the input.xsd file looks like this
    <xsd:element name="Root-Element">
    <xsd:complexType>
    <xsd:choice minOccurs="1" maxOccurs="unbounded" nxsd:choiceCondition="terminated" nxsd:terminatedBy=",">
    <xsd:element name="Header" nxsd:conditionValue="1">
    <xsd:complexType>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="Voucher" nxsd:conditionValue="2">
    <xsd:complexType>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="Detail" nxsd:conditionValue="3">
    <xsd:complexType>
    </xsd:complexType>
    </xsd:element>
    </xsd:choice>
    </xsd:complexType>
    </xsd:element>
    I am facing problem when I use transform activity and transform this input .csv to .xml file having i/p and o/p xsd as same type of xsds.
    Using for-each on Root-element copies the entire i/p and using for-each on Individual elements does loop individually.
    Can anyone please help me
    thanks
    Iswarya

    Hi,
    Can you explain in detail, where exactly your stucked?
    Umesh

  • How to use For Each execution in OSB

    hi all,
    I'm confused about the 'For Each' action in OSB. Now, I have a variable('max') which equals to 3 , and I wanna to use For Each action to perform a loop execution, something like for(1 to 3)--
    The code is like below:
    For Each variable 'value' of variable 'max' ,
    Do{
    Assign value to variable tempMsg;
    Service Callout to PS with tempMsg
    What I think is the 'value' should be increased from 1 to 3 itself, and the service callout should be performed by 3 times with '1', '2', '3'. However, it's not, the service callout action was performed once with the value of 3, just like the 1 and 2 were overwritten.
    Any idea?

    Using 'For Each' activity in OSB
    Thanks,
    Vijay

  • After reopening Firefox does not remember which desktop was used for each window. Can you help, please.

    I'm using two displays and several desktops on my Mac (OS X 10.9.4).
    When I need to restart Firefox, it remembers to open windows from last session in correct display, but does not remember which desktop was used for each window. So when the application starts, it opens all windows on a desktop which is currently active instead of reopening them on desktops used during the last session. How to fix the issue?

    Hi Nerva,
    Thank you for your question, there is a add on I have been recommended to custom set up of opening windows in new monitors. It's called [https://addons.mozilla.org/en-US/firefox/addon/monitor-master/ Monitor Master].
    However, in regards to the session remembering which monitor the window was open in, in the profile folder there is a file that stores window positions and dimensions. It is called localstore.rdf.
    Please stay tuned for more investigation, as there are definitely bugs on file for similar issues. Pinpointing it is the hard part.

  • All my files just disappeared from my pages and numbers apps on my mini iPad. Under Usage, both still show 350 MBs used for each. Ideas?

    all my files just disappeared from my pages and numbers apps on my mini iPad. Under Usage, both still show 350+MBs used for each. Ideas?

    Hello r253,
    The following troubleshooting steps can help get your documents to reappear on your devices.
    Documents I've updated on my Mac or uploaded from iCloud.com don't appear on my iOS device
    If you're using an iWork for iOS app (Pages, Numbers, or Keynote), check the iCloud system requirements and make sure that you're using the latest version of iWork. For third party apps, check the documentation that came with the app, or check with the app developer to make sure the app supports iCloud. App Store application descriptions often indicate whether the app supports iCloud.
    Go to Apple () menu > System Preferences on your Mac. Click iCloud and confirm that you're signed in to iCloud and the Documents & Data checkbox is selected.
    After opening your iOS app, wait a few minutes for the documents to appear. Your iOS device may not have connected to iCloud since changes were made to the document at iCloud.com or on your other devices.
    Try creating a new document on your iOS device, then check again for the documents from iCloud to appear.
    Go to Settings > iCloud > Documents & Data and confirm that Use Cellular Data is turned on.
    Confirm that you're connected to the Internet by checking for an Edge, 3G, 4G, LTE, or Wi-Fi icon in your device's status bar. Test your connection by opening apple.com in Safari.
    Try resetting iCloud Documents & Data service.
    iCloud: Troubleshooting Documents in the Cloud
    http://support.apple.com/kb/TS3991
    Cheers,
    Allen

  • How to use for each loop in XSLT when my source is a multilayout file and db

    How do I use a for each loop in XSLT when my source is multilayout file and db .
    My multilayout file is basically contain 2 kind of data one for employee and another for dependent.
    Now my requirement is I want to read each line of data whether it is it is employee or dependent do a join with db and write it in my target file.
    eg :  File content
    1 RichaKumari 311289 TCS INDIA
    2 KiarnKumar 456782 BRO RichaKumari 311289 INDIA
    2 Ravi            456882 BRO RichaKumari 311289 INDIA
    eg : db Content
    311289 RichaKumari TCS INDIA Bangalore [email protected]
    Now in Final File I need something like this :
    1 RichaKumari 311289 TCS INDIA
    2 KiarnKumar RichaKumari 311289 TCS INDIA
    2 Ravi            RichaKumari 311289 TCS INDIA
    here 1 and 2 are the identifier which will decide which layout to follow .

    Hi,
    I think you'll need two nested for-each's... Something like...
    <xsl:for-each select="$root/row[layout = 1]">
    <xsl:variable name="employee" select="."/>
    ... write employee ...
    <xsl:for-each select="$root/row[layout = 2 and dependentid = $employee/id]">
    ... write dependent ...
    </xsl:for-each>
    </xsl:for-each>
    Cheers,
    Vlad

  • Loading accdb file using for each loop in to single target table

    I have 3 accdb file as below in single folder, in control flow I have created a for each loop to loop through all the below file.  In dataflow task I have created oledb source using connection manager to point to first file a1.accdb. I am trying
    to load all the file into single below mentioned target table, here It is only loading first file it is not looping through other two file.
    This I have tried to load .txt files and csv files it is working perfectly but similarly when I try to load access db file table it is not working, can any one of you help me?
    1. a1.accdb contains only one table  a1tab ( col1 col2 col3 )  
    2. a2.accdb  contains only one table  a2tab  ( col1 col2 col3 )
    3. a3.accdb  contains only one table  a3tab   ( col1 col2 col3 )
    I have a target table with similar structure as source
    Target table <TargetTable> Col1 Col2 Col3
    aak

    Thanks Arthur, please find below response
    How do you handle the different table names?  Cant we handle it in a similar manner, how we handle the .csv/.txt files with different name and similar structure for sources(multiple files) and target (single table)
    Is it good to drop the idea of for each loop and create a separate task for each accdb file? to be loaded to same target table( performance wise etc.. any justification would be helpful)
    You must handle the connection string dynamically?
    Can you help me with the logic for handling connection string dynamically
    aak

  • SP 2013 Client Object Model: What credentials to use for Office 365 and sites behind ADFS 3.0?

    I'm using the SharePoint 2013 Client Object Model to access a site that is either in Office 365 or behind an ADFS 3.0 login screen, is it sufficient to use the new SharePointOnlineCredentials credentials
    or do I need other types of credentials for the sites behind ADFS 3.0 ? Is so, what type of credentials would I use for the sites behind ADFS 3.0?
    using (ClientContext ctx = new ClientContext(siteUrl))
    ctx.Credentials = new SharePointOnlineCredentials("some user", "a secure string password");
    while (ctx.HasPendingRequest)
    ctx.ExecuteQuery();
    // etc.

    Hi,
    According to your post, my understanding is that you want to know the ways to get credential either in Office 365 or sites behind ADFS 3.0.
    For Office 365, you can use SharePointOnlineCredentials Object to get credential. For SharePoint sites behind ADFS 3.0, you can use NetworkCredential Object:
    ctx.Credentials = new NetworkCredential(UserName, Password, Domain); 
    The link below will provide more information about using the ADFS FedAuth Token programmatically through the SharePoint Client Object Model:
    http://samirvaidya.blogspot.com/2013/05/using-adfs-fedauth-token.html
    Best regards
    Patrick Liang
    TechNet Community Support

  • Using for-each for input into a database adapter

    As input to a Web service I have an XSD that has parent elements and two unbounded child elements. I want to use XSLT to loop through the child elements to include them as comma separated strings for use in an IN clause in the query of the database adapter. I have the following XSLT in the input to database adapter XSL:
    <db:child_elements>
      <xsl:attribute name="xsi:nil">
        <xsl:value-of select="/inp1:path/inp1:to/inp1:child_elements/@xsi:nil"/>
      </xsl:attribute>
      <xsl:for-each select="/inp1:path/inp1:to/inp1:child_elements/inpl:child_elements">
        <xsl:value-of select="."/>
        <xsl:if test="position() != last()">
          <xsl:text>,</xsl:text>
        </xsl:if>
      </xsl:for-each>
    </db:child_elements>I am getting three error:
    1) Error: Invalid Usage of <for-each> Element
    2) Error: Invalid Usage of <if> Element
    3) Error: This node is already mapped, repeating nodes not supported : "/db:databaseAdapterInput/db:child_elements"
    Any idea of what the problem is here? Are for-each loops and if statements simply not allowed in Oracle SOA Suite? Thanks in advance!

    For SQL Server 2005+ you can use the OUTPUT clause. E.g.
    DECLARE @Source TABLE ( ID INT, Payload INT );
    DECLARE @Destination TABLE
    ID INT IDENTITY ,
    Payload INT
    DECLARE @IdentityValues TABLE ( ID INT );
    INSERT INTO @Source
    VALUES ( 1, 1 ),
    ( 2, 2 ),
    ( 3, 3 );
    INSERT INTO @Destination
    ( Payload )
    VALUES ( 0 );
    INSERT INTO @Destination
    ( Payload )
    OUTPUT INSERTED.ID
    INTO @IdentityValues
    SELECT S.Payload
    FROM @Source S;
    SELECT D.ID ,
    D.Payload
    FROM @Destination D;
    SELECT IV.ID
    FROM @IdentityValues IV;

  • Currently, I have 5 iPads used for the same purpose. Since similar data /application is shared among all of them, is it alright for me "Backup" only 1 iPad. And in which case, if anything happens to any of the other iPads I can still recover the data

    Currently, I have 5 iPads used for the same purpose. Since the same data /application is shared among all of these iPads, is it alright for me "Backup" only 1 iPad instead of all 5?  And if anything happens to any my iPads which I have not backed up, I can restore it from the iPad where I have save the Backup. I am hoping by doing so, I will also be able to save some icloud storage space. Let me know if my question is still not so clear to you guys.  Thanks.

    Hello PeachY1234,
    If I understand correctly you'd like to save iCloud storage space by only backing up 1 of the 5 iPads to your account since they are all going to have very similar data and usage. You certainly can do that, but I do have to warn you that any unique data between them would be lost if you had to restore from that one backup made on another iPad so just keep that in mind. If you do need to restore in the future you can use this article to restore that iCloud backup:
    iCloud: Restore or set up your iOS device from iCloud
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • Mathematics calculation in Webi Report using "For Each"

    Hi All,
    I am using BOXI R3.0, I am stuck in webi calculation for one report report tab. I have 2 tab in one report, one is summary and other is Detail in same report. In Detail tab the data looks like as below:
    DataSet 1:
    DNo.-Date-Hours-Vol-Pri---Tot(Vol*Pri)
    10 -1/12- 01:00---10 ---10 ---100
    10 -1/12- 02:00---20 ---50 ---1000
    10 -1/12- 03:00---30 ---30 ---900
    Sum: 2000
    Now the above is my detail reprot which gave me data by hour, now in summary i removed the hour column then data looks like below:
    Dataset 2:
    DNo.-Date-Vol----Tot(Vol*Pri)
    10 -1/12- 60 -
    1800
    This is because "Vol" measure is sum in universe and Pri is Average.
    This gave me wrong data so How i calculate Tot for Sumarry tab such that it will give me below result.
    Dataset:
    DNo.-Date-Vol---Tot(Vol*Pri)
    10 -1/12- 60 ---2000
    Thanks for the help in advance.
    Thanks,
    Nimesh.

    Hi Nimesh,
    I think you need to wrap a sum around the function and use an input context.
    =(Sum([Pri] In ([DNo]; [Date]; [Year])))*[Vol]
    This will sum the average values down at the year level and multiply it by vol, even though year is not on the table.
    Let me know how you get on
    Regards
    Alan

  • Is it possible to specify which cpu to be used for each session ?

    hi ,
    like to check if in Oracle , is there any hints to specify the CPU to be used assuming the server have > 1 ?
    pls advise
    rgds

    We may say the degree of parallelism for a query instead - http://download.oracle.com/docs/cd/B19306_01/server.102/b14223/usingpe.htm#i1009828
    SELECT /*+ parallel(tab,4) */ ....
    Best regards.

  • For Each example using XSLT in BPEL

    I need a sample How to use For Each in BPEL using XSLT. Like I am getting an array and need to iterate the target XSD accordingly.
    Thanks

    start reading this:
    http://www.w3schools.com/xsl/xsl_for_each.asp
    after that read this:
    http://download.oracle.com/docs/cd/E21764_01/integration.1111/e10224/bp_xslt_mpr.htm#BABGJIGI
    Regards,
    Melvin

Maybe you are looking for