Get XSD from Report Query

APEX 4.0.2
Oracle 11.2.0.1.0
Hello,
We are trying to retrieve the XML Schema for a Report Query.
The following code example is working, but the 'xsd' parameter for p_document_format is not documented.
Is 'xsd' a supported parameter value for APEX_UTIL.GET_PRINT_DOCUMENT?
v_blob := APEX_UTIL.GET_PRINT_DOCUMENT (
    p_application_id      => NV('APP_ID'),
    p_report_query_name   => 'test',
    p_report_layout_name => null,
    p_report_layout_type => null, 
    p_document_format     => 'xsd',
    p_print_server => null);Thank you in advance!

Hi Eric,
We have four different versions of apex_util.get_print_document, so depending on what you want to do, you can create PDFs and other document types based on your own XML data, your own style-sheets, or referencing pre-defined report-queries, with pre-defined layouts, or custom layouts. We support the output formats I've previously listed for all four versions. However the internal implementation of those APIs is different for the APIs that reference report queries and those that reference custom XML data. When referencing report queries, APEX first loads and executes those queries and generates the XML data, and then passes the XML on the the print rendering engine. The parsing and execution of those queries happens to use the same internal functions that are also used on the report query edit page, where you have buttons that allow for downloading XML and XML Schema representations of your report query. Those XML and XSD documents are intended to be used with the BI Publisher Word Plug-In or third-party XSL design tools to design report layouts. Now given that the same internal functions are used, you can actually generate XML Schema (XSD) documents using the apex_util.get_print_document API, but only with those versions that let you reference a pre-defined report query. This isn't officially supported, so I can guarantee that this behavior won't change in the future, though I don't see why we would change that. The main reason for supporting XML in those APIs is really to test the print functionality without requiring a print rendering engine. But looks like there are some other use cases for those output formats as well.
Hope the helps,
Regards,
Marc

Similar Messages

  • How to make smartform get data from report painter???

    hi all!
    please tell me how to get data from report painter?
    i has a report painter zabc ( create through t-code ke31).
    I want  get data from Zabc after run and show data by smartform.
    plz help me!
    thanks

    Hi ,
    Please check this link [SMARTFORM|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf]
    Regards,
    Smart

  • How to get key from MDX Query

    Hi All,
    how to get key from mdx query ?
    example :
    SELECT [Measures].[67822GFASOU7KUT6FKHSQ34FV] ON COLUMNS NON EMPTY CROSSJOIN([ZCOMPANY].MEMBERS, [ZMILL].MEMBERS) ON ROWS FROM ZODS_GL/ZODS_GL_001
    the result from this mdx query are zcompany text and zmill text, how to get company key and mill key ?
    Regards
    JeiMing

    hi Jeiming,
    to get key in mdx, you can try something like
    [ZCOMPANY].[LEVEL01].MEMBERS
    properties [ZCOMPANY].[2ZCOMPANY]
    following threads may useful
    Extracting texts with MDX
    MDX Statement - display only keys for characterstics and their dis. attrib.
    hope this helps.

  • Bapi to get data from BW query

    Hi,
    Does anyone familiar with bapi function to get data from BW query .???
    I'm trying to use  RS_VC_GET_QUERY_VIEW_DATA_FLAT  but i get only the SUM rows of the query
    and not the details rows (drill down).
    i want to export the data of BW query to table and i need all the query data.
    if someone have an example or documention its will be great.
    Thanks.

    Hi,
    Does anyone familiar with bapi function to get data from BW query .???
    I'm trying to use  RS_VC_GET_QUERY_VIEW_DATA_FLAT  but i get only the SUM rows of the query
    and not the details rows (drill down).
    i want to export the data of BW query to table and i need all the query data.
    if someone have an example or documention its will be great.
    Thanks.

  • Send .pdf-file from report query in an email

    i don't know how i can refer to a immediately created .pdf-file of a report query.
    if i klick a button following steps should happen (in background):
    1. create .pdf-file of an existing report query (where is this document stored?)
    2. send this file via email-attachment (how can i refer to the created file and use the apex_mail.add_attachment procedure)
    i hope somebody can help me!
    maddl
    Application Express 3.1.0.00.32
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi

    Maddl,
    Typically, when you have a report query, associated with a report layout, you print it using a button that branches or links to a URL with a special request that initiates the download of the PDF document. In that case, you PDF is not stored anywhere on the server, it's passed from your rendering engine to your client PC / browser.
    If you want to render the PDF document on the server, and attach it to an email using add_attachment, then you would use the print API (introduced in APEX 3.1). You can call apex_util.get_print_document, with specifying the report query name and report layout name, and get back a BLOB, which you can then attach to an email. here's the links to the documentation of that API:
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/api.htm#CHDDECIA
    Regards,
    Marc

  • Get feedback from report viewer

    We want to get the feedback from java crystal report viewer whether report is printed or not.Simply want to know print button is pressed by the user of print dialog.
    Earlier we got feedback from VB6 viewer from bellow code,
    CrystalReport.PrintingStatus.Progress
    Do we have a method to get this from java viewer.It is a very important feature for us,
    Thanks.

    Recently i found the method printInteractively (..) in ReportPagePrinter class in CrystalReportsRuntime.jar package does not return any thing.
    public void printInteractively(ReportDocument paramReportDocument, String paramString, PrintObserver paramPrintObserver)
        throws PrinterException
        jdMethod_int(paramReportDocument, paramString, paramPrintObserver);
        int[] arrayOfInt1 = new int[1];
        int[] arrayOfInt2 = new int[1];
        ReportPage localReportPage = jdMethod_int(1, arrayOfInt1, arrayOfInt2);
        if (localReportPage == null)
          return;
        this.D = jdMethod_try(localReportPage);
        if (!jdMethod_int(this.v.defaultPage().getPaper(), this.D))
          PageFormat localPageFormat1 = jdMethod_byte(localReportPage);
          PageFormat localPageFormat2 = this.v.pageDialog(localPageFormat1);
          if (localPageFormat2 == localPageFormat1)
            return;
          this.D = localPageFormat2.getPaper();
        if (!this.v.printDialog())
          return;
        this.v.print();
    Why this important feature does not have in java package.Any future release do you expecting to add that ?

  • Access htmldb_application.g_f01 from Report Query ?

    I want to have a search functionality built into the report itself, so, was trying to create a sql report as:
    select htmldb_item.hidden(1,null) empno,
    htmldb_item.text(2,null) ename,
    htmldb_item.select_list_from_query(3,null,'select distinct job, job from emp') job,
    htmldb_item.popupkey_from_query(4,null,'select ename, empno from emp',10) mgr
    from dual
    union all
    select empno, ename, job, mgr
    from emp
    where empno = NVL(htmldb_application.g_f01(1), empno)
    and ename = NVL(htmldb_application.g_f02(1), ename)
    However, this gives an error saying "ORA-06553: PLS-221: 'G_F01' is not a procedure or is undefined".
    I changed the radio button to parse query at runtime only to ensure that the collection gets created first, but even then during runtime it gives the same error. I tried to create two reports (to try conditional display) the first report contain the union clause, and the second report just containing select * from emp where empno = htmldb_appl....
    even this is giving error.
    Is there anyway to achieve this functionality ?

    Ok, I created hidden columns for :p1_empno, p1:ename, p1:job etc and in a submit process assigned them to the htmldb_application.g_f01, ...etc, and changed the query to
    from emp where empno = nvl(:p1_empno, empno) and ....
    this is working,
    (a)Is there any better way to do it instead of creating these hidden columns.
    (b)how can we toggle this htmldb_item.hidden, ..., row (search row) display ? clicking on an icon in the column header should either display this row and clicking it again should hide this row.

  • Report Assignment are getting dropped from report management

    Hi Gurs,
    For the Real Group substance, nine real substances has been assigned in report management. when Iam trying to create a report of new version for real group some of the report assignement are being dropped from real group. any idea why the reports are getting dropped.
    Thanks in Advance
    Thanveer Ahmed.

    Hello Thanveer,
    it seems to be that you are using SAP Enterprise Extension 2.0 (EH&S 2.00 version does not "exists" and has never been made available to SAP customers to my knowledge). This EH&S has been former known as EH&S 3.2. Actually EH&S does not get any version number any more.
    Coming back to your question: the oss note you found seems to be the only one. I did the "same" research like you. So I have really no idea (may be place new OSS) because we are using an older EH&S version and there it works.
    Coming back to your last remark:
    Can you help me with all Functional scenario's for specification assignment on report management.
    If you take a look in the actual help of sap you will find this page:
    http://help.sap.com/erp2005_ehp_04/helpdata/en/a7/288aa30a6c11d28a220000e829fbbd/frameset.htm
    (report Management (EHS-SAF-REP) => Report Managment Worklist => Specifiction Assignment
    Here you will find a subchapter: Assigning specifications to reports)
    In this chater this is explained:
    Specification assignment can be defined differently for each report version. When creating new versions (or when replacing one version with another), the new report u201Cinheritsu201D the specification assignments of the previously valid report.
    This reaction is what I would expact.
    In my opinion the scenario which SAP describes there is clear enough. Again here is the story:
    a.) you have a specification and you generate a report (first time). You release it (generation variant/Language combination) in version 1.0. Now in using cg50 you can enter on report header additionaly specifications regarding which the report is valid too.
    Lets assume this: you have generated the report on specification A and added B and the report is "released". Now if you use cg54 and you use specification in an query A and B you will find total two released reports. The report on the level B is "inherited" from A (this is shown by using a different icon). Now if you generate version 1.1. on specification A (same geneartion variant etc.) the link to the specification B must be inherited to the new report header.
    This functionality is in my opinion rarely used on SAP EH&S customer side. The reason is "simple".
    a.) there is no mass update of specifications which should be added to the report header and the queriy which can be done there is "very" simple
    b.) you need to take care about adding new specifications to the report header (becuase the version before does have a differnt number of specifications)
    c.) the process to delete the link is not easy in daily work
    In any case: please check the report distribution process. There are some pitfalls etc. inside so thet the report which is released on A can be used on B too in report distributon. Bit this is a different story.
    To summerize: the process is in most cases to complex for normal EH&S users. Therefore other options should be analyzed.
    With best regads
    C. Bergemann
    PS: you need to "save" the assignment in cg50; only an idea: may be you missed to do that
    Edited by: Christoph Bergemann on Feb 13, 2010 9:41 AM
    Edited by: Christoph Bergemann on Feb 13, 2010 10:00 AM
    Edited by: Christoph Bergemann on Feb 13, 2010 10:00 AM

  • Get information from report

    Hi all,
    Is there any way to get infromtion in VC from standard report? (for example S_AHR_61016354 - Telephone Directory )
    Maxim.

    Hi Maxim,
    What exactly do you mean by from a standard report? Is this a BW query? or an ECC ABAP Report?
    The first is by using the query object and dragging this into your work area, if you are referring to the second you need to create a Function Module wrapper around your Report and pull the information into your model that way.
    Hope this helps,
    Cheers,
    Scott

  • SQL- Getting Subtotal From a Query

    Hi,
    I need to run a query where I can get a subtotal for each items in a table.  The query should produce something like:
    3 apple
    4 grape
    1 orange
    I did a SUM and COUNT function but, I get the total records (8) in the table instead of the subtotals.
    SELECT      id, SUM(fruit) AS Total
    FROM         table
    WHERE     ORDER BY fruit
    Any suggestions would be great.
    Thanks,
    Jenn

    try this
    SELECT     fruit,count(*) as fruit_count, SUM(fruit) AS Total
    FROM         table
    WHERE     group BY fruit

  • Get data from bw query to r/3

    Hi,
    There is a query defined in BW with some variables. The current process is user is executing the query with necessary variables and the query result output is saving as csv file and this file is used in r3 to update the data in r3.
    Now we have to make this process automate. We have to get the query result data from BW to R3.
    We have a constraint of not using the Open hub method in BW.
    Is there any function module or any standard program to get the query result data from BW to r3.
    Any help is highly appreicated.

    able to resolve the issue..
    creating trusting RFC connection solved the problem

  • How to get values from a query string in URL in a jsf page?

    if i have a url, http://my.com/?name=john+smith, how do i get the values from that url in a jsf page and then pass those values to a servlet?
    i know how to do that in jsp using "request.getParamter("name")" and save it in a bean and then forward to a servlet. But what about in jsf?

    Hello,
    Try this:
    Map requestMap = FacesContext.getCurrentInstance().getExternalContext().getRequestMap();
    String name = (String) requestMap.get("name");If isn't worked one of these methods probably will solve your problem.
    FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();
    FacesContext.getCurrentInstance().getExternalContext().getRequestHeaderMap();hth.

  • Use APD to get Rank from TopN query result to target for Universe

    Hello,
    I am trying to take a query result set where I am calculating a key figure as Rank and run it through an APD to write to a DSO.
    This is a top 5 query for a dashboard.  I keep getting an MDX failure on the query.
    Any ideas? 
    My ultimate goal is to set up a process to take TopN query results and get them into a target that can be used in a Universe.
    Thanks,
    Chris

    Hello Chris,
    I recommend to post this query to the [Universe Designer and Business Views Designer|Semantic Layer; forum.
    This forum is dedicated to topics related to the universes and business views.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Enterprise Information Management queries remain in one place and thus can be easily searched in one place.
    Thanks a lot,
    Falk

  • How to get fieldnames from Select * query ?

    How can I get the fieldnames returned with a SELECT * query ?
    When I use GetFieldName or GetFieldOriginalName I only get fieldnames of "*".

    You should use the fields collection, in the OraDynaset object.
    All you need to do is :
    for i = 0 to Recordset.Fields.Count -1
    debug.print Recordset.Fields(i).name
    debug.print Recordset.Fields(i).OriginalName 'this will print the field's name before an alias
    next i

  • Get age from DOB query problem

    Hi I'm a bit of a noob. I've found this query and got it to work but I want to find all the people over the age of 30. How do I go about doing this?
    SELECT FLOOR( MONTHS_BETWEEN( CURRENT_DATE, DOB ) / 12 ) AS person_age FROM Customer
    This shows everyones age.
    Many thanks

    It's working fine
    This is example to illustrate find age which are greater than 25.
    SQL> select *
    2 from (
    3 SELECT FLOOR( MONTHS_BETWEEN( CURRENT_DATE, hiredate ) / 12 ) AS person_age
    4 FROM emp
    5 )
    6 where person_age > 25
    7 /
    PERSON_AGE
    27
    27
    27
    27
    27
    27
    27
    27
    27
    27
    27
    PERSON_AGE
    26
    12 rows selected.
    Actual requirement is as follows:
    SQL> select *
    2 from (
    3 SELECT FLOOR( MONTHS_BETWEEN( CURRENT_DATE, hiredate ) / 12 ) AS person_age
    4 FROM emp
    5 )
    6 where person_age > 30
    7 /
    Edited by: venkata on Dec 15, 2008 11:02 AM

Maybe you are looking for