Can you loop through a collection of entites to read a given attribute?

I got an entity called <b>the applicant</b>. and this entity has an attribute called <b>the full name of the applicant</b>.
I want to go through the collection of <b>the applicants</b> and get the <b>full name</b> for each applicant and assign it to a text variable with comma seperated. Is it possible to do this in OPA?
this is what i want to do
<b>"the names" </b>is the variable that I want to store the list of names
read the collection of applicants
the names = the concatenation of the names & " " & the full name of the applicant & ","
end
so it will give me an output like <b>James Blunt, David Brown, Julia Guilard</b>
Edited by: Davin Fifield on Oct 16, 2011 10:57 PM - removed inappropriate "moderation" edit

Wow harsh moderation there by rukbat! I don't know who he/she is but I apologise and assure you most people on this forum are not so mean.
To answer your question, there's no built-in way to do what you want. Normally displaying something like this would be considered an application problem rather than a rule-level problem, however if you really want it done in a rule, you could do it with a custom function.

Similar Messages

  • How to loop through a collection of records which is return value of func.

    Hi all.
    Have this situation:
    - Stored function (member of pkg procedure) that returns a collection of records.
    Package Spec:
    =========
    type tipo_pvt is table of s08_plan_venta_totalizado_r % rowtype;
    rc_pvt tipo_pvt;
    (s08_plan_venta_totalizado_r is a view).
    Package Body:
    =========
    select col1
    ,col2
    ,etc
    bulk collect into rc_pvt
    from s08_lista_precio_producto_r lpp
    ,s03_producto_r prd
    where condition;
    return rc_pvt;
    Once collection is loaded and returned (i know it loads records). I just want to loop through every record on a pl/sql procedure on the client (forms6i procedure), but it gives me the error: ORA-06531 Reference to uninitialized collection:
    On the forms6i client procedure i have something like:
    procedure p_carga_plan_venta_inv (p_id_plan_venta in number) is
    v_contador integer;
    v_mensaje varchar2(10);
    rc_pvt sk08_gestiona_plan_venta.tipo_pvt; (sk08_gestiona_plan_venta is package name)
    begin
         rc_pvt := sk08_gestiona_plan_venta.tipo_pvt();
         rc_pvt := sk08_gestiona_plan_venta.f_genera_plan_venta_inv (:pvv.lip_id_lista_precio
    ,:pvv.ems_id_sucursal
                                            ,:control4.v_metodo_calculo
    ,:pvv.unm_co_unidad_monetaria
    ,:pvp.fe_fin_periodo) ;
    -- previous statement dos not fail BUT THIS:
    message('rc_pvt.count= '||rc_pvt.count);pause;
    DOES FAIL
    end;
    So my question is : since i have already returned the collection, how come is not initialized....?
    Do i have to extend it first? In this case i have to return the number of records in the collection.....
    Look what happen when done from sqlplus:
    declare
    rc_pvt sk08_gestiona_plan_venta.tipo_pvt;
    begin
    rc_pvt := sk08_gestiona_plan_venta.tipo_pvt();
    rc_pvt :=
    sk08_gestiona_plan_venta.f_genera_plan_venta_inv (8713171
    ,null
    ,'m'
    ,'BS.F'
    ,to_date('28/02/2001','dd/mm/yyyy'));
    end;
    SQL> /
    Registros en la coleccion =6
    Procedimiento PL/SQL finalizado con éxito.
    SQL>
    I put a dbms_output.put_line on stored function .....
    Please help ....!
    Apparently it fails when calling the stored function:
    rc_pvt := sk08_gestiona_plan_venta.f_genera_plan_venta_inv (:pvv.lip_id_lista_precio
    ,:pvv.ems_id_sucursal
    ,:control4.v_metodo_calculo
    ,:pvv.unm_co_unidad_monetaria
    ,:pvp.fe_fin_periodo) ;
    I don't undestand since this function return the appropiate type. It seems the collection is empty, although having test that on sqlplus works ...
    rc_pvt := sk08_gestiona_plan_venta.f_genera_plan_venta_inv (:pvv.lip_id_lista_precio
    ,:pvv.ems_id_sucursal
    ,:control4.v_metodo_calculo
    ,:pvv.unm_co_unidad_monetaria
    ,:pvp.fe_fin_periodo) ;
    function f_genera_plan_venta_inv (p_id_lista_precio in number
    ,p_id_sucursal in number
    ,p_tipo_nivel_inv in varchar2
    ,p_co_unidad_monetaria in varchar2
    ,p_fe_fin_periodo in date) return tipo_pvt;
    for some reason it works on plus:
    SQL> declare
    2 rc_pvt sk08_gestiona_plan_venta.tipo_pvt;
    3 begin
    4 rc_pvt := sk08_gestiona_plan_venta.tipo_pvt();
    5 rc_pvt :=
    6 sk08_gestiona_plan_venta.f_genera_plan_venta_inv (8713171
    7 ,null
    8 ,'m'
    9 ,'BS.F'
    10 ,to_date('28/02/2001','dd/mm/yyyy'));
    11 --
    12 dbms_output.put_line('Registros en la coleccion = '||rc_pvt.count);
    13 for i in 1 .. rc_pvt.count loop
    14 --
    15 dbms_output.put_line('En '||i||rc_pvt(i).prd_co_producto);
    16 end loop;
    17 end;
    18 /
    Registros en la coleccion =6
    Registros en la coleccion = 6
    En 1PT.REF.PET.KO05
    En 2PT.REF.PET.LM15
    En 3PT.ALM.VDR.001
    En 4PT.REF.GRN.CN
    En 5PT.REF.GRN.KO
    En 6PT.REF.GRN.LM
    Procedimiento PL/SQL finalizado con éxito.
    Don't understand why it works on plus8 (same version that comes with 6i).
    Can't loop through records on forms...? WHY ...?
    Edited by: myluism on 02-abr-2012 14:40

    Forms 6i is an antique ... write your code to run on the server.
    Multiple examples of how to loop through an array loaded with bulk collect can be found here.
    http://www.morganslibrary.org/reference/array_processing.html
    The main library page is:
    http://www.morganslibrary.org/library.html

  • Can you "loop" a slideshow for continious playback in either elements or on revel?

    Can you "loop" a slideshow for continious playback in either elements or on revel?

    patrick.nugent
    Although letting the player do the job may be the easier way, you might want to explore the use of a free program named InfoEdit that was brought up in a 2010 thread here.
    http://forums.adobe.com/message/2518706#2518706
    I have not used InfoEdit, but you might find it interesting.
    Plesae let us know the outcome.
    Thanks.
    ATR

  • In Indesign 2014 can you scroll through fonts to preview like you can in photoshop

    In Indesign 2014 can you scroll through fonts to preview what the font will look like as you can in photoshop

    http://indesignsecrets.com/test-font-choices-quickly-indesign-cc.php

  • Can you make a Keyword Collection for entire event library?

    Hello all,
    So you make an event, and you can make Keyword Collections for that particular event, such as "WS" or "Person 1" or "Indoors"... But...
    What if those keywords apply to other events?
    I am making video content for a particular company. I shoot stuff one day import as an event. The only content that I produce is for this company, so you can imagine there are going to be similar themes across mutable events...
    As you know this is how it is organized >
    DRIVE
    >2012
    >Event
          >Keyword Collection
    This is how I want to get organized>
    DRIVE
    Master Keyword Collection
    >2012
    >Event
         >Keyword Collection
    > Here is an example of how I think It should be
    DRIVE
    "All Interior Shots"
    >2012
      > Event
         >Interior Shots
    So can you make a Keyword Collection for entire event library?
    Can some one please explain if is this is possible? If not please update!

    Andy,
    Yes you can but that feature only works if you are searching a single event (Pretty Cool/Useful), Creating a smart collection based on what you tick off in the dialogue box... You will get an error message if Searching the drive itself:
    LOL
    I did some playing around...
    I created a new event
    Then I ran a search, with Keywords ticked off, Ticking off mutable Keyword Collections.
    Then dragged the results into my new event.
    This in effect created "saved search results" but Final Cut started copying clips to that event folder that was created on my external HD. I was hoping that It would generate alias files...
    I also...
    Created a new project
    Ran the Search with Keywords
    Dragged all clips into the project..
    This also in effect created  "saved search results" but not really what I was hoping :/

  • Can you suggest a best way to store and read arabic from oracle database?

    Hi ,
    can you suggest a best way to store and read arabic from oracle database?
    My oracle database is Oracle Database 10g Release 10.1.0.5.0 - 64bit Production on unix HP-UX ia64.
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CHARACTERSET WE8ISO8859P1
    I have presently stored the data in nvarchar2 field. But i am not able to display it correctly.

    Using the national characterset should work but there are other factors that you have to consider when working with NCHAR/NVARCHAR2/NCLOB.
    If possible, changing the characterset is usually the best solution if it's a possiblity for you.
    For more info:
    Dear Gurus: Can u pls explain the difference between VARCHAR2 & NVARCHAR2??

  • Can you hide a dimension value but display one of it's attributes?

    Can you hide a dimension value but display one of it's attributes in a query output?

    Hi Prakash,
    I assume you are referring to a characteristic ('dimension').
    This is possible: If the attribute is a navigational attribute you can include it in the query definition without the 'parent' char.
    If the attribute is a Display attr then you can try by setting the Display property of the parent char to No Display (right click the char in the query > Properties)
    Hope this helps...

  • Can you put the audio to work throughout the reading of the chapter? Today, when I change the page, the audio stops

    Can you put the audio to work throughout the reading of the chapter? Today,when I change the page, the audio stops

    The default action is as you've noted. Audio stops when navigation to another page,
    iBA doesn't offer a way to do differently, sorry.
    Ken

  • How can I loop through a Vector and compare

    I'm working on a school project that is a quiz server. Instructors could telnet into the app and create quizes and then users can take them. I have it so it can set up new quizes so far. Right now I'm working on it so the user can choose a quiz and take the test. Since it requires proper user handling I have it so I display the quiz ID and quiz Name. The user would need to enter the quiz ID to take it. I have it that as it displays the ID's it enters them into a Vector. Then I do a loop through all elements until I get one that equals the user selection. I'm having problems with it though. Here's some code:
    do
    quizCheck = false;
    for (int i=0;quizReference.size();i++)
    if (selectionInt==quizReference.elementAt(i))
    quizCheck=true;
    }while (quizCheck==false);
    It's giving me a Error #300:method==(int,java,lang.Object)not found in class testproject.TestProject on the if line. Is there a way to handle this scenario. Also is there a better way?

    Hi,
    elementAt(...) returns an Object - of what type is your selectionInt? - guess, it is a primitve int value, not an Object.
    You can find it easier - say, you have Integer values in that Vector - and selectionInt is an int value - now you can find it using
    int p = quizReference.indexOf(new Integer(selectionInt));
    p is either -1 (if not found) or the index of the first found element, with the same int value as selectionInt.
    Hope, this helps
    greetings Marsian

  • How can you loop a part endlessly?

    Recently bought Garageband an am really happy with it. I've made a song with two parts, A and B. A is the introduction while I mean for B to basically loop forever, like in most video games, without part A to repeat as well. Now is my question, how can you do that?

    Well I guess for a CD you could put the CD player on "Repeat", no? After-all, a CD can only hold 80 minutes, so it won't play all day even if you did loop the same 20 minutes over and over, you could only do 4 iterations.
    QuickTime Player is a simple solution too and will sound exactly the same a a CD --Hang

  • Can you search through text in an InDesign book?

    I need to do a find/replace on a certain string of text throughout my book in InDesign (made up of multiple document chapters).  Is this possible?  Or do I need to open each document individually and do a find/replace?
    Thanks.

    You can do a Find/Change on all OPEN documents.

  • Can you loop video forever as a menu background, but audio only once?

    I'm wanting to make a menu that has a video background and plays music as soon as the DVD starts up, but I want the music to stop after it plays through twice and the video to continue to loop.
    I know I could do this by setting a loop point, but I don't want the user to have to sit and wait the first time the music plays before they can select a button.
    Is there a way to do this?

    ram8kumar wrote:
    There are mainly two workflows to set the looping in a motion menu :
    1. If you want to loop the entire video and audio, then there are two ways to do this:
         a)  In the motion tab of the menus properties, set the loop point to 00:00:00:00 and the loop# to the number of times you want the looping.
         b)  Go to the Specify Link dialog box to set the End action of the menu, select the menu as the target link and check the 'Set to loop point' checkbox there.
    2. If you want to loop the video from a specific point in the time, then in the motion tab of the menu, set the loop point to the exact time of the video you want to stat the looping from and set the loop # to number of times you want the looping.
    Thanks for the reply, but I don't think either of your solutions will achieve the result I'm wanting.  I want to loop the AUDIO just once (it plays two times after the menu comes up), but I want the VIDEO background to continue to loop forever.  I also want the user to be able to make a menu selection at any time, including right when the menu first appears.
    If I set a loop point, it makes the menu unusable until that loop point is reached the first time.
    I was thinking I could do this with two menus.  The first menu would have the audio and video and only loop one time, then its end action would send it to another menu that looks exactly like the first, but only has the video looping on it.  The only problem with this solution is that if the user moves their selection to something other than the default button, it will jump back to the default button when it goes to the second menu (or whatever button the "end action" is set to on the first menu).
    Would there be a way to have the first menu jump to the identical second menu and stay on whatever button the user currently has highlighted?
    Thanks.

  • Can you force through a report to display Scaling Factor

    If the person who has built a query has not selected to show the Scaling Factor (within the properties of the query) Is there any way (through table interfaces or through the web template) to change this on a temporary basis.
    Basically we have hundreds of reports and some have SF set to show and some don't we have built a button to set the scaling factor to various levels but the level of the scaling factor will only show on those querys which have the correct property setting.
    Cheers
    Shep.

    Hi Neal,
    yes you can. Either add it via URL or change the DP-Tag in your template:
      <param name="SHOW_SCALING_FACTORS" value="X"/>
             DATA_PROVIDER:             DATAPROVIDER_1
    </object>
    http://help.sap.com/saphelp_nw04/helpdata/en/b7/25813b731fd60ee10000000a114084/frameset.htm
    Heike

  • Can you generate a Schem Collection from an SQL Query

    Is there an Option that allows you to generate and XML Schema Collection in a Select Statement that will be loaded either to a table or an application.
    An example
    SELECT Column1, Column2, Column3
    FROM table
    FOR XML PATH('');
    An easy way to generate a template or a start without having to type from scratch?
    Antonio

    Hi Antonio,
    The FOR XML clause
    can generate the XML schema, you can reference the optional XMLSCHEMA.
    XMLSCHEMA [ ('TargetNameSpaceURI') ] 
    Returns inline XSD schema. You can optionally specify a target namespace URI when you specify this directive, which returns the specified namespace in the schema. For more information, see
    Generate an Inline XSD Schema.
    If you have any question, feel free to let me know.
    Best regards,
    Eric Zhang
    TechNet Community Support

  • Can you loop audio on first page of iWeb

    Just got iWeb - experimenting, but not yet published the site.
    Can I set up an audio clip to loop continually? - either just on the first 'welcome' page, or throughout the site until a different audio clip is selected? This would be like on most computer games - a drone kind of piece of music, written by myself.
    Also is there a way to place an audio clip 'on top' of a photo or a movie, to give some kind of visual relief?
    Is there a way to copy and paste the Navigation bar to all pages?
    Finally, is there a clip art thing with the art designs and stamps etc?
    Best regards, Rich
    G5   Mac OS X (10.3.9)  

    Can I set up an audio clip to loop continually? -
    either just on the first 'welcome' page, or
    throughout the site until a different audio clip is
    selected? This would be like on most computer games -
    a drone kind of piece of music, written by myself.
    You can very easily do this, but you can't do it in iWeb directly. It's going to take some post-publishing editing of the iWeb-generated HTML files. See this link...
    http://www.world-voices.com/resources/addaud.html
    This is one method of directly embedding different audio file formats. Whether the audio is audible to the visitor depends on whether their web browser has a plugin to decode the format.
    The other method is to drag the audio file directly into iWeb. This will require that the visitor have QuickTime loaded in order to hear the audio. To make the audio autoplay you would still have to do some editing of the page.js file.
    Here is an example of some background sounds on my website...
    My World

Maybe you are looking for