Multi Query Reports
Hi!
Can we have multi query reports ? reports displayed in Frames in a report???????
Imran
Hi,
yes you can have multiple query in your report. So you have multiple groups in your data model. Then you must put multiple repeating frames in your layout in order to extract data from your queries, selecting the desired group in the source property of your repeating frame.
Bye
Raffy
Similar Messages
-
Multi-query reports in Reports 3.0
When I run multi-query report in Reports 3.0 the report runs
correctly when I first load the report. However, when the report
is run for a second time the sub-queries do not appear to execute
and the report does not give a complete output, if any.
nullHello Mike,
Whenever you work on multi-query reports you have to set all
the relationship within the tables. If you have not specified
then specify within the where clause.
Try this. I hop your problems get solved.
From Subash.
Mike Donnerstag (guest) wrote:
: When I run multi-query report in Reports 3.0 the report runs
: correctly when I first load the report. However, when the
report
: is run for a second time the sub-queries do not appear to
execute
: and the report does not give a complete output, if any.
null -
Multi query reports and BI Publisher?
I have to create a report that gathers data from DB using several SQL queries - text mixed with data tables. I was not able to find anything like that in Apex 3.0 or BI Publisher. Am I missing something?
As a solution I was trying to pass more complex, hierarchical XML data structure to BI Publisher with several repeating groups that would serve my purpose. Apex seems to generate only one level XML.
Is there a way to generate XML file manually and pass it to BI Publisher?
Thank You
JanisDoes anyone have an idea on how to create multi-query report?
..or maybe how to manually create XML and pass it to BI Publisher?
Tahnk you!
Janis -
Multi-query report. One master, 2 detail. BI Publisher/PDF/APEX
I am creating a report which has a master and two detail sections. I used 3 querriies. When I test each query in the report query with bind variables, data is returned, when I run the report no data is returned. Not even the application session state fields that I included. Here are the querries:
select "RPC_PURCHASE_ORDER"."DOCKET_NUM" as "DOCKET_NUM",
"RPC_PURCHASE_ORDER"."PO_NUM" as "PO_NUM",
"RPC_PURCHASE_ORDER"."DATE_ORDERED" as "DATE_ORDERED",
"RPC_PURCHASE_ORDER"."DATE_REQUIRED" as "DATE_REQUIRED",
"RPC_PURCHASE_ORDER"."PREV_DOCKET_NUM" as "PREV_DOCKET_NUM",
"RPC_PURCHASE_ORDER"."QUOTE_NUM" as "QUOTE_NUM",
"RPC_PURCHASE_ORDER"."SALES_PERSON" as "SALES_PERSON",
"RPC_PURCHASE_ORDER"."PROOF_REQD" as A,
"RPC_PURCHASE_ORDER"."DYLUX" as B,
"RPC_PURCHASE_ORDER"."DIGITAL" as C,
"RPC_PURCHASE_ORDER"."SHERPA" as D,
"RPC_PURCHASE_ORDER"."PDF" as E,
"RPC_PURCHASE_ORDER"."PLATE_FILE_NUM" as "PLATE_FILE_NUM",
"RPC_PURCHASE_ORDER"."DISC" as F,
"RPC_PURCHASE_ORDER"."FTP" as G,
"RPC_PURCHASE_ORDER"."PLATE_1_SIDE" as H,
"RPC_PURCHASE_ORDER"."PLATE_2_SIDE" as I,
"RPC_PURCHASE_ORDER"."KOMORI_26" as J,
"RPC_PURCHASE_ORDER"."KOMORI_28" as K,
"RPC_PURCHASE_ORDER"."HEIDELBERG" as L,
"RPC_PURCHASE_ORDER"."TOKO" as M,
"RPC_PURCHASE_ORDER"."ENV_PRESS" as N, "RPC_PURCHASE_ORDER"."M_COM" as O,
"RPC_PURCHASE_ORDER"."DIGITAL_COLOUR" as P,
"RPC_PURCHASE_ORDER"."DIGITAL_COPIER" as Q,
"RPC_PURCHASE_ORDER"."PADDING" as R,
"RPC_PURCHASE_ORDER"."PUNCHING" as S,
"RPC_PURCHASE_ORDER"."FOLDING" as T,
"RPC_PURCHASE_ORDER"."SCORE" as U,
"RPC_PURCHASE_ORDER"."PERFORATING" as V,
"RPC_PURCHASE_ORDER"."GATHERING" as W,
"RPC_PURCHASE_ORDER"."TABBING" as X,
"RPC_PURCHASE_ORDER"."R_CORNER" as Y,
"RPC_PURCHASE_ORDER"."SADDLE_STITCH_BNDNG" as Z,
"RPC_PURCHASE_ORDER"."PERFECT_BOUND_BNDNG" as PB,
"RPC_PURCHASE_ORDER"."NUMBERING" as NU,
"RPC_PURCHASE_ORDER"."DIE_CUTTING" as DI,
"RPC_PURCHASE_ORDER"."LAMINATING" as LA,
"RPC_PURCHASE_ORDER"."SAVE_PLATES" as SA,
"RPC_PURCHASE_ORDER"."INK" as "INK",
"RPC_PURCHASE_ORDER"."FINAL_FOR_BINDERY" as "FINAL_FOR_BINDERY",
"RPC_PURCHASE_ORDER"."TAB_IN" as "TAB_IN",
"RPC_CUST_TABL"."CUST_NAME" as "CUST_NAME",
"RPC_CUST_TABL"."CUST_ADDR1" as "CUST_ADDR1",
"RPC_CUST_TABL"."CUST_ADDR2" as "CUST_ADDR2",
"RPC_CUST_TABL"."CUST_CITY" as "CUST_CITY",
"RPC_CUST_TABL"."CUST_PROVINCE" as "CUST_PROVINCE",
"RPC_CUST_TABL"."CUST_POSTAL_CODE" as "CUST_POSTAL_CODE",
"RPC_CUST_TABL"."CUST_TEL_NUM" as "CUST_TEL_NUM",
"RPC_CUST_TABL"."CONTACT_NAME" as "CONTACT_NAME",
"RPC_CUST_SHPNG_ADDR"."SHIP_TO_ADDR1" as "SHIP_TO_ADDR1",
"RPC_CUST_SHPNG_ADDR"."SHIP_TO_ADDR2" as "SHIP_TO_ADDR2",
"RPC_CUST_SHPNG_ADDR"."SHIP_TO_CITY" as "SHIP_TO_CITY",
"RPC_CUST_SHPNG_ADDR"."SHIP_TO_PROVINCE" as "SHIP_TO_PROVINCE",
"RPC_CUST_SHPNG_ADDR"."SHIP_TO_POSTAL_CODE" as "SHIP_TO_POSTAL_CODE",
"RPC_CUST_SHPNG_ADDR"."SHIP_TO_TEL_NUM" as "SHIP_TO_TEL_NUM",
"RPC_CUST_SHPNG_ADDR"."SHIP_TO_FAX_NUM" as "SHIP_TO_FAX_NUM"
from "RPC_CUST_TABL" "RPC_CUST_TABL", "RPC_CUST_SHPNG_ADDR" "RPC_CUST_SHPNG_ADDR",
"RPC_PURCHASE_ORDER" "RPC_PURCHASE_ORDER"
where "RPC_CUST_TABL"."CUST_NUM"="RPC_PURCHASE_ORDER"."CUST_NUM"
and "RPC_PURCHASE_ORDER"."CUST_NUM"="RPC_CUST_SHPNG_ADDR"."CUST_NUM" (+)
and "RPC_PURCHASE_ORDER"."SHPNG_SEQ_NUM"="RPC_CUST_SHPNG_ADDR"."SHPNG_SEQ_NUM" (+)
and "RPC_PURCHASE_ORDER"."DOCKET_NUM" = :P37_DOCKET_NUM
select "JOBS"."ORDER_QTY" as "ORDER_QTY",
"JOBS"."SHIPPED_QTY" as "SHIPPED_QTY",
"JOBS"."SIZE" as "SIZE",
"JOBS"."DESCRIPTION" as "DESC"
from "JOBS" "JOBS",
"RPC_PURCHASE_ORDER" "RPC_PURCHASE_ORDER"
where "JOBS"."DOCKET_NUM"="RPC_PURCHASE_ORDER"."DOCKET_NUM"
and "JOBS"."PO_NUM"="RPC_PURCHASE_ORDER"."PO_NUM"
and "RPC_PURCHASE_ORDER"."DOCKET_NUM" = :P37_DOCKET_NUM
and "JOBS"."PO_NUM" = :P37_PO_NUM
select "MATERIAL_FOR_PO"."QUANTITY" as "QUANTITY",
"MATERIAL_FOR_PO"."TYPE_STOCK_COLOR_FINISH" as "TYPE_STOCK_COLOR_FINISH",
"MATERIAL_FOR_PO"."SIZE_WGHT" as "SIZE_WGHT",
"MATERIAL_FOR_PO"."CUT_TO_SIZE" as "CUT_TO_SIZE",
"MATERIAL_FOR_PO"."OUT" as "OUT",
"MATERIAL_FOR_PO"."UP" as "UP",
"MATERIAL_FOR_PO"."ORDER_DATE" as "ORDER_DATE",
"MATERIAL_FOR_PO"."SUPPLIER" as "SUPPLIER"
from "MATERIAL_FOR_PO" "MATERIAL_FOR_PO",
"RPC_PURCHASE_ORDER" "RPC_PURCHASE_ORDER"
where "MATERIAL_FOR_PO"."DOCKET_NUM"="RPC_PURCHASE_ORDER"."DOCKET_NUM"
and "MATERIAL_FOR_PO"."PO_NUM"="RPC_PURCHASE_ORDER"."PO_NUM"
and "RPC_PURCHASE_ORDER"."DOCKET_NUM" = :P37_DOCKET_NUM
Any help would be appreciated. Also, can a report have 2 detail sections?
Thanks
Albert WooleryFound it, it's possible.
-
Distribution of multi section/multi query report
Hello
I have a report that's need to be modified to allow email distribution when the user chooses to.
The report has 2 independant seperate queries. Each query is presented on a different section.
Query1 - MainSection
Query2 - TrailerSection
Based on a paremeter we're turning on/off each query/section from being presented.
Hence the report results either with Query1/MainSection or with Query2/TrailerSection
Now to this report we would like to add email distribution. And this is where we're failing.
Each section has to repeat on different group, each query has different addresses relying on a parameter.
If I seperate the report to 2 reports - I can distribute it via email. But I would rather not to - since many modifications will have to come in place. I don't mind 2 different xml distribution files in case of each section - but this also doesn't seem to work.
This is the error that I get
REP-1353: Web property of layout object 'RS_FRAME1' references field or column 'email_to' at wrong frequency.
And I can understand why - since it's seems to run both queries each time even if I try to suppress the 2nd one by filter or by a parameter.
This is the xml file that I am trying to use for when Query1/MainSection is trying to execute
<destinations>
<foreach>
<mail id="email1" to="&<EMAIL_TO>" from="[email protected]" subject="RPT558">
<body srcType="text">
Please find attached a copy of your calendar.
Please do not reply to this email.
</body>
<attach format="pdf" name="&<ATTACH_NAME>" srcType="report" instance="this">
<include src="mainSection"/>
</attach>
</mail>
</foreach>
</destinations>
Any idea if this is at all possible.
Thanks
YafaHi Ravi,
Thanks for the reply. To answer your question, yes the reportid is considered as a single value coming from the table in the database. Below is the actual query that I am using to obtain report id value. This query result (reportid val) is not showing up on my report.
What am I doing wrong here?? Would greatly appreciate your insight into this.
Thanks
Suma
--- Below is query Q1 which retreives the report id. This value is associated with a field that is located in the top right margin area, above the report body. The table name is RPT_DETAIL_BY_APPNAME, which stores the details of reports for each application on the server. The reportid is a simple concatinated string of application name with a unique id value within the table, for each report.
SELECT RPT_DETAIL_BY_APPNAME.APP_NAME || RPT_DETAIL_BY_APPNAME.PK_RPT_SERVER_ID REPORT_ID
FROM RPT_DETAIL_BY_APPNAME
WHERE LOWER(RPT_DETAIL_BY_APPNAME.RPT_NAME) = 'test_reportid.rdf' -
Navigation to "Multi Query Data Explorer portal takes more time than single Query Data Explorer. Is there any way to optimize the screen navigation?
I have copied the "Custom Control Central Portal" from Demo environment.Hello Mike,
Whenever you work on multi-query reports you have to set all
the relationship within the tables. If you have not specified
then specify within the where clause.
Try this. I hop your problems get solved.
From Subash.
Mike Donnerstag (guest) wrote:
: When I run multi-query report in Reports 3.0 the report runs
: correctly when I first load the report. However, when the
report
: is run for a second time the sub-queries do not appear to
execute
: and the report does not give a complete output, if any.
null -
Multi-query group above report creates more pages
Hi,
I have a multi-query group above report (paper only), the parent group creates 5 rows(subframes) all onto the same page, but then creates 4 more IDENTICAL pages!!?
at the end I have 5 repating frames and 5 pages.
If I set Maximum Records per Page to 1, I have 5 pages (IDENTICAL) with the first frame only...
any idea?
cheers
Matteohello,
you will have to create a counter, that tells you the numbers of students (summary-column, function : count, reset on : course) and create a format-trigger on the heading that hides it when the number of students is 0.
regards,
the oracle reports team --pw -
Multi-part related query reports
http://download-east.oracle.com/docs/html/B10310_01/orbr_concepts1.htm#1012365
Can someone provide me better info about 'Multi-part related query reports 'Hi,
yes you can have multiple query in your report. So you have multiple groups in your data model. Then you must put multiple repeating frames in your layout in order to extract data from your queries, selecting the desired group in the source property of your repeating frame.
Bye
Raffy -
Multi Column Report - printing Across and then Down
Is there any setup option for a multi column report to go across and then down instead of down & across as a default. The problem I am experiencing is that some where and some how the two columns are not horizontally aligned properly - neither in the
report view nor in the exported PDF.
The added difficulty is the problems created by this misaligned labels while printing on a custom paper that is smaller in size. Though I can setup the custom dimensions and get the desired 4x2 labels on the screen the printing doesn't sit in proper places
on a preformatted paper.
Is there any solution(s). Thanks in advance.Hi Christal,
Based on my understanding, you want to make multi columns go across then down in the report.
For your requirement, on query level, we should add an additional field(DisplayColumn) in the dataset, the field indicates the column in which the corresponding records will display. When designing a report, we add a group in the report, then insert some
tablixes into the detail row. Within the nested tablix, we specify filter expression based on the value of DisplayColumn field. So that we can decide which data should display on which column. When previewing the report, you can find the report displays like
newsletter-style. Besides, if we design the report like this, the report can supports all renders. For detail information about how to design the report step by step, please refer to this article:
Creating Multiple-Column Reports [SSRS] .
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support -
Select_list_from_lov in multi row report: Help
Oracle 10g, apex 3.2
On windows XP client, Firefox 3.5.2
I have a multi row editable report region, defined as below: I have a check box item for the row being selected and one of the columns in the row is a select_list_from_lov_xl. Once the user checks a particular row, using the check box, he/she will choose a particular value from that row's select list. How do I capture the value of the select_list returned value specific for that row? As you see from the highlighted code to render select_list,the value for the apex_item that I am assigning is 30. But when I look in the firebug->inspect element, the apex renders the name as 'f01'..??. What am I missing here??
Also if user checks all rows, my code picks up the correct corresponding values picked for the select list. If user selects a row in the middle or any random row, the value selected is always the first item returned by the first orw's select_list (though this was not checked!!)
I am confused and need help on capturing select list return values in a multi row reports.
Thanks for all your time and expertise...
Here's the simplified version of my query, that includes the culprits:
SELECT APEX_ITEM.HIDDEN(10,TR.SEQ) || APEX_ITEM.CHECKBOX(20, tr.seq,'onchange="spCheckChange(this);"',:F500_REQUEST_LIST,':') "Is Requested?",
+APEX_ITEM.SELECT_LIST_FROM_LOV_XL(30,TO_ROOM_SEQ, 'ROOMS_LOV') "To Room"*_+
FROM TS_ASSETS TA, TS_REQS TR where <some condition>
Here is part of my code that extracts the values picked
-- this should pick only checked rows...
for i in 1..apex_application.g_f20.count
loop
some_checked_value(i) := apex_item.g_f20(i);
-- the below is coded thus, as thats the value that I see being set, when I inspect this element in firebug. Not sure how this came by, as I had set this item to 30 in my query...???
some_select_list_val(i) := apex_item.g_f01(i);
end loop;Why don't you try this
SELECT apex_item.hidden (10, tr.seq)
|| apex_item.checkbox (20,
tr.seq,
'onchange="spCheckChange(this);"',
:f500_request_list,
'f20_' || '#ROWNUM#'
) "Is Requested?",
apex_item.select_list_from_lov_xl (30,
to_room_seq,
'ROOMS_LOV',
'NO',
NULL,
NULL,
'f30_' || '#ROWNUM#',
NULL,
'NO'
FROM ts_assets ta, ts_reqs tr?
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------------------ -
Supressing tabs in multi tab report
I have a multi tab report that all the tabs are based off different queries. I want to suppress individual tabs and not have them export in Excel if the query returns no records.
Hi,
We can do this manually by selecting required report tabs (copy) and saving them in excel or to automate this process should work on SDK.
Cheers,
Suresh Aluri. -
Helllo,
I"m using Application Express 3.1.2.00.02
I want to do a 3 columned report.
I just saw this thread ( from 2005 - that's why I started a new)
Multi-columned report
When I applied the template to my report region, I got the following error:
ERR-1025 Erreur lors du traitement de l'expression PL/SQL. mod(1,3)0
Can someone tell me why?
thanks,
Roseline
My Query - select ename from emp
The template I created step by step:
Create a report row template....
Workspace>Builder-Application>Shared Components>Themes>Templates...Create
Template Type: Report
Creation Method: From Scratch
Name: One Field - Three Column
Theme: your choice
Template Class: Standard
Template Type: Named Column (row template)
Edit the report Template you just created and modify the following:
Row Template 1: <td width="150">#1#</td>
Row Template Condition: Use Based on PL/SQL Expression
Row Template 1 Expression: mod(#ROWNUM#,3)0
Row Template 2: <td width="150">#1#</td></tr><tr>
Row Template Condition: Use Based on PL/SQL Expression
Row Template 2 Expression: mod(#ROWNUM#,3)=0
Before Rows: <tr>
After Rows: </tr>
Create a query based report region. For my test I used "select ename from emp". Have the report use the row template.
This is just a quick and dirty sample. For better look and feel you'll need to do your own formatting...Yes, that's it.
However, that I SEE is only 4 name ( every 3 name of the list) on the same line:
ENAME WARD ENAME BLAKE ENAME KING ENAME JAMES
1 - 14 But when I cut and paste from Internet Explorer to a text file,m=, even if I see all the result on the same line, when I past it, it's formated :
ENAME WARD
ENAME BLAKE
ENAME KING
ENAME JAMES
1 - 14
I have 14 results in my database:
In My SQL
select * from emp
EMPNO ENAME JOB MGR SAL DEPTNO
7369 SMITH CLERK 7902 800 20
7499 ALLEN SALESMAN 7698 1600 30
7521 WARD SALESMAN 7698 1250 30
7566 JONES MANAGER 7839 2975 20
7654 MARTIN SALESMAN 7698 1250 30
7698 BLAKE MANAGER 7839 2850 30
7782 CLARK MANAGER 7839 2450 10
7788 SCOTT ANALYST 7566 3000 20
7839 KING PRESIDENT - 5000 10
7844 TURNER SALESMAN 7698 1500 30
7876 ADAMS CLERK 7788 1100 20
7900 JAMES CLERK 7698 950 30
7902 FORD ANALYST 7566 3000 60
7934 MILLER CLERK 7782 1300 10
What I would like, is having this display:
SMITH ALLEN WARD
JONES MARTIN BLAKE
CLARK SCOTT KING
TURNER ADAMS JAMES
FORD MILLER
How can I modify the template?
thanks again Roseline -
Multi-record report: content LOV depending on value of current row
I have a multi-record report based on a query.
For each row in the report it should be possible to choose a value from lov.
The content of the lov is depending on a field in the current row.
Later on I will update a record based on the chosen value but that is not the
issue right now.
The problem I am facing is that I don't know how to refer in a list to a value
from the current row.
For example.
In the example below it should be possible to choose (from the lov) a best buddy for
an employee. The buddy should be an other employee working for the same department.
So in the lov I must refer to the deptno from the current row. How is this possible???
select empno
, ename
, deptno
, htmldb_item.select_list_from_query
( 1
, empno
, 'select ename, empno from emp where deptno = #deptno# '
) buddy
from empHi Scott,
I've created this application "TestLov" at the site you mentioned.
Application ID : 800
Workspace Name : ANUWKSPC
The first page has an employee report with the solution as suggested by Raju Mattamal in this thread. That query seems to work fine without any errors...(I'm surprised why I'm getting errors on my application with the same query, even though data appears?! Is it to do with some setting?)
The second page has the report with my actual query. This is throwing errors.
On the third page I've tried to implement the solution you've suggested in Tips & Tricks section of HTML DB Studio(Simulating a correlated sub-query in report LOVs)
http://htmldb.oracle.com/pls/otn/f?p=18326:54:2188928890822530056::::P54_ID:1282
This doesn't seem to work either.
I'm unable to figure out the problem.
Pls look into the application and let me know how I shld go abt this.
Thanks in advance,
Anu -
SAP QUERY report for vendor line items
Hi
I have created a SAP QUERY report for vendor line items with fields vendor no.,vendor name,amount,company code and period.But there is one line item i donot know from wher system is getting it picked with is not in that vedor account,when i compare with fbl1n.I checked the document number too...the same doc number is twice in my query report.One with correct amount and another with wrong one.How do i chk.Where did i go wrong in creating query.I used logical database KDF.
Please advise.i chked...how do we get the amount displayed in query...it just displays amount no debit credit symbol... i have selected BSEG-DMBTR field but no -/+ sign,how is it done in query,please suggest.
-
The problem about integrate Portal and R/3 : vendor query report problem
Hi everyone :
We want to achieve that our vendor can query R/3 report via our Portal. I had done SSO configuration.
But we had about 500 vendors, it is impossible that we create 500 R/3 users for our vendors, because the cost is too much .
And there is another problem, vendor who had the authorization to query report can query the other vendor's data at same time. But we expect that certain vendor can query his data only.
I think this is a general problem when integrate Portal and R/3, BW .
Is there somebody had solved this problem or give any advice?
Any discuss is welcome.
Best Regards,
Jianguo ChenHi,
I would say: get in contact with your SAP account manager anc check which options SAP can offer you...
Normally every user using a R/3 system has to have a valid user license in that system. Expecially when you want to access control to data on user (vendor) level you nedd to identifiy the user clearly and uniquely which by standard means you need a user for every vendor.
Hth,
Michael
Maybe you are looking for
-
TS1559 I just want my phone to work
I am having trouble getting my music to turn off - it is battery draining on my I phone 5- I turn it off and next time I look at my phone it is playing again- next, I cannot get my msn email to stay logged in - makes me crazy- I don't want to use icl
-
Update from 10.6.8 to 10.9.2
I have tried, unsuccessfully, to update from 10.6.8 to 10.9.2 via App Store several times. Each time, after hours, it stops -- telling me that the download can't be completed.
-
C6-01 error when downloading and installing applic...
whenever i download and install applications from ovistore it doesn't continue and ends up as error. and when i tried to sync again my phone to nokia acount (the one where nokia sends link to your phone to sync it) i never receive the message. the in
-
How to set spacing before and after paragraphs in IOS Pages
Is there a way to do this in Pages for iPad?
-
I made a PDF from a 200 page booklet created in InDesign CS6 on a PC. When it was first uploaded (http://psgcoop.org/big_media/GSOYP_Manual_1.0.pdf) all of the internal links and page advances functioned properly. Now, after 4 months of working prope