Create Array from Record

Hi
Somebody have a example how can I to create a Array from record ?
tks

Hi!
Pls go through the followinglink --
[url http://download-west.oracle.com/docs/cd/B14117_01/appdev.101/b10807/05_colls.htm]VArray From Record In Oracle
Hope that will help u.
Regards.
Satyaki De.

Similar Messages

  • Programmatically create array from common cluster items inside array of clusters

    I have seen many questions and responses on dealing with arrays of clusters, but none that discuss quite what I am looking for. I am trying to programmatically create an array from common cluster items inside array of clusters. I have a working solution but looking for a cleaner approach.  I have an array of clusters representing channels of data.  Each cluster contains a mixture of control data types, i.e.. names, types, range, values, units, etc. The entire cluster is a typedef made up of other typedefs such as the type, range and units and native controls like numeric and boolean. One array is a “block” or module. One cluster is a channel of data. I wrote a small vi to extract all the data with the same units and “pipe” them into another array so that I can process all the data from all the channels of the same units together.  It consists of a loop to iterate through the array, in which there is an unbundle by name and a case structure with a case for each unit.  Within a specific case, there is a build array for that unit and all the other non-relevant shift registers pass through.  As you can see from the attached snapshots, the effort to add an additional unit grows as each non-relevant case must be wired through.  It is important to note that there is no default case.  My question:  Is there a cleaner, more efficient and elegant way to do this?
    Thanks in advance!
    Solved!
    Go to Solution.
    Attachments:
    NI_Chan units to array_1.png ‏35 KB
    NI_Chan units to array_2.png ‏50 KB

    nathand wrote:
    Your comments made me curious, so I put together a quick test. Maybe there's an error in the code (below as a snippet, and attached as a VI) or maybe it's been fixed in LabVIEW 2013, but I'm consistently getting faster times from the IPE (2-3 ms versus 5-6ms for unbundle/index). See if you get the same results. For fun I flipped the order of the test and got the same results (this is why the snippet and the VI execute the tests in opposite order).
    This seems like a poster child for using the IPES!  We can look at the index array + replace subset and recognize that it is in place, but the compiler is not so clever (yet!).  The bundle/unbundle is a well-known "magic pattern" so it should be roughly equivalent to the IPES, with a tiny penalty due to overhead.
    Replace only the array operation with an IPES and leave the bundle/unbundle alone and I wager the times will be roughly the same as using the nested IPES.  Maybe even a slight lean toward the magic pattern now if I recall correctly.
    If you instantly recognize all combinations which the compiler will optimize and not optimize, or you want to exhaustively benchmark all of your code then pick and choose between the two to avoid the slight overhead.  Otherwise I think the IPES looks better, at best works MUCH better, and at worst works ever-so-slightly worse.  And as a not-so-gentle reminder to all:  if you really care about performance at this level of detail: TURN OFF DEBUGGING!

  • Best way to create array from sampled signal???

    I'm not sure exactly how to pose this question (been using labview for less than 2 weeks). I'm trying to graph the position of a motorized stage being run though an old Newport controller. I can obtain the position no problem. My sub-routine to get the position is in a while loop that repeats every 200 ms. I added a shift register to keep create an index to make the array, but it only stores the final position in the middle of the array, and puts zeros everywhere else (I initialized a large array outside the loop so it's basically just not writing anything except for that one value).
    When I use the probe the index and position values change together, I just don't understand why it doesn't store.
    Sorry if this is vague, I'm just not sure how to store these values to plot them. Any help is apprecated.
    Thanks
    Tim

    I'm unclear from you message exactly what you are doing with the shift register, but if you create an array outside the loop, of the maximum size expected (with a little more in case your guestimate is wrong) then use the loop index to index a "replace array subset" to replace the 0 value with your new value. Alternatively, create a null array of the right data type (an array constant) and do an append. Or just lead the value to the loop edge and enable indexing. The first two allow you to "see" the array during the running, the later one only allows you to see the results when the loop is stopped.
    P.M.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion
    Attachments:
    adding to loop.vi ‏43 KB

  • Creating array from XML file

    Currently my application uses the following arrays to populate a map with data depending on the user's selection.
    <fx:Declarations>
    <fx:Array id="fwo1">
    <ammap:MapArea instanceName="borders" color="#FFFFFF" mouseEnabled="false"/>
    <ammap:MapArea instanceName="SE" title="SWEDEN" value="4447100" customData="{dpSE}"/>
    <ammap:MapArea instanceName="CH" title="SWITZERLAND" value="47100" customData="{dpCH}"/>
    <ammap:MapArea instanceName="FR" title="FRANCE" value="447100" customData="{dpFR}"/>
    </fx:Array>
    <fx:Array id="fwo2">
    <ammap:MapArea instanceName="borders" color="#FFFFFF" mouseEnabled="false"/>
    <ammap:MapArea instanceName="SE" title="SWEDEN" value="2000" customData="{dpSE}"/>
    <ammap:MapArea instanceName="CH" title="SWITZERLAND" value="200" customData="{dpCH}"/>
    <ammap:MapArea instanceName="FR" title="FRANCE" value="20" customData="{dpFR}"/>
    </fx:Array>
    </fx:Declarations>
    I would like to spin the country data off into one or more external XML files so that rather than being hard coded, the arrays would load the data dynamically.
    <fx:Array id="fwo1">
    <ammap:MapArea instanceName="borders" color="#FFFFFF" mouseEnabled="false"/>
    [[include/loop through data from XML file to create rest of array]]
    </fx:Array>
    <fx:Array id="fwo2">
    <ammap:MapArea instanceName="borders" color="#FFFFFF" mouseEnabled="false"/>
    [[include/loop through data from XML file here to create rest of array ]]
    </fx:Array>
    After much searching, I just haven't quite found an example that will let me make the leap from hard coding to dynamically loading the data (in large part, because of the name space declaration as part of the array element).
    Any suggestions would be greatly appreciated.  Thanks so much.

    Hi laurie brown,
    ////////////////////// XML /////////////////////
    <?xml version="1.0" encoding="iso-8859-1"?>
    <Data>
    <name>Raj</name>
    <name>Siva</name>
    <name>Babu</name>
    <name>Kiran</name>
    <name>Girish</name>
    </Data>
    ////////////////////// XML /////////////////////
    ////////////////////// As 3.0 /////////////////////
    package{
        import flash.display.MovieClip;
        import flash.net.URLLoader;
        import flash.net.URLRequest;
        import flash.events.Event;
        public class XMLDataPush extends MovieClip{
            var urlRequest:URLRequest = new URLRequest("data.xml");
            var urlLoader:URLLoader = new URLLoader();
            var dataArr:Array = new Array();
            public function XMLDataPush():void{
                urlLoader.load(urlRequest);
                urlLoader.addEventListener(Event.COMPLETE, onLoaded);
            private function onLoaded(evt:Event):void{
                var xml:XML = new XML(evt.target.data);
                for(var i:Number = 0; i<xml.children().length(); i++){
                    dataArr.push(xml.children()[i]);
                trace(dataArr + "  dataArr" );
    ////////////////////// As 3.0/////////////////////
    If it use for you please mark it correct answer.
    Thank you
    Siva

  • Array from index 1 to x

    Hi
    is there a way to create arrays from index 1 to something, like
    double[][] data = new double[1:2][1:64]I can, off course, create an array like
    double[][] data = new double[3][65];
    but this will cost me a lot of rewriting.
    Luca

    > double[][] complex = new double[2][<huge number>] >changing the 2 into a 3 would increase the array a lot, and slow-down the program even more memory).
    Well, if you really have to, you could always do this -- double[3][] = { null, new double[<huge number>], new double[<huge number] }; This way it would only cost you one 32 bit reference. I don't find it very elegant though ...
    kind regards,
    Jos

  • Creating Vendor Master Records from HR Master Records

    Dear Experts,
    I have been using t-code PRAA to create vendor master records from HR master records.  The client would like to have one vendor number for a group of employees (in this case external contractors all working for the same company).  The system won't allow me to link several PERNR to one LIFNR (i.e. error message).
    Is it, however, possible to do this?
    Thank you.
    Edited by: Philip on Jan 14, 2011 9:58 PM

    Hi ,
    PRAA has one to one relation ship , means it created 1 vendor for 1 employee .
    If you are using PERNR then you cant use one vendor to may PERNR .
    Either create them as individual vendor or else have a manual control system in place where in you will have to create a dummy PERNR and then allocate all the cost to this invidual vendor , if you are paying the check to only 1 contractor for say 100 contract employees you can use this .
    else it is a better mechanism and control to have 1 is to 1 in case of employee to vedor .
    Regards ,
    Dewaang T.

  • FM FOR CREATING NEW CONDITION RECORDS FROM INPUT FILE

    Hello vikas,
    I need to develop a interface program FOR CREATING NEW CONDITION RECORDS FROM INPUT FILE.
    Is there ay function module to update or create the condtion records,
    if u have any example interface program to update conditions records please send me.
    regards
    ram.

    This must be your compiler output.
    Basically, it is telling you two things that are wrong - in syntax.
    1. On line number 11 of the file RationalCollection1.java, the compiler expects a type identifier - that would be the object or return type such as int, String, boolean, etc.
    The reason it is doing this is probably due to your not ending a previous statement - like the "expected ';'" error statement. Check your code, make sure that methods (brackets) are closed correctly and there are no open statements (i.e. missing the semi-colen at the end).
    2. On line number 33 of the file RationalCollection1.java, the compiler expected the closing bracket. Thus, you didn't put the bracket where the compiler wants it.
    It appears that you have skipped some lines of code. Those lines are the problem, post them - post lines 30-36 and 9-15 so we can see what is happening around those error lines.

  • Setting required to create Business partner record in SAP GTS for the customer who transferred from the SAP ECC system

    Dear Experts,
    Can you please suggest me list of activities require to automatically  create Business partner record in SAP GTS for the customer who transferred from the SAP ECC system .
    i.e If I create the customer master record and transfer the same CMR to SAP GTS , what are the setting requires to maintain in SAP GTS sytem to automatically create the Business partner .
    Ram

    Hi Raghu,
    Below are the main settings required to enable you to transfer Customer Master Data to SAP GTS. Please note that their is a difference between, Customer Master Record and Customer Master Data in terms of data and for GTS, we transfer Customer Master Data. Hence, below are the settings required:-
    In SAP ECC system:-
    Activate the change pointers for Customer Master Data apart from enabling basic connection settings.
    Schedule a job to run at regular intervals to transfer all the customer master data for the available change pointers to the SAP GTS system
      2.  In SAP GTS system:-
    Maintain the Mapping for ECC Customers to SAP GTS Business Partners in the General settings area of the SPRO in SAP GTS system
    Ensure that the Number range is maintained for those GTS  Business Partners.
    Also, some time you may be required to maintain the organisational structure to ensure full working.
    I hope this will be helpful to you.
    Regards,
    Aman

  • Help creating an array from a list of vector item

    I am writing a Email Handling class that uses an Email class that I have already written. The spec requires me to (A.) Create a DisplayEmail(Email[] e) method that takes and array of email messages and displays them in the terminal window. And then (B) to create some retrieval methods ie: Email [] RetrieveSubject(String searchValue) which "will allow me to retrieve objects from the data structure created in (A.)and sorts them.
    I wonder if you could give my some advice on how to implement this? I have used a Vector to store the emails. Here is what I have so far. . From what I understand I am suppose to create array methods for all of these tasks. Don't know where to begin, can u help please. I've created a vector to store the emails, but I am not sure about the array method bit. As you can see all of my methods are standard and I think they need to be arrays. Please Help
    import java.util.*;
    public class EmailHandler{
    private Vector emails;
    public EmailHandler(){
         emails = new Vector();
    public EmailHandler(int size){
         emails= new Vector(size);
    public void addEmail(Email e){
         emails.addElement(e);
    public void displayEmail(Email de)
    public void displayArrayOfEmails(Email[] ea)
    public Email RetrieveSender(String searchSender)
         Email thisEmail;
         //look through vector for search element
         if(emails.size()>0){
              for (int i=0;i<emails.size();i++){
                   //take emails in turn search for subject
                   thisEmail = (Email) emails.elementAt(i);
                   //check subject against search value input
                   if(thisEmail.getSender().equalsIgnoreCase(searchSender))          {
                        return thisEmail;
         }     //if you find yourself here, no subject is found
              return null;
    public Email RetrieveRecipient(String searchRecipient)
         Email thisEmail;
         //look through vector for search element
         if(emails.size()>0){
              for (int i=0;i<emails.size();i++){
                   //take emails in turn search for subject
                   thisEmail = (Email) emails.elementAt(i);
                   //check subject against search value input
                   if(thisEmail.getRecipientName().equalsIgnoreCase(searchRecipient))          {
                        return thisEmail;
         }     //if you find yourself here, no subject is found
              return null;
    public Email RetrieveSubject(String searchSubject)
         Email thisEmail;
         //look through vector for search element
         if(emails.size()>0){
              for (int i=0;i<emails.size();i++){
                   //take emails in turn search for subject
                   thisEmail = (Email) emails.elementAt(i);
                   //check subject against search value input
                   if(thisEmail.getSubject().equalsIgnoreCase(searchSubject))          {
                        return thisEmail;
         }     //if you find yourself here, no subject is found
              return null;

    i've anwered your question in your crosspost over here:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=472997&tstart=0&trange=30

  • Scripting: Create Cluster in Array from existing cluster

    I am creating a custom programming tool to generate some custom LabVIEW TypeDefs.
    One of the structures I have to create is an array of clusters; but from an existing cluster.  That is, I have a reference to a previously defined cluster, and I need to array this.
    One possible way to do this is to duplicate the cluster next to the empty array, and then 'move it into' the array.  This seems to be an ugly solution.
    Is there a better way?  When I try and use "Create from Reference" method, the cluster is created in the array, but the sub-elements trigger error 0x421: Type Mismatch.
    Thanks!
    Jed

    Hi Viper,
    Sorry- you misunderstand.  We are talking about doing this with LV Scripting; what you did statically defines the array type in the VI.  Writing LV code that would create the array from an undefined array by running a VI.  (In the situation above, the code would actually EDIT the VI and change it's functionality)
    There are a few examples in the distro if you search for "scripting", but here's a page with some example code you can look at.
    http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/wiring_scripting_objects/

  • Create methods from array

    Hello all,
    I want to know if I can create methods from writing them by using a for loop?
    I think I should use setmethod, but I can't find an example that I understand - yes I'm a newbie :-). So if anyone can point me to the right direction! Here is the code;
    class commands {
    String [] commandos = {"open", "play", "exit", "help"};
    int i, z;
    String str = new String();
    InputStreamReader reader = new InputStreamReader(System.in);
    BufferedReader br = new BufferedReader(reader);
    public commands() {
    /* methods I want to implement
    for (z=0; z < commandos.length; z++) {
    public void commandos[z]() { // syntax I want to implement
    System.out.println("Commando " + commandos[z] + " is being executed");
    try {
      do {
      str = br.readLine ();
         for (i=0; i < commandos.length; i++) {
         if (str.toLowerCase().equals (commandos)) {
         System.out.println("Commando " + commandos[i] + " is being executed"); // needs replacement
    } while (!str.toLowerCase().equals ("quit"));
    catch (IOException e) { System.out.println("IOexception = " + e );}
    public class comecho {
    public static void main (String [] args) {
    commands com = new commands();

    Thanks for the quick reply. Bummer it can't be done that though. I'll live with it.
    I slightly changed the code to see if I can achieve the following.
    I want to call one function when array value equals a method name. Is this possible?
    import java.io.*;
    class commands {
    String [] commandos = {"open", "play", "exit", "help"};
    int i, z;
    String str = new String();
    InputStreamReader reader = new InputStreamReader(System.in);
    BufferedReader br = new BufferedReader(reader);
    public commands() {
    // public void open() { }
    // public void play() { }
    // public void exit() { }
    // public void help() { }
    try {
      do {
      str = br.readLine ();
         for (i=0; i < commandos.length; i++) {
         if (str.toLowerCase().equals (commandos)) {
         System.out.println("nothing"); // How to convert commandos[i] to call function commandos[i]
    } while (!str.toLowerCase().equals ("quit"));
    catch (IOException e) { System.out.println("IOexception = " + e );}
    public class comecho {
    public static void main (String [] args) {
    commands com = new commands();

  • Is it possible to back up an external hard drive to Time Machine from two different computers without creating two different records?

    I have an external hard drive that I do my work on. I use it on my office MacPro and on my MacBook Pro. I have Time Machine setup on both computers to back up the external hard drive to a remote backup drive, but when it backs it up, the backup goes into either the MacPro record of it, or the MacBook Pro record. The effect of this is that if I'm at my laptop and I need to access an earlier version of a file that existed when I was working on my MacPro, I can't access it.
    Is it at all possible to create a universal record (or Sparse Disk Image Bundle to use Apple lingo) for my external hard drive?

    Hi BDAqua,
    Thanks for your help as always, sorry I never thanked you earlier, finally got some time to attend this.
    I'm in the mail folder in the library of my user name. Just to make sure I get all my mail boxes I'm going to archive simply the whole 'Mail' folder after going in to the library of my unsername.
    I notice you mentioned about importing there .... I've seen the .emix files you mention .... i have 30,000+ of them.
    What I find helpful in mail is that if I type a client's second name, in this case 'Lopez' I can pull up all the mails relating to him in an instant, around 450. Obviously it would be impossible to pick through 30K .emix files to find the right ones .... so could I easily import them in to my Mail on my new computer?
    Could I select the whole lot of them, then drag and drop them in to my new Mail on the new computer, and then use the search function on Mail? ... the normal desktop search function doesn't seem to look through the emix files, or emails for that matter.
    Also, just as an extra precaution, could I make a smart folder in Mail with the name of said client for example for, then archive that folder separately?
    TY
    Message was edited by: Scottishengineer

  • Passing Array From Subreport to Main Report then Summing

    Hi,
    I am having troble passing an array from a sub report to the main repport.  I have managed to create the array, pass it and display it in the main report, however the first value of the array is displayed twice.  Here is the  formulae I have used:
    In the sub report:
    whileprintingrecords;
    shared stringvar str;
    str:=str{@value}","
    In the main report:
    whileprintingrecords;
    shared stringvar str;
    stringvar array arr;
    arr:=split(str,",");
    join(arr,",")
    Also, when I have managed to resolve the problem of the first value printing twice, I hope to change the array back to a number array and sum all of the values together.  I'm not too sure how to do this either.
    I hope you can help.
    Julie

    Ummm... Isn't Join(Split(str,","), ",") = str?  Why bother with the two extra lines of code?  Also, are you sure the subreport isn't creating the "duplicate first value"?  (I.e.  The data has the same value on two records, so it's being added twice?)
    Also if you're looking for the sum, why not create another shared variable and sum the value in the subreport as you're building the array (assuming you need the array for other purposes)?
    HTH,
    Carl

  • Create LOV from OID entries

    I do not know how to build a LOV from the available list of user ids in Internet Directory. My intention is to use the Internet Directory as my "system of record" for Personnel and reference the User ID in records in the database. Is there a way to build a materialized view for this? or is there some other mechanism you can point me to?
    I am building a slew of data capture forms of which I would like to enter the userid of the logged in user. I know how to use wwctx_api.get_user_id however my user may want to override their name with someone else.
    Ergo, my need for an LOV.

    I had the same problem
    not sure about going to the tables direct, a little messy
    have a look a d the OID developers guide there is an example of querying the OID using DBMS_LDAP
    here is my fucntion to get the parameter that i need form OID it returns any array of records then you can process the array
    type user_profile_rec is record (
                                            first_name varchar2(100)
                                            ,last_name varchar2(100)
                                            ,cn           varchar2(100)
                                            ,dn          varchar2(200)
                                            ,displayname          varchar2(200)
                                            ,jpegPhoto     varchar2(10000)
                                            ,orclisvisible varchar2(10));
    type profile_array is table of user_profile_rec index by binary_integer;
    function user_profiles ( ldap_host VARCHAR2 default portal.wwsec_oid.GET_OID_HOST
                                  ,ldap_port VARCHAR2 default portal.wwsec_oid.GET_OID_PORT
                                  ,ldap_user VARCHAR2
                                  ,ldap_passwd VARCHAR2
                                  ,ldap_base VARCHAR2
                                  ,search_letter varchar2
                                  ) return profile_array
    as
    -- this function uses the dbms_ldap package to query the ldap repsoitory
    -- to get the user details.
    -- this will search the named source
              -- create ldap parameters
              retval PLS_INTEGER;
              my_session DBMS_LDAP.session;
              my_attrs DBMS_LDAP.string_collection;
              my_message DBMS_LDAP.message;
              my_entry DBMS_LDAP.message;
              entry_index PLS_INTEGER;
              my_dn VARCHAR2(256);
              my_attr_name VARCHAR2(256);
              my_ber_elmt DBMS_LDAP.ber_element;
              attr_index PLS_INTEGER;
              i PLS_INTEGER;
              my_vals DBMS_LDAP.STRING_COLLECTION ;
    --          ldap_host VARCHAR2(256);
    --          ldap_port VARCHAR2(256);
    --          ldap_user VARCHAR2(256);
    --          ldap_passwd VARCHAR2(256);
    --          ldap_base VARCHAR2(256);
              -- value to hold the return string from ldap
              val DBMS_LDAP.STRING_COLLECTION ;
         -- create the varray variables ( define find in the package spec      
              profile_rec user_profile_rec;
              profile_varray profile_array;
              begin
              retval := -1;
              /*ldap_host := 'uk-abi-sap01.uk.evotecoai.com' ;
              ldap_port := '4032';
              ldap_user := 'cn=orcladmin';
              ldap_passwd:= '1vindaloo';
              ldap_base := 'cn=users,dc=uk,dc=evotecoai,dc=com';
              -- Choosing exceptions to be raised by DBMS_LDAP library.
              DBMS_LDAP.USE_EXCEPTION := TRUE;
              my_session := DBMS_LDAP.init(ldap_host,ldap_port);
              -- bind to the directory
              retval := DBMS_LDAP.simple_bind_s(my_session,ldap_user, ldap_passwd);
              -- issue the search
              my_attrs(1) := 'sn'; -- retrieve all attributes
              my_attrs(2) := 'dn'; -- retrieve all attributes
              my_attrs(3) := 'cn'; -- retrieve all attributes
              my_attrs(4) := 'givenname'; -- retrieve all attributes
              my_attrs(5) := 'orclisvisible'; -- retrieve all attributes
              my_attrs(5) := 'displayname'; -- retrieve all attributes
              my_attrs(6) := 'jpegPhoto'; -- retrieve all attributes
              retval := DBMS_LDAP.search_s(my_session, ldap_base,DBMS_LDAP.SCOPE_SUBTREE,'sn='||UPPER(search_letter)||'*',my_attrs,0,my_message);
              -- count the number of entries returned
              retval := DBMS_LDAP.count_entries(my_session, my_message);
              -- get the first entry
              my_entry := DBMS_LDAP.first_entry(my_session, my_message);
              entry_index := 1;
              -- Loop through each of the entries one by one
              while my_entry IS NOT NULL loop
              -- print the current entry
                        -- return the dn for the current user row
                        my_dn := DBMS_LDAP.get_dn(my_session, my_entry);
                        profile_rec.dn := my_dn;
                        -- gets the arribs the check to make sure one is returned then assign to the array
                             val:= dbms_ldap.GET_VALUES( LD=>my_session, LDAPENTRY=>my_entry, ATTR=>'givenname' );
                        -- check if returned
                        if val.COUNT > 0 then
                        -- loop thought the values
                        FOR i in val.FIRST..val.LAST loop
                             -- set the value in the array
                             profile_rec.first_name := SUBSTR(val(i),1,200);
                        end loop;
                        end if;
                        -- get the sn
                        i:=1;
                        val:= dbms_ldap.GET_VALUES( LD=>my_session, LDAPENTRY=>my_entry, ATTR=>'sn' );
                        if val.COUNT > 0 then
                        FOR i in val.FIRST..val.LAST loop
                             profile_rec.last_name := SUBSTR(val(i),1,200);
                        end loop;
                        end if;
                        -- get cn
                        i:=1;
                        val:= dbms_ldap.GET_VALUES( LD=>my_session, LDAPENTRY=>my_entry, ATTR=>'cn' );
                        if val.COUNT > 0 then
                        FOR i in val.FIRST..val.LAST loop
                             profile_rec.cn := SUBSTR(val(i),1,200);
                        end loop;
                        end if;
                        -- get orclisvisible
                        i:=1;
                        val:= dbms_ldap.GET_VALUES( LD=>my_session, LDAPENTRY=>my_entry, ATTR=>'orclisvisible' );
                        if val.COUNT > 0 then
                        FOR i in val.FIRST..val.LAST loop
                                  profile_rec.orclisvisible := SUBSTR(val(i),1,200);
                        end loop;
                        end if;
                        -- get orclisvisible
                        i:=1;
                        val:= dbms_ldap.GET_VALUES( LD=>my_session, LDAPENTRY=>my_entry, ATTR=>'displayname' );
                        if val.COUNT > 0 then
                        FOR i in val.FIRST..val.LAST loop
                                  profile_rec.displayname := SUBSTR(val(i),1,200);
                        end loop;
                        end if;
                        -- get orclisvisible
                        i:=1;
                        val:= dbms_ldap.GET_VALUES( LD=>my_session, LDAPENTRY=>my_entry, ATTR=>'jpegPhoto' );
                        if val.COUNT > 0 then
                        FOR i in val.FIRST..val.LAST loop
                                  profile_rec.jpegPhoto := SUBSTR(val(i),1,200);
                        end loop;
                        end if;
              -- itterate thoguht the array
              -- set the values of the record to the array
              profile_varray(entry_index).cn := profile_rec.cn;
              profile_varray(entry_index).first_name := profile_rec.first_name;
              profile_varray(entry_index).last_name := profile_rec.last_name;
              profile_varray(entry_index).dn := profile_rec.dn;
              profile_varray(entry_index).displayname :=profile_rec.displayname;
              profile_varray(entry_index).orclisvisible :=profile_rec.orclisvisible;
              profile_varray(entry_index).jpegPhoto :=profile_rec.jpegPhoto;
              my_entry := DBMS_LDAP.next_entry(my_session, my_entry);
              entry_index := entry_index+1;
              end loop;
              -- unbind from the directory
              retval := DBMS_LDAP.unbind_s(my_session);
              -- return the arreay
              return profile_varray;
    end user_profiles;

  • Using dynamic array as record selection criteria-performance issue

    Hi All,
    I have successfully passed an array to my subreport and using it as selection criteria. This subreport is embedded in a group and prints data recursively. Problem is the selection is happening locally which causes all the records to be brought and then filters them. Any solution/help will be greatly appreciated.
    Thanks, in advance.
    -Vishal

    Thanks Vinay. But I think I found my answer actually at the selection criteria I was creating an array from string as follows,
    stringvar array ConjugateLots = split( str, ",")
    in ConjugateLots* //this was causing the local fitration and then I switch to
    * in split( str, ",") // which worked.
    But once again thanks. But now I have another issue, I want the records to be sort in the array items. Any help with that also greatly appreciated.
    Thanks,
    -Vishal

Maybe you are looking for

  • Can't Re-Install/Delete iTunes To Go Back To v11.0.4

    I have been having Apple "permission" repair issues with the newer OS10.8.5 update, and want to re-install my previous iTunes version (v11.0.4 or 11.0.5). When I try to remove the existing 11.1.4 version (that has the permission repair issues), I am

  • Map in iMovie not available in dutch

    When I change Mac language in English, I have maps in iMovie. Language Dutch: no maps. In version before latest, no problem in Dutch.

  • BEX Analyzer in Trial Version

    Hi everybody, I installed ABAP Trial Version 7.0 on my laptop, with 3 gigs of ram under Windows XP SP2. I also use MS Office 2007. My intension for now is to use the BW functionality. The RSA1 transaction works very fine. All other related functional

  • Display Screen (vertical vs. horizontal)

    How can I prevent the display screen from flipping from vertical to horizontal when I turn the phone sideways?

  • Monitoring Business Process

    Hi, First of all, sorry for my English but I will try to make my best! I'm new to JCAPS. I'm doing a simple BPEL flow in eEnsight. I want monitoring it. I have setted the persistence but into Emanager page i don't see the windows: Business Process In