Matrix Report - Page Protect

From the Help: "Page Protect is not supported for repeating frames that are part of a matrix. When repeating frames are related via matrix object, setting Page Protect will not effect them..."
Has anyone found a way around this problem? If the data within my repeating frame will not fit on the current page, I would like to send the whole frame to a new page. Currently, the last few records get sent to the new page and the group is broken up. Any help/suggestion would be appreciated.
Regards,
Zachary Hill

Thanks for the suggestion, but the problem is each repeating frame can have 1 to X number of rows. There is no standard maximum that would work for all cases besides 1. Having only one frame per page causes a lot of wasted space/wasted paper and doesn't look good either.

Similar Messages

  • Matrix Report overflows to other page

    We have a Matrix Report (Report Builder 6.0.8.20.1) with a lot of columns. The report is in landscape style, but still the matrix will not fit horizontally.
    The second part of the matrix will be displayed on the next page, while there is enough space to display the second part of the matrix on the same page, below the first part of the matrix.
    Does anyone know why Report Builder has this behaviour?
    Thanks in advance,
    Lennart de Vos
    PS: All properties Page Protect, Page Break Before/After have been set to "No". The property Print Direction of the repeating frames in the Matrix cannot be changed

    hello,
    if i understand correctly, the matrix overflows in the horizontal direction to another page and you would like this part to show up below the first part on the same page insead ? much like wrapping the matrix ?
    unfortunately reports does not support wrapping of layout objects. if a layout object exceeds the page in any direction the overflow part will be pushed to another page.
    thanks,
    ph.

  • Page break in Matrix report

    Hello Experts,
    I am trying to create a custom purchase order that shows shipping distributions.
    I have been successful so far in creating a matrix report that shows this. However, the client's requirement is that I limit the items to at least 10 items per page.
    I need to be able to create a page break to have 10 items per page and to have the header be included in the next page since the header includes the branches where the goods are supposed to be distributed.
    I have tried several things but I was not able to make it work.
    I can provide the xml and the rtf template if needed. Thank you.

    Hi Bifacts,
    Just sent the xml and rtf files your way. I appreciate any feedback you can give as I've been stuck on this for a while now.
    If anyone else can help out, it will be greatly appreciated!

  • Page level total in a mulipage matrix report

    hi!
    I am facing a problem in marix reports because a very late change in customer requirement.he wants a page total at the end of every page in the report ,because these reports are matrix style,they involve cross product.i can get the grand total at the end of the report because the summary column works well at report level,but when i try to reset it at page level,at times it shows blank or generates an error that matrix report fetches everthing at report level and cannot generate results at page level.but now how do i get these page totals without changing these matrix reports.Plz reply ASAP
    Regards
    simer
    The Oracle Reports Team
    http://otn.oracle.com/

    Hi I was browsing through the forum, and found no reply to your question, if you still interested about the solution I can send you my RDF file where I did the page level total in matrix report as well as brought
    forward in next page, this is something very hard for me to explain in word, so if you can give me your email address I can send you the RDF file.
    Thanks & Regards
    Eamon

  • Matrix report in one page

    hello dear,
    i have a matrix report with three frames with the directions:
    1-down
    2-acroos
    3-down
    the problem is that the 2nd frame expanded so some data goes to another pages
    i want to show whole report in one page only.
    please guide me
    thanks

    There isn't any way to do this. Reports breaks up across page boundaries and doesn't continue attempting to fit another part of the matrix on the same page.

  • Page level totals in a matrix report

    hi all,
    Is it possible to have any kind of page level totals in a matrix report??
    i tried it manually, but it gave me an error as follows,
    REP-1266: Column '<column name>': Page Level columns are not allowed in a Cross Product.
    Thanks
    Martin

    Martin,
    Is one of your report Repeating frames set to break on pages? If so, then go to the data model and create the variables you need inside the group of the repeating frame. If you are doing a summary column, don't forget to set the repeat at: property correctly. Then just carefully add the fields to the layout. The matrix layout can be very difficult to work with so what I do is carefully expand out all the frames so they are not overlapping with the outermost frame being on the very outside. Use the Fill Color setting on the layout to paint the frames so you can see what is sitting on top of what. It may take a few shots to get it right.
    Have you worked with Oracle analytic functions? They can really make your life easy by doing all of the summing at various levels. Also look into GROUPING SETS they are the bomb! Check out the URL below for more info:
    http://orafaq.com/node/55
    Good luck,
    matt

  • Oracle matrix report split in two pages

    hi,
    my matrix report is spliting in two pages. All columns are ok but the total of the columns shows *** due to length problem so i increase the columns width and the report goes in two pages now.
    Is there any way to show the totals in without decresing the width eg..
    123456789111
    can be shows like
    1234567
    89111
    i already using smallest fonts
    thanks

    helloooooooooooooooooo

  • Scramble layout when split a large matrix report in separate PDF page

    Dear All,
    I have large matrix report, and set the destype=cache, desformat=PDF, width=11, height=8.5 (at Main Section property).
    This report running well and resulted PDF file.
    But the problem is in the layout, i got a scramble layout and sometimes there are empty boxes.
    I thinks, this cause of the matrix size exceed the size of section (width & height at Main Section property).
    Anyone have solution for this?
    Thanks before..............

    Must admit that I never saved as txt
    Looks like a bug to me. What is the version of reports?
    Marcos

  • Calculate percentage between two rows in a matrix report with a single row group in SSRS 2008

    I need your help. I have a matrix report in ssrs 2008. The report contain one field value column and one value column. I need to calculate a percentage for two values. For example : row 1 : Discount 10 Row 2 : Sales 100 Result : 10/100. I have only one
    row group, I need to have a condition where Field = Discount % on Revenue then Discount/Total Turnover. Because of theĀ  grouping for total, I am not being able to calculate the %, its just totalling the % discount. Kindly refer to the snapshot of the
    report.

    Hi Thanks a lot for your answer, but unfortunately it didn't work,the report is reading from a stored procedure which I have unpivot to convert all columns into rows, so that's why Discount % on Revenue, Discount and Total Turnover is found in one column.
    So the Field!Col.Value is the Discount % on Revenue, Discount and Total Turnover. I have tried to change the code to
    "=SUM(IIF(Fields!Col.Value = "Discount",Fields!value.Value),0))
    /IIF(SUM(IIF(Fields!Col.Value = "Turnover Total",Fields!value.Value),0)) = 0 ,
    Nothing,SUM(IIF(Fields!Col.Value = "Turnover Total",Fields!value.Value),0)))" but to no avail. Any other suggestion will be most welcome.
    Thanks.
    If everything you're getting from stored procedure then you need to calculate and bring the value from there itself.
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Matrix Report - REP-1813:Object object name too large to fit in matrix cell

    I had this problem when running a matrix report. The report details are as follow :
    Query : select department,work,salary from sal;
    matrix row field : department
    matrix column field : work
    matrix cell field : salary
    data inserted into table sal :
    department : 10
    work : clerk
    salary : 1000
    I had created the same record for 60 times. Meaning there are 60 records(with same data) in the table. When I run the report, I got the error. But, if I deleted some records, it worked fine.
    In fact, I had already changed the 'Vertical Elasticity' property for all repeating frames to 'Variable'.
    Could somebody please help me to solve this. It is urgent. Thanks in advance.

    Hi,
    Your problem is bacause the innermost fame which is printing salary per row&column is printed 60 times. (because the job & dep are same for all 60 records). You get this error when the inner most frame grows to next page. Try this with setting the max no.of records per page to some 38 or 30 depending on page size. You will get it without error.
    Regards,
    Chandra

  • How to make Group Matrix Report in BI Publisher Template Builder for Word

    Dear All
    I have created a template in MSWord's BI Publisher for creating Matrix report, it is working fine, but i couldn't do it for Group matrix report. Kindly give me any kind of example regarding group matrix or nested group in column level and row level.
    Regards
    Haq Nawaz
    A.F.Ferguson & Co
    Edited by: 823804 on Dec 28, 2010 5:42 PM

    Hey hi,
    I m also trying to create template for matrix wih group. have you found any solution for this? if yes please forward me the information on my mail id [email protected]

  • Group above master/detail report; page break causes repeat of master frame

    Hi
    I have a a group above master/detail report; when there is a page break part way through the master frame it causes the whole master frame to be repeated on the next page. I don't want this to happen, I just want the remainder of the master frame to be displayed on the next page. any ideas?
    TIA

    Hi
    I've tried switching the "Page Protect" to No at the page level and the "Print Object On" is set to "First Page" but it doesn't solve the problem. The whole master frame is repeated on the next page when a page break occurs part way through. The master/detail Repeating Frame "Print Object On" is set to "Last Page".
    Any other ideas?
    TIA

  • Need Help : Matrix Report

    Hi Everyone,
    I Followed the steps in the link [http://docs.oracle.com/html/B13895_01/orbr_matrix.htm] to create a matrix report, In the above link they used only one table EMP to create the matrix report, but my requirment is based on two table i have to create this matrix report.
    This is my sample code,
    SELECT e.DEPTNO, e.JOB, SUM(SAL),d.loc
    FROM EMP e,dept d
    where e.DEPTNO = d.DEPTNO(+)
    GROUP BY e.DEPTNO, e.JOB,d.loc
    ORDER BY e.DEPTNO, e.JOBand i need layout like below
    ---------------------------------------------ANALYST---------CLERK---------MANAGER---------PRESIDENT---------SALESMEN---------LOCATION---------
    ---------10------------------------------------0.00------------1300.00---------2450.00------------5000.00--------------0.00--------------NEWYORK---------
    ---------20-------------------------------6000.00------------1900.00---------2975.00-----------------0.00--------------0.00--------------DALLAS-------------
    ---------30------------------------------------0.00--------------950.00---------2850.00----------------0.00----------5600.00--------------CHICAGO-----------
    Can anyone help me in this,
    Brgds,
    SriG

    Dear ,
    In Matrix Report , There are 2 or more then 2 Repeating frames , As report in going out of page u may have to set the Left to Right Repeating Frame
    Sajid

  • Oracle reports Page layout problem in HTML

    Hi,
    I am Using Oracle Reports6i to create my web reports. I found some problem with my reports page layout.
    When I print my report from browser which is generated in html, it prints my first page's page number in begining of my second page and it continues in all pages disordering the report.
    When I try to print from report builder It prints perfectly.
    I want to know how do I control my page layout in html without asking user to set anything in browser each time they print.
    Please try to help me with this.
    Thank you
    Regards
    Rajesh Sharma
    null

    dear rajesh
    i was also facing same problem,try these things it may help
    change the desformat=htmlcss
    destype=file
    and desname=(name of file where
    u want the output) ex. c:\pi.html
    after that open that file i believe it wiil be alright,pls confirm me at [email protected]
    bye
    null

  • Causing a Report page to be opened in Excel or MS Word

    Hello Every body
    I want to redirect an HTMLDB Report page to an excel spread sheet or MS Word
    in read only mode and with an order to directly send content to printer.
    Can any body tell me how to procede ?
    thanks in advance
    sidaty

    I'm not sure if something like this might help...
    Using SQL/XML you can build a view that is compliant with the Excel 2K3 Spreadsheet ML XML Schema. You can then folder the rows in the view as documents in the XML DB repository. When you open one of these documents in Excel Excel will treat it as worksheet.
    The missing piece here would be can you embed an macro in excel that will force the document to print when it's opened...
    set define off
    set echo on
    create or replace view DEPARTMENT_WORKBOOK_XML of xmltype
    with object id
       substr
         extractValue
           object_value,
           '/Workbook/Worksheet/Table/Row[@ss:Index="2"]/Cell[@ss:Index="8"]/Data/text()',
           'xmlns="urn:schemas-microsoft-com:office:spreadsheet"
            xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"'
         1,32
    as
    select xmlroot
             xmlconcat
               xmlPI(NAME "mso-application",'progid="Excel.Sheet"'),
               xmlElement
                 "Workbook",
                 xmlAttributes
                    'urn:schemas-microsoft-com:office:spreadsheet' as "xmlns",
                    'urn:schemas-microsoft-com:office:office' as "xmlns:o",
                    'urn:schemas-microsoft-com:office:excel' as "xmlns:x",
                    'urn:schemas-microsoft-com:office:spreadsheet' as "xmlns:ss",
                    'http://www.w3.org/TR/REC-html40' as "xmlns:html"
                 xmlElement
                   "DocumentProperties",
                   xmlAttributes('urn:schemas-microsoft-com:office:office' as "xmlns"),
                   xmlForest
                     USER as "Author",
                     USER as "LastAuthor",
                     '2002-10-11T15:47:35Z' as "Created",
                     'Oracle Corporation' as "Company",
                     '11.5703' as "Version"
                 xmlElement
                   "OfficeDocumentSettings",
                   xmlAttributes('urn:schemas-microsoft-com:office:office' as "xmlns"),
                   xmlElement("DownloadComponents"),
                   xmlElement
                     "LocationOfComponents",
                     xmlAttributes('file://' as "HRef")
                 xmlElement
                   "ExcelWorkbook",
                   xmlAttributes('urn:schemas-microsoft-com:office:excel' as "xmlns"),
                   xmlForest
                     '8835' as "WindowHeight",
                     '14220' as "WindowWidth",
                     '480' as "WindowTopX",
                     '60' as "WindowTopY",
                     'False' as "ProtectStructure",
                     'False' as "ProtectWindows"
                   xmlElement("HideHorizontalScrollBar")
                 xdburiType('/home/SCOTT/Workbooks/Styles.xml').getXML(),
                 xmlElement
                   "Worksheet",
                   xmlAttributes(d.DEPARTMENT_NAME as "ss:Name"),
                   xmlElement
                     "Table",
                     xmlAttributes
                       '11' as "ss:ExpandedColumnCount",
                       ( select '' || 14 + count(*) || '' from HR.EMPLOYEES e where e.DEPARTMENT_ID = d.DEPARTMENT_ID) as "ss:ExpandedRowCount",
                       '1' as "x:FullColumns",
                       '1' as "x:FullRows"
                     xmlElement("Column",xmlAttributes('25' as "ss:Width")),
                     xmlElement("Column",xmlAttributes('75' as "ss:Width")),
                     xmlElement("Column",xmlAttributes('60' as "ss:Width", '1' as "ss:Span")),
                     xmlElement("Column",xmlAttributes('5' as "ss:Index", '75' as "ss:Width")),
                     xmlElement("Column",xmlAttributes('100' as "ss:Width", '1' as "ss:Span")),
                     xmlElement("Column",xmlAttributes('8' as "ss:Index", '100' as "ss:Width")),
                     xmlElement("Column",xmlAttributes('60' as "ss:Width")),
                     xmlElement("Column",xmlAttributes('60' as "ss:Width")),
                     xmlElement("Column",xmlAttributes('75' as "ss:Width")),
                     xmlElement
                       "Row",
                       xmlAttributes('2' as "ss:Index"),                
                       xmlElement
                         "Cell",
                         xmlAttributes('2' as "ss:Index", '3' as "ss:MergeAcross", '2' as "ss:MergeDown",'DepartmentName' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Department : ' || DEPARTMENT_NAME )
                       xmlElement
                         "Cell",
                         xmlAttributes('7' as "ss:Index", 'Caption' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'ID :' )
                       xmlElement
                         "Cell",
                         xmlAttributes('8' as "ss:Index", 'Bold' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), d.DEPARTMENT_ID )
                     xmlElement
                       "Row",
                       xmlAttributes('4' as "ss:Index"),                
                       xmlElement
                         "Cell",
                         xmlAttributes('7' as "ss:Index", 'Caption' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Location :' )
                       xmlElement
                         "Cell",
                         xmlAttributes('8' as "ss:Index", 'Bold' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), STREET_ADDRESS )
                     xmlElement
                       "Row",
                       xmlAttributes('5' as "ss:Index"),                
                       xmlElement
                         "Cell",
                         xmlAttributes('8' as "ss:Index", 'Bold' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), CITY )
                     xmlElement
                       "Row",
                       xmlAttributes('6' as "ss:Index"),                
                       xmlElement
                         "Cell",
                         xmlAttributes('8' as "ss:Index", 'Bold' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), STATE_PROVINCE )
                     xmlElement
                       "Row",
                       xmlAttributes('7' as "ss:Index"),                
                       xmlElement
                         "Cell",
                         xmlAttributes('8' as "ss:Index", 'Bold' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), POSTAL_CODE )
                     xmlElement
                       "Row",
                       xmlAttributes('8' as "ss:Index"),                
                       xmlElement
                         "Cell",
                         xmlAttributes('8' as "ss:Index", 'Bold' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), COUNTRY_NAME )
                     xmlElement
                       "Row",
                       xmlAttributes('10' as "ss:Index"),                
                       xmlElement
                         "Cell",
                         xmlAttributes('7' as "ss:Index", 'Caption' as "ss:StyleID"),
                      xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Manager :' )
                       xmlElement
                         "Cell",
                         xmlAttributes('8' as "ss:Index", 'Bold' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), m.FIRST_NAME || ' ' || m.LAST_NAME )
                     xmlElement
                       "Row",
                       xmlAttributes('12' as "ss:Index"),                
                       xmlElement
                         "Cell",
                         xmlAttributes('2' as "ss:Index", 'BoldRight' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Employee ID')
                       xmlElement("Cell", xmlAttributes('BoldLeft' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'First Name')),
                       xmlElement("Cell", xmlAttributes('BoldLeft' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Last Name')),
                       xmlElement("Cell", xmlAttributes('BoldLeft' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Email Address' )),
                       xmlElement("Cell", xmlAttributes('BoldCentered' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Phone Number' )),
                       xmlElement("Cell", xmlAttributes('BoldRight' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Hire Date')),
                       xmlElement("Cell", xmlAttributes('BoldRight' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Job Title')),
                       xmlElement("Cell", xmlAttributes('BoldRight' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Salary')),
                       xmlElement("Cell", xmlAttributes('BoldRight' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Commission'))
                     xmlElement
                       "Row",
                       xmlElement("Cell",xmlAttributes('2' as "ss:Index", 'BodyDefault' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID"))
                     ( select xmlAgg
                                xmlElement
                                  "Row",
                                  xmlElement
                                    "Cell",
                                    xmlAttributes('2' as "ss:Index", 'BodyDefault' as "ss:StyleID"),
                                    xmlElement("Data", xmlAttributes('Number' as "ss:Type"),  e.EMPLOYEE_ID)
                                  xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"),  e.FIRST_NAME)),
                                  xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"),  e.LAST_NAME)),
                                  xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"),  e.EMAIL )),
                                  xmlElement("Cell", xmlAttributes('BodyRight' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"),  e.PHONE_NUMBER )),
                                  xmlElement("Cell", xmlAttributes('HireDate' as "ss:StyleID"), xmlElement("Data", xmlAttributes('DateTime' as "ss:Type"),  to_char(to_char(e.HIRE_DATE,'YYYY-MM-DD"T00:00:00.000"')))),
                                  xmlElement("Cell", xmlAttributes('BodyRight' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"),  j.JOB_TITLE)),
                                  xmlElement("Cell", xmlAttributes('Currency' as "ss:StyleID"), xmlElement("Data", xmlAttributes('Number' as "ss:Type"),  e.SALARY)),
                                  xmlElement("Cell", xmlAttributes('Percent' as "ss:StyleID"), xmlElement("Data", xmlAttributes('Number' as "ss:Type"),  e.COMMISSION_PCT))
                         from HR.EMPLOYEES e, HR.JOBS j  
                        where e.DEPARTMENT_ID = d.DEPARTMENT_ID
                          and e.JOB_ID = j.JOB_ID
                     xmlElement
                       "Row",
                       xmlElement("Cell", xmlAttributes('2' as "ss:Index", 'TableBottom' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('TableBottom' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('TableBottom' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('TableBottom' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('TableBottom' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('TableBottom' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('TableBottom' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes
                                            'SalaryTotal' as "ss:StyleID",
                                            'SUM(R[-' || ( select '' || count(*) || '' from HR.EMPLOYEES e where e.DEPARTMENT_ID = d.DEPARTMENT_ID) || ']C:R[-1]C)' as "ss:Formula")
                       xmlElement("Cell", xmlAttributes('TableBottom' as "ss:StyleID"))
                   xmlElement
                     "WorksheetOptions",
                     xmlAttributes('urn:schemas-microsoft-com:office:excel' as "xmlns"),
                     xmlElement
                       "Print",
                       xmlElement("ValidPrintInfo"),
                       xmlElement("HorizontalResolution",96),
                       xmlElement("VerticalResolution",96),
                       xmlElement("NumberOfCopies",0)
                  xmlElement("DoNotDisplayGridlines"),
                     xmlElement("Selected"),
                     xmlElement
                       "Panes",
                       xmlElement
                         "Pane",
                         xmlElement("Number",1),
                         xmlElement("ActiveRow",1),
                         xmlElement("ActiveCol",1)
                     xmlElement("ProectedObjects",'False'),
                     xmlElement("ProectedSecenarios",'False')
             ),VERSION '1.0'
      from HR.DEPARTMENTS d, HR.LOCATIONS l, HR.COUNTRIES c, HR.EMPLOYEES m
    where d.LOCATION_ID = l.LOCATION_ID
       and l.COUNTRY_ID = c.COUNTRY_ID
       and d.MANAGER_ID = m.EMPLOYEE_ID
    show errors
    create or replace trigger DEPARTMENT_WORKBOOK_DML
    instead of INSERT or UPDATE or DELETE on DEPARTMENT_WORKBOOK_XML
    begin
    null;
    end;
    show errors
    pause
    declare
      targetPath varchar2(1024) := '/home/SCOTT/Workbooks';
      xmlText CLOB :=
    '<Styles xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:x="urn:schemas-microsoft-com:office:excel">
              <Style ss:ID="Default" ss:Name="Normal">
                   <Alignment ss:Vertical="Bottom" ss:Horizantal="Left"/>
                   <Borders/>
                   <Font/>
                   <Interior ss:Color="#FFFFFF" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="Caption">
                   <Font x:Family="Swiss" ss:Bold="1" ss:Italic="1"/>
              </Style>
              <Style ss:ID="Bold">
                   <Font x:Family="Swiss" ss:Bold="1"/>
              </Style>
              <Style ss:ID="BodyDefault">
                   <Alignment ss:Vertical="Bottom" ss:Horizantal="Left"/>
                   <Borders>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                   </Borders>
                   <Font/>
                   <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="TableBottom">
                   <Alignment ss:Vertical="Bottom" ss:Horizantal="Left"/>
                   <Borders>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Bottom" ss:LineStyle="Double" ss:Weight="3"/>
                   </Borders>
                   <Font/>
                   <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="SalaryTotal">
                   <Alignment ss:Vertical="Bottom" ss:Horizantal="Left"/>
                   <Borders>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Bottom" ss:LineStyle="Double" ss:Weight="3"/>
                   </Borders>
                   <Font/>
                   <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
                   <NumberFormat ss:Format="_(&quot;$&quot;* #,##0.00_);_(&quot;$&quot;* \(#,##0.00\);_(&quot;$&quot;* &quot;-&quot;??_);_(@_)"/>
                   <Protection/>
              </Style>
              <Style ss:ID="HeadDefault">
                   <Alignment ss:Vertical="Bottom" ss:Horizantal="Left"/>
                   <Borders/>
                   <Font/>
                   <Interior ss:Color="#00CCFF" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="HireDate">
                   <Alignment ss:Vertical="Bottom" ss:Horizontal="Right"/>
                   <Borders>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                   </Borders>
                   <Font/>
                   <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
                   <NumberFormat ss:Format="[ENG][$-409]mmmm\ d\,\ yyyy;@"/>
                   <Protection/>
              </Style>
              <Style ss:ID="DepartmentName">
                   <Alignment ss:Vertical="Center" ss:Horizontal="Left"/>
                   <Borders>
                        <Border ss:Position="Bottom" ss:LineStyle="Double" ss:Weight="3"/>
                        <Border ss:Position="Left" ss:LineStyle="Double" ss:Weight="3"/>
                        <Border ss:Position="Right" ss:LineStyle="Double" ss:Weight="3"/>
                        <Border ss:Position="Top" ss:LineStyle="Double" ss:Weight="3"/>
                   </Borders>
                   <Font x:Family="Swiss" ss:Bold="1" ss:Size="18"/>
                   <Interior ss:Color="#FFCC00" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="BoldCentered">
                   <Alignment ss:Vertical="Bottom" ss:Horizontal="Center"/>
                   <Borders>
                        <Border ss:Position="Top" ss:LineStyle="Double" ss:Weight="3"/>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
                   </Borders>
                   <Font ss:Color="#FFFFFF" x:Family="Swiss" ss:Bold="1"/>
                   <Interior ss:Color="#0000FF" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="BoldLeft">
                   <Alignment ss:Vertical="Bottom" ss:Horizontal="Left"/>
                   <Borders>
                        <Border ss:Position="Top" ss:LineStyle="Double" ss:Weight="3"/>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
                   </Borders>
                   <Font ss:Color="#FFFFFF" x:Family="Swiss" ss:Bold="1"/>
                   <Interior ss:Color="#0000FF" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="BoldRight">
                   <Alignment ss:Vertical="Bottom" ss:Horizontal="Right"/>
                   <Borders>
                        <Border ss:Position="Top" ss:LineStyle="Double" ss:Weight="3"/>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
                   </Borders>
                   <Font ss:Color="#FFFFFF" x:Family="Swiss" ss:Bold="1"/>
                   <Interior ss:Color="#0000FF" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="BodyCentered">
                   <Alignment ss:Vertical="Bottom" ss:Horizontal="Center"/>
                   <Borders>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                   </Borders>
                   <Font x:Family="Swiss"/>
                   <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="BodyLeft">
                   <Alignment ss:Vertical="Bottom" ss:Horizontal="Left"/>
                   <Borders>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                   </Borders>
                   <Font x:Family="Swiss"/>
                   <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="BodyRight">
                   <Alignment ss:Vertical="Bottom" ss:Horizontal="Right"/>
                   <Borders>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                   </Borders>
                   <Font x:Family="Swiss"/>
                   <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="Currency" ss:Name="Currency">
                   <Borders>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                   </Borders>
                   <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
                   <NumberFormat ss:Format="_(&quot;$&quot;* #,##0.00_);_(&quot;$&quot;* \(#,##0.00\);_(&quot;$&quot;* &quot;-&quot;??_);_(@_)"/>
              </Style>
              <Style ss:ID="Percent" ss:Name="Percent">
                   <Borders>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                   </Borders>
                   <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
                   <NumberFormat ss:Format="0%"/>
              </Style>
         </Styles>';
      res boolean;
    begin
      if (not dbms_xdb.existsResource(targetPath)) then
        res := dbms_xdb.createFolder(targetPath);
      end if;
      targetPath := targetPath || '/' || 'Styles.xml';
      if dbms_xdb.existsResource(targetPath) then
        dbms_xdb.deleteResource(targetPath);
      end if;
      res := dbms_xdb.createResource(targetPath,xmlText);
    end;
    commit
    pause
    declare
      cursor getDepartments is
        select ref(d) XMLREF,
               substr
                 extractValue
                   object_value,
                   '/Workbook/Worksheet[1]/@ss:Name',
                   'xmlns="urn:schemas-microsoft-com:office:spreadsheet"
                   xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"'
                 1,32
               ) NAME
          from DEPARTMENT_WORKBOOK_XML d;
      res boolean;
      targetFolder varchar2(1024) :=  '/home/SCOTT/Workbooks/Departments';
    begin
      if dbms_xdb.existsResource(targetFolder) then
         dbms_xdb.deleteResource(targetFolder,dbms_xdb.DELETE_RECURSIVE);
      end if;
      res := dbms_xdb.createFolder(targetFolder);
      for dept in getDepartments loop
        res := DBMS_XDB.createResource(targetFolder || '/' || dept.NAME || '.xml', dept.XMLREF);
      end loop;
    end;
    commit
    pause
    quitThe above example assumes user SCOTT (yeah I know !), and that user SCOTT has access to the HR schema and write access to an xdb repository folder called /home/SCOTT. It will create a document for each DEPARTMENT containing the employees for that department.

Maybe you are looking for

  • Error while posting material  in MB1c

    Hi how to open finace period in OB52 for period for 002/2009 as am getting error while posting in MB1c the error which am getting are period 002/2009 is not open for account type s and G/L 799999. Kindly help. Thanx.

  • Index & Search Tabs have garbage characters and no search box

    Index and Search Tabs have numbers in place of the "search" box. Although, the generated view looks perfect, the file (WHLST10.htm) contains the same numbers and missing search box. I am using X5 version. I import a MS Word file without an index and

  • Missing menu items in the 'File' menu? Missing 'Place..' option?

    Hello there! I use photoshop everyday to edit pictures and thumbnails for Youtube and videos, but recently I've noticed that the 'Place' option from the File Menu has gone missing? I've checked to see if I might have accidentally hidden the visibilit

  • Available Retraction from BPC to ECC

    Hi Friends ! I would like to know how many available retractors are possible from BPC to ECC: 1) Fund Management - BPC to BI & then Standard Tcode in ECC 2) PCA - Only possible for flat file upload Is there any more retractors? any presentation avail

  • Installation of pc suite

    i HAVE NOKIA PC SUITE 6.5 AND I WANT TO UPGRADE TO VERSION 6.8. I HAVE DOWNLOAD IT FROM NOKIA SITE BUT WHEN I TRY TO INSTALL IT DOESN'T WORK. IT APPEAR A WINDOW THAT SEEMS LIKE THAT OF A DOWNLOAD BUT IT DESAPPEAR SUDDENLY APPEAR THE FIRST WINDOW (WIT