Create report based on JSON data

Dear All,
I'm on Oracle APEX 4.1 and Oracle 11g. I'm receiving JSON data in my application and would like to print report based on JSON data without storing it in any table.
Can you please suggest best way to achieve it?
Regards,
Chintan

Hi,
in 4.1 you can for example use the open source PL/JSON library (http://sourceforge.net/projects/pljson/) to parse JSON.
In APEX 5.0, we currently plan to add a JSON API package that e.g. can be used to convert JSON to XML. Here is an example:
SQL> select col1, col2
  2  from xmltable (
  3      '/json/row'
  4      passing apex_json.parse('[{"col1": 1, "col2": "hello"},{"col1": 2, "col2": "world"}]')
  5      columns
  6          col1 number path '/row/col1',
  7          col2 varchar2(5) path '/row/col2' );
                COL1 COL2
                   1 hello
                   2 world
At the last OOW, it was also announced that the RDBMS will provide native support. That should be the preferred option in the future.
Regards,
Christian

Similar Messages

  • Creating report based on master data

    Hi Guys,
    I want to create a specific report based on master data in BI cube. for example... a report which takes cost center and period as variable and display expenses for that period and cost center. This report I want to create for all cost center in BI database separately. any idea how can we do this?
    There are 2000 cost centers and I need to print/send 2000 reports one for every cost center.
    If I store all cost center in excel file, can it be easier?
    broadcasting and creating 2000 schedule - not option.
    Thanks..SM

    Hi  stuti misra,
    Create ONE Query with selection Cost Center and Period are inputs.
    Create text variables for Cost Center and Period and add in Query Description.
    After query execution you can see description based on selection in workbook or webtemplate.
    Hope it Helps
    Srini
    [Dont forget to close the call by assigning poings.... - Food for Points: Make a Difference through Community Contribution!|https://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/007928c5-c4ef-2a10-d9a3-8109ae621a82]

  • Authorizations for WEBI report based on BPC data model

    Hi All,
    We are strugelling with setting up authorisations for the reporting on BPC data model.
    We created Bex query on top of Multiprovider that consists of BPC cube. The Bex query is source for WEBI output. The authorisations has been set up on BPC data model (cube) in BPC application but they are not passed nor to Bex query nor to Webi. Example: The query is build on top of OPEX BPC data model, this data model is restricted based on Oranizational Unit. My test user is allowed to see only Org Unit = 'Australia' in the OPEX BPC data model, however when I'm running the report I can see absolutely everything.
    We are not connecting/using any BI cubes itself for this reporting. We are intrested only in the WEBI report based on BPC data models.
    We were trying to use BPC data model (without any extra settings) as the source for BEx report, we were also trying to use virtual BPC data model as the source for Bex transient query - but non of these have helped.
    Can you please advise how the authorisations should be set up for WEBI reporting on BPC data models?
    Kasia

    Anybody can help with this issue please?

  • Need Report based on "CUSTOM DATA field @ Shop Order Maintenance"

    Need the REPORT based on CUSTOM DATA field.
    Requirement - I am having the CUSTOM data at Shop Order Maintenance that is called as XXX, I need some report in SAP ME which can display the SFC related to particular Shop order based on XXX Number.

    Hi!
    As far as I remember there is no such base report. So, you may try to create it using SDK or request it as custom enhancement from SAP.
    If you want to create it using SDK, you can find the required data for report in CUSTOM_FIELDS table.
    Regards,
    Alex.

  • Allow users to create reports based on their own selection of fields

    Is there a way to allow users to create reports based on their own selection of fields?
    And if there is a way, then how?
    In access we retrieve all demographic info on one screen and on another screen user can be able to choose specific fields from a list box to import data into file.

    Hi,
    This can be handled in various ways - but the principles are the same.
    You need to apply conditional displays to all of the columns that your user can select and base the display of a column on the value of a field on the page.
    You can have a series of Yes/No options - one for each field and base the display on the corresponding field being Yes. Or you can use checkboxes.
    However, if you wish to use a multiselect list (which is probably easier as you can dynamically generate the list of field names), you will need to have hidden fields that will store either Y/N or 1/0 (I use ones/zeros) and have the conditional displays watch these fields instead. Populating these hidden fields is a bit more tricky than just having fields on the page that the user can control, but is doable:
    1 - Create one hidden field for each field in the report that you want to show/hide. Put these fields in the same region as the select list in a region above the report
    2 - Set conditional display values to "Value of Item in Expression 1 = Expression 2" and use the appropriate hidden field for Expression 1 and in Expression 2 enter in 1
    3 - Create a page process that runs on submit, and create PL/SQL code something like:
    DECLARE
    lFields HTMLDB_APPLICATION_GLOBAL.VC_ARR2;
    vField VARCHAR2(1000);
    BEGIN
    :P31_SHOW_EMPNO := 0;
    :P31_SHOW_ENAME := 0;
    :P31_SHOW_JOB := 0;
    :P31_SHOW_MGR := 0;
    :P31_SHOW_HIREDATE := 0;
    :P31_SHOW_SAL := 0;
    :P31_SHOW_COMM := 0;
    :P31_SHOW_DEPTNO := 0;
    lFields := HTMLDB_UTIL.STRING_TO_TABLE(:P31_FIELDS);
    FOR i IN lFields.FIRST..lFields.LAST LOOP
    vField := lFields(i);
    IF vField = 'EMPNO' THEN
    :P31_SHOW_EMPNO := 1;
    ELSIF vField = 'ENAME' THEN
    :P31_SHOW_ENAME := 1;
    ELSIF vField = 'JOB' THEN
    :P31_SHOW_JOB := 1;
    ELSIF vField = 'MGR' THEN
    :P31_SHOW_MGR := 1;
    ELSIF vField = 'HIREDATE' THEN
    :P31_SHOW_HIREDATE := 1;
    ELSIF vField = 'SAL' THEN
    :P31_SHOW_SAL := 1;
    ELSIF vField = 'COMM' THEN
    :P31_SHOW_COMM := 1;
    ELSIF vField = 'DEPTNO' THEN
    :P31_SHOW_DEPTNO := 1;
    END IF;
    END LOOP;
    END;
    4 - Finally, add a button that generates the report - this just needs to submit the page and branch back to the same page
    I've used the standard EMP table for this example and my hidden fields are P31_SHOW_fieldname. The code resets the hidden fields to 0, checks if the user has selected the field from the list (P31_FIELDS) and changes the hidden fields value to 1 for all those selected. When the page is re-rendered, the report hides the columns where the hidden field value is 0 and displays those where it is 1. The export option will then only export those fields that are displayed.
    You can see an example of this here:
    http://htmldb.oracle.com/pls/otn/f?p=33642:31
    Regards
    Andy

  • R12: How to filter Open Item Revaluation Report based on GL Date

    Hi,
    Anybody know how to filter Open Item Revaluation Report based on GL Date from and GL Date to in R12?
    Since we just upgraded from 11.5.10 to 12.1.3 and found we cannot filter those report for specific date. It shown all data included the old data from 8 years ago also.
    We need to run the report only for specific date only. Please share with me if anyone know about this.
    Thanks.

    Pl do not post duplicates - R12: How to filter Open Item Revaluation Report based on GL Date

  • R12: How to filter AP and PO Accrual Reconciliation Report based on GL Date

    Hi,
    Anybody know how to filter AP and PO Accrual Reconciliation Report based on GL Date from and GL Date to in R12?
    Since we just upgraded from 11.5.10 to 12.1.3 and found we cannot filter those report for specific date. It shown all data included the old data from 8 years ago also.
    We need to run the report only for specific date only. Please share with me if anyone know about this.
    Thanks.

    In 12 you can rebuild and run the report for a particular period, but not a single day if that's what's required

  • Inventory Report Based On Posting Date

    Hai All
    Can any one help me with the subject "Inventory Report Based On Posting Date"
    Please
    with regards
    Shankar

    hi,
    Visit this link,already answered.
    Difference between posting & system date in Inventory Audit Report
    Jeyakanthan

  • Filtering an EVDRE report based on a Data Value

    Everyone,
    I have a report that has accounts in the columns without expansion. I am capturing various status codes in one account and I need to know how to filter the report based on a data value that is retrieved from the database for this account.I am also using the EVdre sort functionality along with an EVSUB in the after range which  sub totals the Organization and Materials Dimensions in the rows.  When I try to use native Excel to filter  based on the value of the Status Code Account  the report will only sort the top section of the report. As soon as it hits the Subtotals it stops filtering. Is there a way to filter the report in EVDRE based on the data value that is returned from the database.
    The account that I want to filter on is Status Code. We can have two values in it either 10 = Submitted or 30 = Business Case. The users want to be able to filter the report to only show the status code of 10 (Submitted) for their Executives to review.
    Edited by: eleasha counts on Aug 3, 2011 12:22 PM

    Hi eleasha,
    I don't know if you will entertain FORMATRANGE.
    But you can use formatrange to hide those rows you donot want to see.
    You can use the CRITERIA as VALUE=<<anyvalue>> you want to verify and apply it on rows.
    You can set the PARAMETER value as ROWHEIGHT=0, and apply to ALL.
    Try this with the combinations you need to see.
    Hope this helps.
    Karthik AJ

  • Create a report based on sample data!

    Hello all,
    I would like to get some helps for creating a report based on the following table data in the database:
    Class     |        Name                   |         Student
    =======================================
    1            |        Algebra               |             60
    1            |        Extra Algebra      |             20
    2            |        Calculus              |             80
    2            |        Extra Calculus     |             10
    3            |        Geometry            |             90
    What I expect to have the layout of report should be look like as below:
                               School Register Report
    ClassGroup     |         Name          |    Ontime register   |    Late register   
    =========================================================
    1                      |        Algebra        |             60              |           20            
    2                      |       Calculus        |             80              |           10           
    3                      |       Geometry      |             90              |                           
    Please tell it is possible to do it in Crystal Report? Please help with solution. Thanks in advance.

    Assumimg second type always starts with Extra then, create formula
    @Name
    If like 'Extra*' then mid(, 7,20) else
    Group on this formula
    @LateReg
    If like 'Extra*' then else 0
    @OnTimeReg
    If not( like 'Extra*') then else 0
    Add Maximum smmaries of these formula to @Name Group footer, suppress details and group header
    Ian

  • Creating report based on user selected Date Range

    Hello.
    I am trying to display an Apex report that selects data for the report based on a user entered date range.
    It's a simple page with two date picker fields (p18_start and p18_end).
    The report region SQL looks like this:
    SELECT *
    FROM prj_items
    WHERE LM_DT BETWEEN :p18_start AND :P18_end
    One table, one field on the table to search and two Apex variables.
    I thought this would be fairly simple, but I am obviously missing something.
    I not even sure what other information is needed to help me figure this out.
    -Jody

    Hi,
    You can set defaults for the datepickers if you need to - this could be done in a computation on the page for each item and conditional on the item being null.
    When I've done something similar to this, I've created two hidden page items - eg, :P19_FIRST_DATE and :P19_LAST_DATE and populated these with the earliest/latest date that the user could reasonably select (perhaps, in your case, the MIN(LM_DT) and MAX(LM_DT) values).
    Then your SQL would be:
    select * from PRJ_ITEMS
    where LM_DT BETWEEN TO_DATE(NVL(:P19_START,:P19_FIRST_DATE), 'DD-MON-YY')
    AND TO_DATE(NVL(:P19_END,:P19_LAST_DATE), 'DD-MON-YY')If you don't want to set default dates, you could do something like:
    SELECT * FROM PRJ_ITEMS
    WHERE (:P19_START IS NULL AND :P19_END IS NULL)
    OR (:P19_START IS NOT NULL AND :P19_END IS NULL AND LM_DT >= TO_DATE(:P19_START,'DD-MON-YY'))
    OR (:P19_START IS NULL AND :P19_END IS NOT NULL AND LM_DT <= TO_DATE(:P19_END,'DD-MON-YY'))
    OR (LM_DT BETWEEN TO_DATE(:P19_START,'DD-MON-YY') AND TO_DATE(:P19_END,'DD-MON-YY'))There are various reasons why your two dates are being cleared when the page is reloaded. Firstly, you should check the branch that returns to the same page - make sure you are not clearing the cache for the page. Then, have a look to see if there is a "reset page" process (usually created for you when you create a form page). Then, check the Source settings for the items. Typically, these would be "Only when current value in session state is null" and a Source Type of "Static Assignment" with the "Source Value or Expression" left empty.
    Andy

  • Need to create report based on criteria between a range of dates

    I am very new to Numbers '09 and a beginner with spreadsheets.  I've searched and can't find a formula that fits this.  I've tried Match/IF  Match/Index  VLookup  If/And formulas but can't get the right results.
    I need to be able to create a report based on data from Master Spreadsheet.  I need formulas that will populate Report Page B8:B17 and D8:D17 from data in Master Spreadsheet that meets criteria range of dates (Report Page B5 and B6).
    The closest I've come was an IF(AND formula, but that left blank lines on my report page.  (I understand why, just not sure how to resolve it.)
    P.S.  I am working in Numbers '09 on an iPad (yes, the samples below are not in the Numbers program, but it was easier to do screen shots on my Mac notebook
    Master Spreadsheet:
    Report Page:

    Hi KC,
    So you are trying to retrieve the dates and associated comments for a specific student in a specific class between the two dates.
    Here's an example, using OFFSET and MATCH, plus an added index column on the Master table. Formulas and discussion below.
    Column E uses IF and AND to determine which rows contain the data to be transferred, thn uses MAX to number those rows.
    Master::E2: =IF(AND(A>=Report :: $B$5,A<=Report :: $B$6,B=Report :: $B$3,C=Report :: $B$4),MAX($E$1:E1)+1,"")
    Fill down to the bottom of column E.
    I don't see a need to repeat the "Date" and "Comment" labels on each row containing a date and comment, so I've placed these as fixed text in A8 and B8 of the Report table, and filled the cells below those with the dates and comments using MATCH and OFFSET.
    A9: =IF(ROW()>MAX(Master :: $E)+8,"",OFFSET(Master :: $A$1,MATCH(ROW()-8,Master :: $E,0)-1,0))
    B9: =IF(ROW()>MAX(Master :: $E)+8,"",OFFSET(Master :: $A$1,MATCH(ROW()-8,Master :: $E,0)-1,3))
    As can be seen, these formulas are identical except for the column-offset argument in OFFSET, shown in bold in the examples.
    Fill both formulas down to the bottoms of their columns.
    Regards,
    Barry

  • Creating parameter based on Submit Date from Remedy ITSM

    I am new to creating Crystal Reports and I am using Crystal Reports XI. I am pulling information from BMC Remedy ITSM through an ODBC connection. I have created a report from HPD_Help_Desk that pulls the Incident Number, Submit Date, Submitter, Owner and Description. I am not having any problems pulling the information from the tables. The issue that I am running into is creating a new parameter field that can be used so that when the people that will be running this report can pull information based on a date range of the submit date. When the report is run, it pulls the datetime from Remedy ITSM in a mm/dd/yyyy hh:mm:ss format with AM or PM on the end. I have created a parameter named Date Range that has a static list of values. The Type of the parameter is Date Time. The Value Field is Submit_Date. I have selected true for allowing custom values and allowing range values. The objective is to have the person running the report type in the datetime range such as Start of Range Value: 11/22/2009 00:00:00AM and End of Range Value: 11/28/2009 23:59:59PM so that they get all data for Incidents created from the start of the day on the 22nd to through the end of the day on the 28th providing 1 weeks worth of data. I know selection criteria can be used to run for the previous full week, but this will not help if people want to check on historical data. When the parameter is added to the report, it requests the datetime ranges be entered in a yyyy-mm-dd hh:mm:ss format. I have entered in datetime ranges and it will not filter the data. I receive data back for all dates even outside the range requested. I have attempted to change the format of the Submit Date within the report to match what the parameter is asking for and receive the same results. Any help would be greatly appreciated. Thank you in advance.

    Thank you for the feedback Carl. Again, I am new to this, so please be patient with me. I am not sure what you mean about adding the parameter to the record selection formula. I have drug the parameter field into the report so that it will prompt for parameters before running, but I do not think that is what you are talking about. Please advise.
    To your question about the Submit Date field in the report, when I open up the report and I point at the field for Submit Date the popup shows HPD_Help_Desk.Submit_Date (DateTime). That being the case, I think the answer to your question is that the data type of the data being returned is DateTime. Thanks again for the assistance.

  • How to develop a report based on multiple data bases in BIP

    Hi,
    I have to develop a report based on multiple database(Sources). My queries is having multiple data base tables. How to achieve this in BIP
    Regards,
    Malli

    Hi ,
    After creating the dataset under datamodel save your data sets.
    Click on Datamodel , on the right side window you will have the Main data set option , click on the drop down option and select Concatenated sql option.
    Check the below links you will get a good idea.
    http://www.rittmanmead.com/2008/04/bi-publisher-reports-with-multiple-data-sources/
    http://docs.oracle.com/cd/E12096_01/books/PubUser/T421739T423025.htm
    If the Post is useful to you award the points :)
    Thanks,
    Ananth v

  • Can I pass parameters from a dashboard via a dashboard prompt and presentation variable to publisher report based on a data model with select statements in OBIEE 11g ?

    I have a publisher 11g (v 11.1.1.7)  report with a single parameter. The report is based on a data model not a subject area.  I created a dashboard put a dashboard prompt and link to the report in separate section on the same page.  The dashboard prompt sets a presentation variable named the same as the parameter in the report. 
    The problem was when I created the dashboard prompt, it forced me to select a subject area which I did (though did not want to) and then I created both a column and variable prompts. But clicking on the
    report link completely ignored the value that I thought would be passed in the presentation variable to the report.
    Side note :  My report uses a pdf template for its layout where I have mapped the columns names from my data model to the form fields on the pdf form.  I noticed that if I create a publisher report based on a subject area, then I do not have the choice to choose a PDF as a template type for my layout.  (I only see BI Publisher Template as a choice). 
    I see some documentation online that suggest it could be done in 10g.
    Thanks
    M. Jamal

    Ok,
    I just tried that and it still doesn't pass anything to the prompt.
    I changed the prompt to an edit field and I made the following weblink but when i click the link from an account it doesn't put anything in the prompt and all data for all accounts is shown.
    This is the URL maybe I messed something up...
    https://secure-ausomx###.crmondemand.com/OnDemand/user/Dashboard?OMTHD=ShowDashboard&OMTGT=ReportIFrame&SelDashboardFrm.Dashboard Type=%2fshared%2fCompany_########_Shared_Folder%2f_portal%2f360+Report&Option=rfd&Action=Navigate&P0=1&P1=eq&P2=Account."Account Name"&P3=%%%Name%%%
    thanks

Maybe you are looking for