transform xml data through the tab model rtf

Hello world
Here is my requirement, I need the following output
-------------------------------------------Date
Territory---District---Office---1/3/2011---1/10/2011---1/17/2011---Grand Total (header row)
Centrale---Chicago---Buffalo--100,0---99,0---100,0---299,0
-arora - 100, 0-100, 0-100, 0-300, 0
-total of chicago - 200, 0 - 199.0 - 200, 0 - 599.0
---Dallas---Arlington-100.0---99.0---100.0---299.0
-irving - 100, 0-100, 0-100, 0-300, 0
-Total of Dallas - 200, 0 - 199.0 - 200, 0 - 599.0
Total teritory - 400, 0-398, 0-400 or 0 - 1198.0


date values are the sum of Item_Count field for each office for this date
and here is my xml

rowset <>
< ROW >
< ITEM_COUNT > 50 < / ITEM_COUNT >
< DATE > 01/03/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Chicago < / DISTRICT_NAME >
< OFFICE_NAME > Buffalo < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 50 < / ITEM_COUNT >
< DATE > 01/03/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Chicago < / DISTRICT_NAME >
< OFFICE_NAME > Buffalo < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 50 < / ITEM_COUNT >
< DATE > 10/01/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Chicago < / DISTRICT_NAME >
< OFFICE_NAME > Buffalo < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 49 < / ITEM_COUNT >
< DATE > 10/01/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Chicago < / DISTRICT_NAME >
< OFFICE_NAME > Buffalo < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 50 < / ITEM_COUNT >
< DATE > 17/01/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Chicago < / DISTRICT_NAME >
Arora < OFFICE_NAME > < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 50 < / ITEM_COUNT >
< DATE > 17/01/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Chicago < / DISTRICT_NAME >
Arora < OFFICE_NAME > < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 50 < / ITEM_COUNT >
< DATE > 01/03/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Chicago < / DISTRICT_NAME >
Arora < OFFICE_NAME > < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 50 < / ITEM_COUNT >
< DATE > 01/03/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Chicago < / DISTRICT_NAME >
Arora < OFFICE_NAME > < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 50 < / ITEM_COUNT >
< DATE > 10/01/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Chicago < / DISTRICT_NAME >
Arora < OFFICE_NAME > < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 49 < / ITEM_COUNT >
< DATE > 10/01/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Chicago < / DISTRICT_NAME >
Arora < OFFICE_NAME > < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 50 < / ITEM_COUNT >
< DATE > 17/01/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Chicago < / DISTRICT_NAME >
Arora < OFFICE_NAME > < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 50 < / ITEM_COUNT >
< DATE > 17/01/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Chicago < / DISTRICT_NAME >
Arora < OFFICE_NAME > < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 50 < / ITEM_COUNT >
< DATE > 01/03/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Dallas < / DISTRICT_NAME >
Arlington < OFFICE_NAME > < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 50 < / ITEM_COUNT >
< DATE > 01/03/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Dallas < / DISTRICT_NAME >
Arlington < OFFICE_NAME > < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 50 < / ITEM_COUNT >
< DATE > 10/01/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Dallas < / DISTRICT_NAME >
Arlington < OFFICE_NAME > < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 49 < / ITEM_COUNT >
< DATE > 10/01/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Dallas < / DISTRICT_NAME >
Arlington < OFFICE_NAME > < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 50 < / ITEM_COUNT >
< DATE > 17/01/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Dallas < / DISTRICT_NAME >
Arlington < OFFICE_NAME > < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 50 < / ITEM_COUNT >
< DATE > 17/01/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Dallas < / DISTRICT_NAME >
Arlington < OFFICE_NAME > < / OFFICE_NAME >
< / ROW >
< ITEM_COUNT > 50 < / ITEM_COUNT >
< DATE > 01/03/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Dallas < / DISTRICT_NAME >
Irving < OFFICE_NAME > < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 50 < / ITEM_COUNT >
< DATE > 01/03/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Dallas < / DISTRICT_NAME >
Irving < OFFICE_NAME > < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 50 < / ITEM_COUNT >
< DATE > 10/01/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Dallas < / DISTRICT_NAME >
Irving < OFFICE_NAME > < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 49 < / ITEM_COUNT >
< DATE > 10/01/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Dallas < / DISTRICT_NAME >
Irving < OFFICE_NAME > < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 50 < / ITEM_COUNT >
< DATE > 17/01/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Dallas < / DISTRICT_NAME >
Irving < OFFICE_NAME > < / OFFICE_NAME >
< / ROW >
< ROW >
< ITEM_COUNT > 50 < / ITEM_COUNT >
< DATE > 17/01/2011 < / DATE >
CENTRAL of < AREA > < / TERRITORY >
< DISTRICT_NAME > Dallas < / DISTRICT_NAME >
Irving < OFFICE_NAME > < / OFFICE_NAME >
< / ROW >
< / LINES >


Greatly appreciate any help

Thanks in advance

Have you tried tweaking the table to achieve the desired result and create a PivotTable?

I can send you the RTF if you give me an e-mail address or send me an email to [email protected]

Thank you!

I sent you the e-mail-based model. Take a peek inside.

Published by: BIPuser on January 21, 2011 13:52

Tags: Business Intelligence

Similar Questions

  • Can I leave XML on the data of the group model cascades BB10 apps?

    I did the analysis of XML in the XML data model & it's work very well. But impossible to sort data that's why I try to group data model...

    Please help me...

    Thanks in advance.

    Hi all

    Thank you guys for your valuable response.

    I did the code below.

    void::callXMLList() {} A
    actIndicator = myNavPane->findChild ("xmlIndicator");
    listView = myNavPane->findChild ("xmlListView");
    GroupDataModel * model = new GroupDataModel();

    Load the XML data in the local file
    XDA XmlDataAccess;
    QVariant list = xda.load)
    QDir::currentPath() + "/ app/native/assets/contacts.xml."
    (' / contacts/contact ");

    Add data to the model
    model-> insertList (()) list.value;
    QStringList key;
    me?<>
    model-> setSortingKeys (key);
    Create a ListView and add the template to the list
    ListView * listView = new ListView;
    listView-> setDataModel (model);
    QTextStream out (stdout);
    off< "\n="" connect="">
    actIndicator-> stop();
    }

    Thank you once again...

  • source of XML data in the db column?

    Hello world

    If I want to use XML data as the source of data for BI Publisher, these data can be stored in a column of data

    or do I have to store the data from the source XML files in a file system?

    If it can be stored in a column db - is there something I need to consider regarding the definition of the data source and the creation of the data model?

    Thank you

    Concerning

    Andy

    These data can be stored in a column of data

    or do I have to store the data from the source XML files in a file system?

    Yes

    the data can be stored in

    (1) table xmltype or clob or blob column or...

    so you can analyze this column somehow by xquery or xmltable or...

    (2) in the file of the bone

    bfilename as therapy

    xmltype( bfilename('GET_XML', xmlfilename.xml))
    
  • I have a new macbook pro and want to install CS3 on it. I followed all the download links. Found my serial number for my Adobe account and get up to date through the whole &amp; get this message ' put in place has encountered an error and cannot continue,

    I have a new macbook pro and want to install CS3 on it. I followed all the download links. Found my serial number for my Adobe account and get up to date through the whole & get this message ' put in place has encountered an error and cannot continue, contact adobe customer support for assistance ' all I want is for CS3 to install on my new computer so I can continue to work and do not have to spend hours working it help Please. CC is not an option, because I work in a country with no reliable unlimited internet access

    New computer means new problems of system operating with the OLD software means

    Fix possible Mac 10.10.4 (at least for Premiere Pro) https://forums.adobe.com/thread/1891705

    10.10 mac. ? sometimes has problems, often related to the 'default' permissions that need to be changed

    -solution https://forums.adobe.com/thread/1689788 of a person

  • Select this OPTION to generate XML data from the table using XMLELEMENT, XMLAGG gives error ORA-19011 string buffer too small

    My select statement fails with the error:


    The ORA-19011 string buffer too small


    The select statement looks like:


    SELECT TO_CLOB)

    XMLELEMENT ("accounts",

    XMLELEMENT ("count",

    XMLATTRIBUTES)

    rownum AS "recordId."

    To_date('20130520','YYYYMMDD') AS "datestarted."

    123456 AS "previousBatchId."

    56789 AS 'previousRecordId '.

    ),

    ....

    .... .

    .....

    XMLFOREST)

    SIG_ROLE AS "SignatoryRole."

    To_char(TRANSFER_DATE,'YYYY-mm-DD') AS "TransferDate."

    NVL(Reason,0) AS 'reason '.

    ) AS the 'transfer '.

    )

    ()) AS CRDTRPT

    OF ANY_TABLE;

    • It looks like I can choose only 4000 characters using the SELECT statement (please, correct me if I'm wrong)

    I'd use the XMLGEN package. But the environment team says no mounted drives in the future with the arrival of the EXADATA.

    NO HARD DRIVE MOUNTED, NO ACCESS TO THE DATABASE DIRECTORIES

    No UTL_FILE

    I need to use the REEL spool the resulting XML data of the SELECT query.

    SQL is a standard in my org, but I can do with a PL/SQL solution also to load data into a table (cannot use a COIL with PL/SQL)

    What I do is:

    1. a column of type CLOB to a xml_report of the loading of the above SELECT query table
    2. Then using SELECT * FROM xml_report to SPOOL the data to a file report.xml

    No need of XMLTYPE data behind. Xml data stream is fine for me.

    In addition, I need to validate the XML file, also using XSD.

    Problem is that the resulting lines of the select query are supposed to be from 15000 to 20000 bytes long.

    Oracle database version: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    A Suggestion or a solution to this problem would be appreciated.

    (Sorry for the use of "BOLD", just to make it more readable and highlight the imp points)

    Bravo!

    Rahul

    It looks like I can choose only 4000 characters using the SELECT statement (please, correct me if I'm wrong)

    You use the right method.

    There is an implicit conversion from XMLType to the data type VARCHAR2 as expected by the function TO_CLOB, where the limitation, and the error.

    To serialize XMLType to CLOB, use the XMLSerialize function:

    SELECT XMLSerialize (DOCUMENT

    XMLELEMENT ("accounts",

    ...

    )

    )

    OF ANY_TABLE;

    For the rest of the requirement, I wish you good luck trying to spool the XML correctly.

    You may need to play around with the SET LONG and SET LONGCHUNKSIZE commands to operate.

  • Insert XML data from the Table-&gt; back to null

    Dear Experts,

    -I have table xml as below:

    Example of CREATE TABLE (XML_spec XMLTYPE);

    Insert in the example
    Select ' < name of Message = "dataStaticInvestor" type = "IncomingMessage" >
    < name of field = "batchReference" > OPENINGBATCH000000 < / field > < List name = "data" >
    < = record name "data" >
    < name of field = "externalReference" > 01234567890aaaaaaa < / field >
    < name of field = "participantID" > OD001 < / field >
    < name of field = "participantName" > EQUITY SECURITIES INDONESIA, PT < / field >
    < / recording >
    < = record name "data" >
    < name of field = "externalReference" > 01234567890aaaaaaa < / field >
    < name of field = "participantID" > OD001 < / field >
    < name of field = "participantName" > EQUITY SECURITIES INDONESIA, PT < / field >
    < / recording >
    < = record name "data" >
    < name of field = "externalReference" > 01234567890aaaaaaa < / field >
    < name of field = "participantID" > OD001 < / field >
    < name of field = "participantName" > EQUITY SECURITIES INDONESIA, PT < / field >
    < / recording >
    < / list >
    < / message > ' double.

    Select * example;

    create table hasil1 (c1 varchar2 (500), c2 varchar2 (500), c3 varchar2 (500));

    -This step I create the procedure to insert xml data into the table as the batch.

    DECLARE
    x XmlType;
    BEGIN
    Select XML_SPEC in x for example;

    insert into hasil1
    SELECT
    p.Extract('/Record/Field/@externalReference').getstringval (C1),
    p.Extract('/Record/Field/@participantID').getstringval (C2),
    p.Extract('/Record/Field/@participantName').getstringval () as c3
    TABLE (XMLSequence (Extract(x,'Message/List/Record'))) p;
    commit;
    END;
    /

    -when the result of select hasil1, the output is back 3 rows and 3 columns, but all data is a null *.

    Best regards
    Sigcle

    You don't explain what output you need, but I guess something like this:

    SQL> insert into hasil1 (c1, c2, c3)
      2  select x.c1, x.c2, x.c3
      3  from example t
      4     , xmltable(
      5         'Message/List/Record'
      6         passing t.xml_spec
      7         columns c1 varchar2(500) path 'Field[@name="externalReference"]'
      8               , c2 varchar2(500) path 'Field[@name="participantID"]'
      9               , c3 varchar2(500) path 'Field[@name="participantName"]'
     10       ) x
     11  ;
    
    3 rows inserted
    
    SQL> select * from hasil1;
    
    C1                     C2        C3
    ---------------------- --------- --------------------------------
    01234567890aaaaaaa     OD001     EQUITY SECURITIES INDONESIA,PT
    01234567890aaaaaaa     OD001     EQUITY SECURITIES INDONESIA,PT
    01234567890aaaaaaa     OD001     EQUITY SECURITIES INDONESIA,PT
     
    
  • Filtering XML data in the grid

    I can't sem to figure out how to filter my XML data before entering my data grid. I want to load only the XML data with the ID 'BALUSTER' attribute and have tried to enter:

    data_grid. DataProvider dp =. (@ID IS 'BALUSTER');

    in my function xmlLoaded without success.  I'm fairly new to as3 and could certainly use the help.  Thank you.

    var dpataProvider;
    var products_xml:XML;
    var xmlReq:URLRequest = new URLRequest("data/products.xml");
    var xml_loader:URLLoader = new URLLoader();

    function xmlLoaded(event:Event):void {}
    var ldr:URLLoader = event.currentTarget as URLLoader;
    var xmlDP:XML = new XML (ldr.data);
    DP = new DataProvider (xmlDP);
    data_grid. DataProvider = dp;
    }

    xml_loader. Load (xmlReq);
    xml_loader.addEventListener (Event.COMPLETE, xmlLoaded);

    Assign the filtered data (not the original) to the data provider:

    function xmlLoaded(event:Event):void {}
    var ldr:URLLoader = event.currentTarget as URLLoader;
    var xmlDP:XML = new XML (ldr.data);
       
    var data: XML = ;
        data.setChildren (xmlDP.PRODUCTS. (@ID) IS 'BALUSTER'));
       
    DP = new DataProvider (data);
    data_grid. DataProvider = dp;
    }

  • Catch / know the XML data in the form of PDF (without doing send XML)

    It is possible from a PDF form using get JS / know the XML data in the current form?

    I need to get the same XML data that would be generated with the "export data" function to Adobe Professional.

    THX!

    OK now I get... You can use the command:

    xfa.datasets.data.saveXML ("pretty")

    Paul

  • Insert XML data into the MySQL database

    Hi all, I'm new with XML and I need help with the insertion of XML data in the mysql database using coldfusion. I looked on the Coldfusion Documentation and saw how to convert XML to a Coldfusion query... but there was no example of how to do an insert. If anyone can give me a good example or point me towards a good direction on how to do it, I would really appreciate it.

    Thank you very much in advance
    Alfie

    Nevermind, I finally managed to do work!

  • Load xml data into the table

    Hi all

    I have an XML (emp.xml) with data below:

    -< root >
    -< row >
    < name > steve < / lastname >
    < 30 > < / Age >
    < / row >
    -< row >
    < name > Paul < / lastname >
    <>26 < / Age >
    < / row >
    < / root >

    I would like to create a stored procedure to store the xml data into the EMP table.

    EMP
    LastName age
    Steve 30
    Paul 26

    I tried to watch all threads related to this forum, but cannot find the right wire. Any help is greatly appreciated. Thank you

    With

    SQL>  select * from xmltable('root/row' passing xmltype('
    
    steve
    30
    
    
    Paul
    26
    
    ') columns lastname path 'lastname',
                       Age path 'Age')
    /
    LASTNAME   AGE
    ---------- ----------
    steve      30
    Paul       26   
    

    You can now just make a

    Insert into emp as select...

  • Entry of data in sequence through the "tab" key

    Hello

    So I created a lot of enum, string and digital data entry fields and they are all placed in the front panel.

    The only problem is when I start the program, I want the cursor position by default to be in the first field. After that, if the user presses the "tab" key, it should go to the next button and so on.

    In my code, it's fairly random, and I don't know of any way to change the order/sequence of fields so that the "tab" key moves the focus to the field next where I want it.

    Any help?

    Go to Edition and select "Command Tab" to set the order of Tab for your orders on the front panel.

  • Load the XML data to the UNIX server directly to Tables of database relational

    Is there a way I can load some data from an XML file in the Oracle Tables, without going through the input file XML in a directory of the Oracle server. My XML file resides on the UNIX application server. And I need to load the data directly into database tables. Without load them into the database directory.


    Also, I'm looking for a solution that would not load my database much and affect other processes running. Can be done using SQL Loader?


    Oracle database version: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    Thanks for the companions of answers!

    There I helped to learn a lot of options.

    But the easiest using UNIX server that worked for me was to use an XSLT transformation to convert the XML file to a delimited file. (Load the unix server, save the Oracle resources).

    UNIX 'xsltproc' feature was not a bad option.

    Then use SQL Loader to load into tables.

    Bravo!

    Rahul

  • extract xml data in the collection

    Hello

    I want to extract xml data in a collection of collection


    could any body you tell me if we succeed in sql
    ex:

    declare
    type t_code is table of number;
    type r_rec is record (c_name varchar2 (100),)
    c_code vrachar2 (100),
    c_code_number t_code);
    type t_rec is the table of the r_rec;

    l_xml xmltype: = xmltype (')

    < body >
    <>campaign
    < code > < code > CAMP_1
    < description > Campaign_1 < / description >
    < rateplans >
    < rateplanCode > 1 < / rateplanCode >
    < rateplanCode > 2 < / rateplanCode >
    < rateplanCode > 3 < / rateplanCode >
    < / rateplans >
    < / campaign >
    <>campaign
    < code > < code > CAMP_2
    < description > Campaign_2 < / description >
    < rateplans >
    < > 11 rateplanCode < / rateplanCode >
    < > 22 rateplanCode < / rateplanCode >
    < rateplanCode > 33 < / rateplanCode >
    < / rateplans >
    < / campaign >
    <>campaign
    < code > < code > CAMP_3
    < description > Campaign_3 < / description >
    < rateplans >
    < > 111 rateplanCode < / rateplanCode >
    < > 222 rateplanCode < / rateplanCode >
    < > 333 rateplanCode < / rateplanCode >
    < / rateplans >
    < / campaign >
    < result >
    < > 00 resultCode < / resultCode >
    < resultText > success < / resultText >
    < / result >
    (< / body > ');

    Start

    Select / * logic exrat value of xml in the final collection * /.
    Double;

    end;

    I want data in the model in my final collection t_rec

    CAMP_1, Campaign_1, nested_table (1,2,3)
    CAMP_2, Campaign_2, nested_table (11,22,33)
    CAMP_3, Campaign_3, nested_table (111,222,333)

    Published by: 948596 on May 17, 2013 05:17

    Like this

    SQL> declare
      2       type t_code is table of number ;
      3       type r_rec is record
      4       (
      5          c_name varchar2(100),
      6          c_code varchar2(100),
      7          c_code_number t_code
      8       );
      9       type t_rec is table of r_rec ;
     10       l_rec t_rec := t_rec();
     11       l_xml xmltype := xmltype
     12                        ('
     13                           
     14                           
     15                           CAMP_1
     16                           Campaign_1
     17                           
     18                           1
     19                           2
     20                           3
     21                           
     22                           
     23                           
     24                           CAMP_2
     25                           Campaign_2
     26                           
     27                           11
     28                           22
     29                           33
     30                           
     31                           
     32                           
     33                           CAMP_3
     34                           Campaign_3
     35                           
     36                           111
     37                           222
     38                           333
     39                           
     40                           
     41                           
     42                           00
     43                           Success
     44                           
     45                           '
     46                        ) ;
     47  begin
     48       for i in (
     49                 select rownum id
     50                      , t1.code
     51                      , t1.description
     52                      , t2.rate_plan_code
     53                      , row_number() over(partition by t1.code order by t2.rate_plan_code) rno
     54                   from xmltable
     55                        (
     56                             '/body/campaign' passing l_xml
     57                             columns
     58                               code        varchar2(100) path 'code',
     59                               description varchar2(100) path 'description',
     60                               rate_plans  xmltype       path 'rateplans'
     61                        ) t1
     62                      , xmltable
     63                        (
     64                             '/rateplans/rateplanCode' passing t1.rate_plans
     65                             columns
     66                               rate_plan_code varchar2(100) path '.'
     67                        ) t2
     68                )
     69       loop
     70            if i.rno = 1 then
     71               l_rec.extend;
     72               l_rec(l_rec.count).c_name := i.description;
     73               l_rec(l_rec.count).c_code := i.code;
     74               l_rec(l_rec.count).c_code_number := t_code();
     75            end if;
     76            l_rec(l_rec.count).c_code_number.extend;
     77            l_rec(l_rec.count).c_code_number(i.rno) := i.rate_plan_code;
     78       end loop;
     79       for i in 1..l_rec.count
     80       loop
     81          dbms_output.put_line(l_rec(i).c_code || '  ' || l_rec(i).c_name);
     82          for j in 1..l_rec(i).c_code_number.count
     83          loop
     84             dbms_output.put_line(l_rec(i).c_code_number(j));
     85          end loop;
     86       end loop;
     87  end;
     88  /
    CAMP_1  Campaign_1
    1
    2
    3
    CAMP_2  Campaign_2
    11
    22
    33
    CAMP_3  Campaign_3
    111
    222
    333
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    
  • I would like to present the entire pdf document not the xml data in the pdf file.

    Hello

    I have designed a form with some fields asking for details of the client.

    I have provided a "submit" on the PDF button. When the user clicks on submit button after filling in all the necessary details in the form. The submit button calls the servlet class and reads the data from the analysis of xmls pdf file and put in the database table.

    But I want to implement a senario where if the user clicks on the submit button. The full pdf and data inside get saved on the file server or the documentum server. Here, I don't want to read the fields in the form. I want to get and save the entire form.

    Please let me know how to do.

    concerning

    Sunil

    Make sure you use a normal button and set the property to "submit". Then you will see a tab for defining the type of presentation.

    Do not use the built-in submit button.

    Jasmine

  • Send XML data for the processing of credit cards

    I'm implementing the presentation of an XML document in my Web site for the processing of credit cards using the API from my dealer.

    This is the format that I use for my application. For some reason, I get an error message saying "invalid request Format. XML request is not correct or the application is incomplete. »

    I know that the XML itself is correct, as I submit directly through the URL string in the browser and it works OK.

    Here's what I do:

    < cfsavecontent variable = 'strXML' >

    <!-NOTE: test data below - not my actual data-->
    < txn >
    < > 123456 ssl_merchant_ID < / ssl_merchant_ID >
    < > 123456 ssl_user_id < / ssl_user_id >
    < ssl_pin > V6NJ3A < / ssl_pin >
    < ssl_transaction_type > ccsale < / ssl_transaction_type >
    < ssl_card_number > 1111111111111111 < / ssl_card_number >
    < ssl_exp_date > 1210 < / ssl_exp_date >
    < ssl_amount > 2.34 < / ssl_amount >
    < ssl_salestax > 0.00 < / ssl_salestax >
    < ssl_cvv2cvc2_indicator > 1 < / ssl_cvv2cvc2_indicator >
    < ssl_cvv2cvc2 > 321 < / ssl_cvv2cvc2 >
    < 1234 > ssl_invoice_number < / ssl_invoice_number >
    < ssl_customer_code > 1111 < / ssl_customer_code >
    client < ssl_first_name > < / ssl_first_name >
    name of < ssl_last_name > < / ssl_last_name >
    < ssl_avs_address > 1234 main st. < / ssl_avs_address >
    the apt b < ssl_address2 > < / ssl_address2 >
    < ssl_city > any city < / ssl_city >
    < ssl_state > ST < / ssl_state >
    < ssl_avs_zip > 55555 < / ssl_avs_zip >
    < ssl_phone > 555-555-5555 < / ssl_phone >
    < ssl_email > [email protected] < / ssl_email >
    < / txn >

    < / cfsavecontent >

    < cfhttp url = "https://www.myvirtualmerchant.com/VirtualMerchant/processxml.do?xmldata=" method = "post" >
    < cfhttpparam type = "XML" value = "trim (strXML)" >
    < / cfhttp >

    < cfoutput > #cfhttp. FileContent # < / cfoutput >



    Can someone tell me what I am doing wrong?

    (The developer's guide is available here):

    https://www.myvirtualmerchant.com/VirtualMerchant/download/developerGuide.PDF)

    Thank you!

    Seek to deepen your original message.

    You're saying this...
    "I know that the XML itself is correct, I can submit directly through
    the URL string in the browser and it works well. »

    Who said to me that you are using URL get parameters not post form
    parameters. Also you do not have the name of the url parameter in the url
    string, unless you put the value one. If you use the
    Tag, it must contain the name. Finally you seem
    Miss the sharps.

    Give this or something like this a try.

    <>
    URL = "https://www.myvirtualmerchant.com/VirtualMerchant/processxml.do".
    method = "get" >

Maybe you are looking for

  • Where are the repairers of international limited in the reunion island?

    My 9 - month, Kirabook (PSU7FA00H00K touchscreen 8.1 Win) is some sort of major failure. After a few flashes of white and return to the normal display, the screen now everything between colors, white, black, red, green, blue (repeating constantly). I

  • 5 month old contact who won't go away

    Data sheet: Windows 7 Home Premium Skype V 6.18.59.106 Hiya All Wondering if someone could please be able to help me to get rid of what appears to be a former notification to the contacts which I do not know how to get rid of and is quite annoying. I

  • Satellite L450D - 13 X Bluetooth or not?

    I just received a portable Satellite L450D - 13 X without a manual and I would like to know if it has bluetooth I want to download the photo on Nokia mobile which has the BluetoothIf he doesn't buy an adapter and software.for it.And what is the diffe

  • Need help with Tempo on U-series of satellites

    I installed tempo and try to download the last updae of bios it says that I need. but I get the following error message... + Unfortunately, your personalized list of drivers has expired. Please click on a link below for more information. Can anyone h

  • Call a help file (.chm) when press a button on the front

    I can't call a help file (.chm) when press a button on the front. I have only called when press a key then right click the mouse and navigate the selected key for the button.