Generic Dump Nested Collection Procedure?

Greetings,
Anyone have a proc which when passed a (possibly deeply) nested collection will dump a pretty-printed representation via dbms_output?
I know this is a mostly just a typing exercise using recursion, but
1. my PL/SQL skills apparently aren't up to the task
2. I don't see any kind of get_type() function for the dump proc to use to decide how to loop through sub-collections
so I'd like to see how the experts do it.
Am using 10g.
Thanks,
--jim
example:
DECLARE
  TYPE numset_t IS TABLE OF NUMBER;
  TYPE numset_t_aa IS TABLE OF numset_t INDEX BY VARCHAR2(16);
  TYPE numset_t_aa_v IS VARRAY(2) OF numset_t_aa;
  n_aa numset_t_aa;
  n_t_aa_v numset_t_aa_v;
BEGIN
  n_aa('tens') := numset_t(10,11,12);
  n_aa('ones') := numset_t(1,2,3);
  n_t_aa_v(1) := n_aa;
  n_aa.DELETE('ones');
  SELECT * BULK COLLECT INTO n_aa('hundreds') FROM table(numset_t(103,102,101));
  n_t_aa_v(2) := n_aa;
  dbms_output('dumping n_t_aa_v:');
  dump_collection(n_t_aa_v);
END;expected output:
dumping dumping n_t_aa_v:
1:
  tens:
    1: 10
    2: 11
    3: 12
  ones:
    1: 1
    2: 2
    3: 3
2:
  tens:
    1: 10
    2: 11
    3: 12
  hundreds:
    1: 103
    2: 102
    3: 101

Hi,
Why are you using collections in the first place?
If the sole purpose here is to generate XML, then you don't need collection at all, just query your base tables with SQL/XML functions.
If these collections are part of a larger process (besides generating XML), then you'll need to use at least SQL types instead of local PL/SQL types if you want to efficiently generate XML out of them.
For example, using the XMLType constructor over the topmost object : {message:id=10012696}

Similar Messages

  • Generic CSV log collection Rule not pulling all records

    Hi,
    I created a Generic csv log collection rule with details as follows:
    Target: Windows Computer
    Directory: D:\async
    Pattern: Async*.csv
    Seperator: ,
    Expression: Params/Param[1]-matches wildcard- *
    Problem is the Csv file has around 50000 records whereas in the eventview of that rule it only shows 16853 records. I also tried with following SQL query but same results.
    select * from event.vEvent
    where EventNumber=0
    (Since this is the only csv rule I've created & I dont have any records with event 0 hence using eventnumber 0)
    I've verified first column of csv file (i.e Param[1]) doesn't contains blank records. Tried deleting & recreating Rules + CSV files but no luck.
    Please help. 

    Hi,
    As we can see all csv files that start with "Async" under D:\async foler will be collected.
    How many this kind of file exist under the directory?
    Would you please creat another simple Async.csv file and remove the original file to another folderto do a test.
    In addition, also hope the below article can be helpful:
    Monitoring Text and CSV log files in System Center Operations Manager
    http://support.microsoft.com/kb/2691973
    Regards,
    Yan Li
    Regards, Yan Li

  • Error in calling collection procedure.

    Hi Experts,
    In a package I have one procedure "setscores_ram_bulk" with collection varaiavles.
    And other two procedures are "UpdateRelatedOrders" and "SetGeoFraudScore" with out collections.
    I am calling collection procedure "setscores_ram_bulk" in non collection procedures "UpdateRelatedOrders" and "SetGeoFraudScore".
    I am getting the below error.
    PLS-00306:wrong number or types of arguments in call to 'SETSCORES_RAM_BULK' .
    I am sending my code.
    CREATE OR REPLACE PACKAGE GAFT_PROG_DIT.INTERNAL_SCORING_setscore_Bulk
    IS
    TYPE rec_setscores IS RECORD
    pBUID     score.buid%TYPE,
    OrderNum   score.order_num%TYPE,
    ScoreType  VARCHAR2(100),
    p_Score       score.velocity_score%TYPE
    type pp_rec_setscores is table of rec_setscores index by pls_integer;
    PROCEDURE UpdateRelatedOrders (pBUID IN NUMBER, OrderNum IN VARCHAR2);
    PROCEDURE SetGeoFraudScore (pBUID         IN     NUMBER,
                                   OrderNum      IN     VARCHAR2,
                                   ZipCode       IN     VARCHAR2,
                                   CountryCode   IN     VARCHAR2,
                                   score         OUT NUMBER);
    PROCEDURE setscores_ram_bulk (p_rec_setscores  pp_rec_setscores);                              
    END;
    CREATE OR REPLACE PACKAGE BODY GAFT_PROG_DIT.INTERNAL_SCORING_setscore_Bulk
    IS
       PROCEDURE UpdateRelatedOrders (pBUID IN NUMBER, OrderNum IN VARCHAR2)
       IS
          tScoreID    STAGING_ORDER_DATA.SCORING_ID%TYPE;
          tVelocity   SCORE.VELOCITY_SCORE%TYPE;
          tNegative   SCORE.NEGATIVE_SCORE%TYPE;
          tTrend      SCORE.TREND_SCORE%TYPE;
          CURSOR scoreCursor (
             scoreID    NUMBER,
             OrdNum     VARCHAR2)
          IS
             SELECT ORDER_NUM
               FROM STAGING_ORDER_DATA
              WHERE     SCORING_ID = scoreID
                    AND ADDRESS_TYPE = 'S'
                    AND ORDER_NUM != OrdNum;
       BEGIN
          SELECT SCORING_ID
            INTO tScoreID
            FROM STAGING_ORDER_DATA
           WHERE BUID = pBUID AND ORDER_NUM = OrderNum AND ADDRESS_TYPE = 'S';
          IF tScoreID IS NOT NULL
          THEN
             SELECT VELOCITY_SCORE, NEGATIVE_SCORE, TREND_SCORE
               INTO tVelocity, tNegative, tTrend
               FROM SCORE
              WHERE BUID = pBUID AND ORDER_NUM = OrderNum;
             FOR ord_rec IN scoreCursor (tScoreID, OrderNum)
             LOOP
                setscores_ram_bulk (pBUID,ord_rec.ORDER_NUM,'V',tVelocity);
                setscores_ram_bulk (pBUID,ord_rec.ORDER_NUM,'N',tNegative);
                setscores_ram_bulk (pBUID,ord_rec.ORDER_NUM,'T',tTrend);
             END LOOP;
             IF scoreCursor%ISOPEN
             THEN
                CLOSE scoreCursor;
             END IF;
          END IF;
       END UpdateRelatedOrders;
        PROCEDURE SetGeoFraudScore (pBUID         IN     NUMBER,
                                   OrderNum      IN     VARCHAR2,
                                   ZipCode       IN     VARCHAR2,
                                   CountryCode   IN     VARCHAR2,
                                   score            OUT NUMBER)
       IS
          tZipCodeExist   NUMBER;
          tScore          NUMBER;
       BEGIN
          SELECT COUNT (Score)
            INTO tZipCodeExist
            FROM MASTER_GEO_FRAUD
           WHERE REPLACE (UPPER (ZIP_CODE), ' ', '') =
                    REPLACE (UPPER (ZipCode), ' ', '')
                 AND COUNTRY_CODE = CountryCode;
          IF tZipCodeExist > 0
          THEN
             SELECT Score
               INTO tScore
               FROM MASTER_GEO_FRAUD
              WHERE REPLACE (UPPER (ZIP_CODE), ' ', '') =
                       REPLACE (UPPER (ZipCode), ' ', '')
                    AND COUNTRY_CODE = CountryCode;
          ELSE
             tScore := 1000;
          END IF;
    setscores_ram_bulk (pBUID,OrderNum,'XS',tScore);
          COMMIT;
          score := tScore;
       END SetGeoFraudScore;
       PROCEDURE setscores_ram_bulk (p_rec_setscores pp_rec_setscores)
       IS
       BEGIN
          FORALL i IN 1 .. p_rec_setscores.COUNT
             MERGE INTO   score s
                  USING   (SELECT   p_rec_setscores (i).pBUID buid,
                                    p_rec_setscores (i).OrderNum order_num,
                                    p_rec_setscores (i).p_score score
                             FROM   DUAL) p
                     ON   (s.buid = p.buid AND s.order_num = p.order_num)
             WHEN MATCHED
             THEN
                UPDATE SET
                   velocity_score =DECODE (p_rec_setscores (i).ScoreType,'V', p.score,velocity_score),
                   negative_score =DECODE (p_rec_setscores (i).ScoreType,'N', p.score,negative_score),
                   trend_score =DECODE (p_rec_setscores (i).ScoreType,'T', ROUND (p.score),trend_score),
                   vendor_combined_score =DECODE (p_rec_setscores (i).ScoreType,'X', p.score,vendor_combined_score),
                   vendor_bt_score =DECODE (p_rec_setscores (i).ScoreType,'XB', p.score,vendor_bt_score),
                   vendor_st_score =DECODE (p_rec_setscores (i).ScoreType,'XS', p.score,vendor_st_score)
             WHEN NOT MATCHED
             THEN
                INSERT  (buid, order_num, received_date_time)
                    VALUES  (p.buid, p.order_num, SYSDATE);
          FORALL i IN 1 .. p_rec_setscores.COUNT
             MERGE INTO   score_filter_apply s
                  USING   (SELECT   p_rec_setscores (i).pBUID buid,
                                    p_rec_setscores (i).OrderNum order_num,
                                    p_rec_setscores (i).p_score score
                             FROM   DUAL) p
                     ON   (s.buid = p.buid AND s.order_num = p.order_num)
             WHEN MATCHED
             THEN
                UPDATE SET
                   velocity_score =DECODE (p_rec_setscores (i).ScoreType,'V', p.score,velocity_score),
                   negative_score =DECODE (p_rec_setscores (i).ScoreType,'N', p.score,negative_score),
                   trend_score =DECODE (p_rec_setscores (i).ScoreType,'T', ROUND (p.score),trend_score),
                   vendor_combined_score =DECODE (p_rec_setscores (i).ScoreType,'X', p.score,vendor_combined_score),
                   vendor_bt_score =DECODE (p_rec_setscores (i).ScoreType,'XB', p.score,vendor_bt_score),
                   vendor_st_score =DECODE (p_rec_setscores (i).ScoreType,'XS', p.score,vendor_st_score)
             WHEN NOT MATCHED
             THEN
                INSERT (buid, order_num, received_date_time)
                    VALUES   (p.buid, p.order_num, SYSDATE);
       END setscores_ram_bulk; 
       END;
       /Please help me.
    Thanks in advance.

    BluShadow wrote:
    Paul  Horth wrote:
    You haven't taken any notice of what Alberto posted in {message:id=11026562} I see.
    Why should anyone bother helping you if you never think we have answered your questions?Indeed, that must be a new record:
    >
    Total Posts: 336
    Total Questions: 160 (160 unresolved)
    >
    Out of 160 questions... none of them have been resolved.
    That's either down to poor answers (very unlikely with the amount of experts around) or poor questions (quote likely) or sheer laziness on feeding back on answers and marking questions as answered when they have been (most likely).Indeed, your own post just after Alberto's seems to sum it up :-)

  • Is it possible to load a dump file collected from sql server to orcle 10gR2

    Hi..
    As a part of data migration from legacy systems , we need to migrate only required tables from Sql server to Oracle 10gr2 .
    At present client is telling that he will give it as dump file.
    My question is , Is it possible to load the dump file collected from sql server to oracle 10gR2?
    Thanks in advance ..

    yes, it is.
    Using for example SQL Developer Migration Workbench even allows you to create unload scripts for the desired SQL Server tables and it also creates the DDL scripts for you to create the Oracle tables similar to the SQL Server table AND it alows creates the SQL*Loader scripts that allow you to load the SQL Server generated dump file into the Oracle db.
    Here the link:
    http://www.oracle.com/technology/tech/migration/workbench/index_sqldev_omwb.html
    If you do not want to use this utility, you can also use SQL*Loader to load the content of the SQL Server dump file into the Oracle database; but in this case you have to write the whole SQL*Loader control scripts on your own.
    Edited by: kgronau on Sep 16, 2009 1:54 PM

  • XSU: Nested Collections?

    Does anyone know of a way to get around Oracle's limitation on nested collections?
    I have been using XSU to present XML to our Java application layer using objects and object views. Casting multisets works fine for repeating elements as long as the elements themselves don't contain repeating elements. I have been able to get around this with nested cursors, but I am not sure that XSU was designed to work this way. I get a nasty error if any of the cursors return an empty set.
    Example:
    SELECT
    company_name,
    CURSOR(SELECT
    dept_name,
    CURSOR(SELECT
    group_name
    FROM group_table g
    WHERE g.dept_id = d.dept_id) AS "GROUPS"
    FROM
    dept_table d
    WHERE
    d.company_id = c.company_id) AS "DEPARTMENTS"
    FROM company_table c
    If any of the above cursors returns an empty set then I get the following error:
    oracle.xml.sql.OracleXMLSQLException: Closed Statement: oracle.jdbc.oci8.OCIDBStatement@18f375
    Anyone gotten around this another way?

    Hi Christopher,
    I posted a similar question before. I even don't know how to create such a table to store XML data.
    Like your example
    <company>
    <dept>
    <group>
    <emp>
    </emp>
    </group>
    <group>
    </group>
    </dept>
    <dept>
    </dept>
    </company>
    Do you know how to create a table to store this kind of xml data with several hierarchical levels?
    null

  • Need Help : Native SQL ABAP dump "DBIF_DSQL2_SQL_ERROR" on procedure "APS_ORDER_CHANGE".

    Hi All,
    We are facing an issue and want to check if you have seen it in past and can help us in resolving it. Any input will be greatly appreciated.
    Issue:
    While executing product heuristic on few product/location combinations in product view, we encounter native SQL ABAP dump “DBIF_DSQL2_SQL_ERROR” on
    procedure “APS_ORDER_CHANGE”.
    We were debugging for one particular product/location combination, this combination has 2 planned orders, and the Internal order number of these planned orders are
    given as input to this procedure “APS_ORDER_CHANGE”. These 2 internal order numbers are the only inputs given to this procedure.
    When we try to delete those planned orders we again encounter same ABAP dump. There are many product/location having the same issue.
    We also checked variable duration maintained on the PPM of this product/location, and was fine.
    For more deatils : Please check the attached document of downloaded ABAP Dump.
    Thanks and Regards,
    Pritesh Jain

    Hi Pritesh.
    What liveCache version/build/patch are you on? What is the database error text shown in this dump?
    If it is exactly the one below
    Database error text........: "POS(1) Work rolled back: tExcept 30730 in
    APS_ORDER_CHAN"
    You can try running report SLCA_EMERGENCY_SWITCH, then turning off the option "Verify that all input table records have been read" and saving the results. If that solves the issue, you can use this as a workaround until the next time you upgrade your liveCache build.
    To get a clear root cause, you may need to create an OSS incident under BC-DB-LCA component providing a reproducible example.
    Regards,
    Tiago

  • Nested Collections In Bridge?

    Is it possible to create nested collections in Bridge? I've looked in the help file, but can't find any mention. Don't know if I'm missing it or it just can't be done.
    Thanks,
    Chuck

    Collection is not folder it is just the file that is created in the bridge preferences to ease out the navigation for the user.
    Go to C:\Users\<user name>\AppData\Roaming\Adobe\Bridge CS5\Collections
    you will find the filelist files ther with the name of your collection, if you open those file in the wordpard you will see the path of the files included in the collection.
    hence I dont think the nested collection could be created becuase we cannot refer the filelist file in another filelist file.

  • Locking objects in nested collections

    Hi,
    I am looking at having a data store in memory which will be made up of nested collections e.g. a hashmap whose values are hashmaps. This data store will be accessed by multiple threads and to avoid threading issues on updates I realize I have to implement some form of locking. However I don't want to coarse grain lock the data store for all accesses when updating and I would prefer to lock on a more finer grained level.
    My question is this, is it possible to place a lock on an object in a collection or those the entire collection have to be locked e.g. given a hashmap within a hashmap is it possible to lock the inner hashmap and not the outer.
    regards
    Noel

    I don't think there could be any issue. Get the object from the hash map and lock it. But the Object should have synchronized methods to handle multiple threads, So that when multiple threads get reference to the same object from the hash map they get a synchronized access to the data or logic in the Object.

  • Varbinary(max) parameters in Nested Stored Procedures by value or reference _Expand / Collapse

    Consider a situation where a stored procedure taking a varbinary(max) (BLOB) input parameter
    then calls a nested stored procedure and passes along that varbinary(max) as an input parameter to the nested stored procedure.
    Is a copy of the BLOB provided to the nested stored procedure (passed by value) OR is the BLOB passed by reference.
    My interest is in understanding the potential memory hit when handling large BLOBs in this environment.
    For example, if the BLOB is 200MB, will SQL server need to allocate memory for a new copy each time it's passed to another stored procedure at the next nestlevel?
    Looks like table type parameters are passed by reference, but I haven't been able to find any info on BLOBS in this context.

    The semantics for parameters in SQL Server is copy-in/copy-out. However, this does not mean that there cannot be optimizations. That is, there is no need to copy the BLOB, as long as the procedure does not change it. Whether they actually have such an optimization,
    I don't know.
    I composed the repro below, and it is sort of interesting. If I restart my instance (SQL 2014), the memory usage grows with about 40 M for each nesting call, which certainly indicates that the BLOB is copied over and over again. But if I then run it again,
    the growth is not the same. This may be because, it uses buffers already available. (A BLOB has to be a handle like a table when it is over some size.) Then again, it means that it is squeezing something else out of the cache.
    CREATE PROCEDURE K  @h varchar(MAX) AS
       SELECT SUM(pages_kb)*8192 AS K, datalength(@h) as Dlen FROM sys.dm_os_memory_clerks
       SELECT @h = ''
    go
    CREATE PROCEDURE L  @h varchar(MAX) AS
       SELECT SUM(pages_kb)*8192 AS L1, datalength(@h) as Dlen FROM sys.dm_os_memory_clerks
       EXEC K @h
       SELECT SUM(pages_kb)*8192 AS L2, datalength(@h) as Dlen FROM sys.dm_os_memory_clerks
       --SELECT @h = ''
    go
    CREATE PROCEDURE M  @h varchar(MAX) AS
       SELECT SUM(pages_kb)*8192 AS M1, datalength(@h) as Dlen FROM sys.dm_os_memory_clerks
       EXEC L @h
       SELECT SUM(pages_kb)*8192 AS M2, datalength(@h) as Dlen FROM sys.dm_os_memory_clerks
       --SELECT @h = ''
    go
    CREATE PROCEDURE N  @h varchar(MAX) AS
       SELECT SUM(pages_kb)*8192 AS N1, datalength(@h) as Dlen FROM sys.dm_os_memory_clerks
       EXEC M @h
       SELECT SUM(pages_kb)*8192 AS N2, datalength(@h) as Dlen FROM sys.dm_os_memory_clerks
       --SELECT @h = ''
    go
    DECLARE @h varchar(MAX) = replicate(cast('ABCD' AS varchar(MAX)), 1E7)
    EXEC N @h
    go
    DROP PROCEDURE K, L, M, N
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Printing nested collections

    I have a struts application and trying to display a nested collection. For example, I have an arraylist of Persons object which in turn has a collection of Accounts object. Whats the syntax for iterating through the nested collection using the tags like
    <logic:iterate id="item" name="myList" scope="request" >
    <bean:write name="item" property="firstName"/>
    * How do I iterate through the nested collection of Accounts here
    </logic:terate>
    I want to avoid writing scriplets for the same.
    Thanks

    Collection is not folder it is just the file that is created in the bridge preferences to ease out the navigation for the user.
    Go to C:\Users\<user name>\AppData\Roaming\Adobe\Bridge CS5\Collections
    you will find the filelist files ther with the name of your collection, if you open those file in the wordpard you will see the path of the files included in the collection.
    hence I dont think the nested collection could be created becuase we cannot refer the filelist file in another filelist file.

  • How to migrate nested collections?

    In our SCCM 2007 environment we have dozens of nested collections, some are 4 or 5 collections deep too.   How do you migrate that over to CM2012?   In a lab environment I tried to migrate the collection.
    TestCollection\One Deep\Two Deep\Three Deep
    Each of the 4 collection had a machine inside of it. the migration wizard worked but I don't see my collections in the CM2012 console.
    mqh7

    The Collections should be migrated, ususally it's a refresh of the console that is required to see the new folders and Collections. One thing you can do to verify the migration is checking the "objects in job" status. It will provide you with information
    about the success/failure of the migration. You can also check the migmctl.log file for detailed information about the process.
    Kent Agerlund | My blogs: blog.coretech.dk/kea and
    SCUG.dk/ | Twitter:
    @Agerlund | Linkedin: Kent Agerlund |
    Mastering ConfigMgr 2012 The Fundamentals

  • UIX DataControl : Nested Collection Help Please

    Hello all,
    I am developing an app using the ff. evironment:
    IDE: JDeveloper 9052
    UI: ADF UIX
    Core: EJB
    1. I have a Session Bean that returns a collection of a POJO containing 2 POJOs and a collection of another POJO.
    2. I created a DataControl for the Session bean, set the bean class (in the XML datacontrol) as well as the Collection type for the other property. ?I am wondering how to set the bean property for the collection elements?.
    3. I then dragged the return for each of the POJOs and collection contained in the collection onto my UIX page as a read-only table. The return values for POJOs in the collection were rendered but the return values for the nested collection is not, I can only see a table with empty rows and columns .
    This is the collection class:
    public class NestedCollection {
    public nestedCollection(){
    private Pojo1 pojo1;
    private Pojo2 pojo2;
    private Collection nestedOne;
    //...accessor methods
    What is the workaround for this?

    Found it. I did not recompile. gee

  • [svn:bz-4.0.0_fixes] 20615: fixing the regression failure caused by the nest collection level fix, an actionscript type without remote alias will resolved as " className", we should filter out the special case

    Revision: 20615
    Revision: 20615
    Author:   [email protected]
    Date:     2011-03-04 12:11:09 -0800 (Fri, 04 Mar 2011)
    Log Message:
    fixing the regression failure caused by the nest collection level fix, an actionscript type without remote alias will resolved as ">className", we should filter out the special case
    Modified Paths:
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/AmfIO.java

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • [svn:bz-4.0.0_fixes] 20586: backporting nest object level fix and nest collection level fix from blazeds trunk to 4 .0.0.fixes branch

    Revision: 20586
    Revision: 20586
    Author:   [email protected]
    Date:     2011-03-03 13:44:51 -0800 (Thu, 03 Mar 2011)
    Log Message:
    backporting nest object level fix and nest collection level fix from blazeds trunk to 4.0.0.fixes branch
    checkintests pass
    Modified Paths:
        blazeds/branches/4.0.0_fixes/modules/common/src/flex/messaging/errors.properties
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/endpoints/AbstractEndpoint.j ava
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/SerializationContext.java
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/Amf0Input.java
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/Amf0Output.java
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/Amf3Input.java
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/Amf3Output.java
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/AmfIO.java

    Revision: 20586
    Revision: 20586
    Author:   [email protected]
    Date:     2011-03-03 13:44:51 -0800 (Thu, 03 Mar 2011)
    Log Message:
    backporting nest object level fix and nest collection level fix from blazeds trunk to 4.0.0.fixes branch
    checkintests pass
    Modified Paths:
        blazeds/branches/4.0.0_fixes/modules/common/src/flex/messaging/errors.properties
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/endpoints/AbstractEndpoint.j ava
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/SerializationContext.java
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/Amf0Input.java
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/Amf0Output.java
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/Amf3Input.java
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/Amf3Output.java
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/AmfIO.java

  • Exported nested collection only saving schema, not data?

    Robin proposed an answer of exporting multiple collections into one:
    http://social.technet.microsoft.com/Forums/en-US/3c55b873-a0c7-4cc8-9bab-eaf809f62ab0/exporting-data?forum=projectsiena
    It seems to work as long as you immediately import - this is because the collection is still in memory.  If you exit the app (or clear the collection), then only the schema can be loaded because the data itself isn't saved.
    When I look into the .zip file, I see that the schema is being written but no underlying data.
    Perhaps I'm doing something wrong and that's why I'm only getting the schema?
    I would be happy to share the project I've been working on if that would be helpful.
    Thanks!
    Thor

    thorwm,
       I was initially experiencing the same issue, but it turns out I was just confused (again).   I was building the nested collection during the OnSelect event for the Export control.   Apparently, the OnSelect event happens
    AFTER the Export control performs the export.   This can be seen by simply doing the export twice.  
       I have to look at a better way to perform the nested collection process.   Hopefully this is the same issue you are experiencing.
    -Bruton

Maybe you are looking for