Checkbox in a minus query
Hello,
I am trying to use the checkbox function in the following query to produce a report with a checkbox but it is not working correctly -- the query is fine, but does not work when I place the checkbox function within it:
Select HTMLDB_ITEM.CHECKBOX(1,loginid) Grant,
lastname || ', ' || firstname fullname
from arxusers A
where a.rec_status = 'A'
minus
Select a.loginid,
lastname || ', ' || firstname fullname
from arxusers a , arxaccess b
where a.loginid = b.loginid
and b.rpt_id = :id
and a.rec_status = 'A'
Says from keyword not found where expected -- Can you not use the checkbox with a 'minus' SQL query
Can anyone please help me with this -- I even changed my query to a 'not exists' and I still get the same, 'From keyword not found where expected' error. Is the checkbox function in a report limited to just basic SQL report queries? That does not make sense. Here is my new query getting the same error:
SELECT HTMLDB_ITEM.CHECKBOX(1,a.loginid) Grant,
a.lastname || ', ' || a.firstname
from arxusers A
where a.rec_status = 'A'
and not exists (
select 'Y'
from arxaccess b
where a.loginid = b.loginid
and b.rpt_id = :id)
Any help would be great.
Thanks,
Jeff
Similar Messages
-
Need a procedure to make minus query as output for 2 tables
Can anybody help me to create a procedure so that I could get minus query of 2 table as a result.
Requirement:
I have two table 1- src_table_list ,2- tgt_table_list both tables have 2 columns : serial_no,table_name and 100 records each. and details mentioned in column "table_name" are actually tables name which present in my testing database.
so I need one procedure which will pick one table_name from src_table_list and one table_name from tgt_table_name each time recursively and provide minus query as a result. as below.
select c1,c2,c3,c4 from table1 --(fetched from src_table_list)
minus
select b1,b2,b3,b4 from table2 --(fetched from tgt_table_list)
Can any body give or help me to create the procedure..as I have to prepare minus query for more than 200 tables and then I need to test them for integration testing..
Edited by: 974253 on Nov 30, 2012 5:39 AMselect 'select '||chr(39)||src_table_list.tblname||chr(39)||','||chr(39)||trg_table_list.tblname||chr(39)||',count(*) from '||' ( select * from '||src_table_list.tblname||'minus select * from '||trg_table_list.tblname||');'
from src_table_list, trg_table_list
WHERE src_table_list.serial_no = tgt_table_list.serial_no
The above statement should give output similar to below code and will list down all the table names in the 2 tables(i.e. above src and trg) -
select 'src_table_list.tbl1','trg_table_list.tbl1',count(*) from
(select col1, col2 from src_table_list.tbl1 minus select col1, col2 from trg_table_list.tbl1 );
select 'src_table_list.tbl2','trg_table_list.tbl2',count(*) from
(select col1, col2 from src_table_list.tbl2 minus select col1, col2 from trg_table_list.tbl2 );
Now atleast you can run these statements as script and get to know what all tables are having count differences.
I might have missed out on some syntax part in above code but hope to have helped you in some way as you will be specific with number of tables to check for differences. -
WebI:Creating a minus query from data providers not using the same universe
Hi there. A client of ours wishes to use Combined Query on multiple universes in the same WebI report. So far, I have heard it is not feasible in WebI. I know it is possible in DeskI. Even the sub-query option is limited to just one universe in WebI. So, I am stuck.
Is there a workaround to creating a minus query from data providers not using the same universe in WebI?Hello Amit,
what are the Datasources ? Usually when you create a Sub Query you can choose a seperate Universe.
Maybe if you only see one Universe you only have the rights for this Universe ?!.
Regards
-Seb. -
Hi
One of my sql minus query is returning row even though both the statements are having same value.
My query is following :
SELECT UNIQUE EMP_AGG_DW_PAYROLL_TOT_FTE_CNT,EMP_AGG_PAY_DEM_EMP_SKEY
FROM DW.AGG_EMP_ACCT_COMPENSATIONS
WHERE EMP_AGG_DW_EFF_START_DT='1-jan-2006'
AND EMP_AGG_PAY_DEM_EMP_SKEY IN (133607,141955)
MINUS
select * from (
SELECT SUM(CS),PAY_DEM_EMP_SKEY FROM (
SELECT SUM(CP)/24 CS,PAY_DEM_EMP_SKEY FROM (
SELECT COUNT(PAY_DEM_DW_PAYROLL_FTE_COUNT) CP,PAY_DEM_EMP_SKEY FROM
DW.PAYROLL_DEMOGRAPHICS A,MRADMIN_PROFPROCDT MP
WHERE PAY_DEM_DW_PAYROLL_FTE_COUNT=1
AND PAY_DEM_DW_PAYROLL_ADJUST_IND = 0
AND PAY_DEM_EMP_SKEY IN (133607,141955)
AND (TRUNC(A.PAY_DEM_PAY_DT) BETWEEN TRUNC(MP.D_BEGIN_DATE)
AND TRUNC(MP.D_END_DATE))
GROUP BY PAY_DEM_EMP_SKEY)GROUP BY PAY_DEM_EMP_SKEY
UNION ALL
SELECT SUM(CP)/48 CS,PAY_DEM_EMP_SKEY FROM (
SELECT COUNT(PAY_DEM_DW_PAYROLL_FTE_COUNT) CP,PAY_DEM_EMP_SKEY FROM DW.PAYROLL_DEMOGRAPHICS
WHERE PAY_DEM_DW_PAYROLL_FTE_COUNT=.5
AND PAY_DEM_DW_PAYROLL_ADJUST_IND = 0
AND PAY_DEM_EMP_SKEY IN (133607,141955)
GROUP BY PAY_DEM_EMP_SKEY)GROUP BY PAY_DEM_EMP_SKEY )
GROUP BY PAY_DEM_EMP_SKEY
This is returning two rows.
When I run queries seperatly then i am getting following result :
EMP_AGG_DW_PAYROLL_TOT_FTE_CNT EMP_AGG_PAY_DEM_EMP_SKEY
0.0416666666666667 133607
0.0416666666666667 141955
SUM(CS) PAY_DEM_EMP_SKEY
0.0416666666666667 133607
0.0416666666666667 141955
I am unable to get the exact reason behind me.
Any help is higly appreciated.Probably some differences that are not shown due to rounding as in example below?
SQL> set numw 5
SQL> select 1.666666666666 from dual;
1.666666666666
1,667
Elapsed: 00:00:00.00
SQL> select 1.666666 from dual;
1.666666
1,667
Elapsed: 00:00:00.00
SQL> select 1.666666666666 from dual
2 minus
3 select 1.666666 from dual;
1.666666666666
1,667
Elapsed: 00:00:00.00
SQL> Gints Plivna
http://www.gplivna.eu -
Hi All,
Please help me in optimizing my MINUS query, I had created a web portal using pl/sql to view the difference between two data loads into a table each data load has its own version number.
for example:
consider table xx
Ver id opt Wcc code st_dt end_dt rate
253 2 xx NBK 0 8/1/2002 7/31/2005 0.02
253 2 xx NBK 0 8/1/2005 3/31/2006 0.01
258 2 yy BKN 0 4/1/2006 12/31/209 0.01
258 2 yy BKN 1 8/1/2002 7/31/2005 0.02
If the table is containing data in thousands my web portal is taking at least 5min to display the difference of the data present for version 253 and 258.
the MINUS query i have written in my code is
select
tab1.id, tab1.opt, tab1.Wcc, tab1.code,tab1.st_dt, tab1.end_dt, tab1.rate
from xx tab1,
(SELECT id,opt,Wcc,code,st_dt,rate FROM xx WHERE ver = 253
minus SELECT id,opt,Wcc,code,st_dt,rate FROM xx WHERE ver = 258 ) tab2
where tab1.id||tab1.opt||tab1.wcc||tab1.code||tab1.st_dt||tab1.rate=tab2.id||tab2.opt||tab2.Wcc||tab2.code||tab2.st_dt||tab2.rate
and tab1.ver in (258,253);
how can i optimize my query so that i can view the difference in min time through the web portal??SQL> create table xx
2 as
3 select 253 Ver, 2 id, 'xx' opt, 'NBK' Wcc, 0 code, date '2002-08-01' st_dt, date '2005-07-31' end_dt, 0.02 rate from dual union all
4 select 253, 2, 'xx', 'NBK', 0, date '2005-08-01', date '2006-03-31', 0.01 from dual union all
5 select 253, 5, 'zz', 'KBN', 1, date '2005-08-01', date '2006-03-31', 0.1 from dual union all
6 select 258, 2, 'xx', 'NBK', 0, date '2002-08-01', date '2005-07-31', 0.02 from dual union all
7 select 258, 2, 'xx', 'NBK', 0, date '2005-08-01', date '2006-03-31', 0.5 from dual union all
8 select 258, 2, 'yy', 'BKN', 1, date '2005-08-01', date '2005-03-31', 0.1 from dual
9 /
Tabel is aangemaakt.
SQL> select ver
2 , id
3 , opt
4 , wcc
5 , code
6 , st_dt
7 , end_dt
8 , rate
9 , decode(ver,253,'Deleted',258,'New/Modified') remark
10 from xx
11 where ver in (253,258)
12 and not exists
13 ( select 'dummy'
14 from xx xx2
15 where xx2.id = xx.id
16 and xx2.opt = xx.opt
17 and xx2.wcc = xx.wcc
18 and xx2.code = xx.code
19 and xx2.st_dt = xx.st_dt
20 and xx2.end_dt = xx.end_dt
21 and xx2.rate = xx.rate
22 and xx2.ver != xx.ver
23 )
24 /
VER ID OP WCC CODE ST_DT END_DT RATE REMARK
253 2 xx NBK 0 01-08-2005 00:00:00 31-03-2006 00:00:00 ,01 Deleted
253 5 zz KBN 1 01-08-2005 00:00:00 31-03-2006 00:00:00 ,1 Deleted
258 2 xx NBK 0 01-08-2005 00:00:00 31-03-2006 00:00:00 ,5 New/Modified
258 2 yy BKN 1 01-08-2005 00:00:00 31-03-2005 00:00:00 ,1 New/Modified
4 rijen zijn geselecteerd.Regards,
Rob. -
hi everyone ,
can some please explain me how to do minus query in Odi . i am not allowed to create views so please such suggestion.
in short some method where i can compare two tables and extract only the data that is present in one table and if both have the same data ignore.
eg .
table 1
id desc flag
100 sdfsd 3
101 sdfsd 3
102 sdfds 3
table 2
id desc flag
100 sdfd 8
103 sdfd 8
105 dfsdf 8
result should be
id desc flag
100 sdfsd 3
101 sdfsd 3
102 sdfds 3
103 sdfd 8
105 dfsdf 8
i .e 8 should not update 3 flag data . in IKM update its lost and if i put update on both id and flag i have two copies . so i just want to compare and load all the date of table 1 completely and then table 2 which doesnt mached with id .
Please suggest .Hi Dev,
For the situation as you described do something like:
1) load the firts table with IKM Control Append
2) Load the second table with the IKM Incremental Update but change the "UPDATE" option to "NO" and use the ID as KEY.
That will give you exaclty what you wanted because will only load the new records from second and ignore those that already exists in the target.
Cezar Santos -
Checkbox in the ABAP query selection screen
Hi experts,
The reqiurement is to add checkbox(parameter name: EX_ZE_ST) to the selection screen of the query and if its checked then the records with the quantity = 0, should not be displayed in the output.
I added a check box and now my issue is, how to suppress displaying the record having quantity = 0.
that quantity field is a custom added field and in sq02 i selected that quantity( Z_HANDQTY) field and gone into the code for the same and wrote below code...
the total generated table view for this query is : marav
if EX_ZE_ST = 'X' and Z_HANDQTY = 0.
break-point.
clear: marav, Z_MATDESC, Z_MATGRPDESC, Z_TAXIND,
Z_TAXTYPE, MARD, MARD-LGPBE, Z_PREVMATNR,
Z_CSTTOTAL, Z_CSTUNIT, Z_VSTOCK.
FREE MEMORY ID 'AQLISTDATA'.
endif.
But still i could see a blank line in the output if that record has quantity( Z_HANDQTY) = 0.
Thanks in advance...
Karthikhi,
Try this wa y...
if EX_ZE_ST = 'X' and Z_HANDQTY = 0.
break-point.
clear: marav, Z_MATDESC, Z_MATGRPDESC, Z_TAXIND,
Z_TAXTYPE, MARD, MARD-LGPBE, Z_PREVMATNR,
Z_CSTTOTAL, Z_CSTUNIT, Z_VSTOCK.
FREE MEMORY ID 'AQLISTDATA'.
Continue.
endif. -
Hello All,
I am using oracle database 10.2.0.4 in windows server.
I am doing data comparision for 2 set of query using the minus operator with same condition.
My 1st query is giving 23 rows and 2nd query is giving 20 rows. The output should be 3 rows, but I am not getting the same. It is returning null.
select WORK,WORK_UNIT,WORK_STR from WORK_GROUP
where WORK_UNIT=003
and WORK_STR=10
and WORK is null
MINUS
select WORK,WORK_UNIT,WORK_STR from WORK_GROUP@DBL_SOURCE
where WORK_UNIT=003
and WORK_STR=10
and WORK is null;
Any updates on the above query?
Thank You,
RKPRKP wrote:
Hello All,
I am using oracle database 10.2.0.4 in windows server.
I am doing data comparision for 2 set of query using the minus operator with same condition.
My 1st query is giving 23 rows and 2nd query is giving 20 rows. The output should be 3 rows, but I am not getting the same. It is returning null.
select WORK,WORK_UNIT,WORK_STR from WORK_GROUP
where WORK_UNIT=003
and WORK_STR=10
and WORK is null
MINUS
select WORK,WORK_UNIT,WORK_STR from WORK_GROUP@DBL_SOURCE
where WORK_UNIT=003
and WORK_STR=10
and WORK is null;
Any updates on the above query?
Thank You,
RKPHave a look at your query and the where conditions. 3 column are being selected and they all are in where criteria.
No matter how many rows are returned, column value returned by both the queries would always be :
WORK WORK_UNIT WORK_STR
NULL 003 10All rows returned by both the queries would be EXACTLY same!!!
There is no way to differentiate any rows returned by query 1 with those returned by query 2.
Since all rows returned by first query do match with those returned by second query, MINUS operator results in no rows selected. -
Inserts on Sub (minus) Query
Ok. This is what I need to complete. I need to Insert from a minus subquery.
Here is my query where I need to insert the results.
select id_user, system_id, nm_database, cd_altname from accounts_temp
minus
select id_user, system_id, nm_database, cd_altname from accounts
From the results, I need to insert all fields into 'Accounts'. Note, that the four columns listed above in the subquery, are only 4 of the 15 columns in the tables; I need to insert *. I cannot use a the merge on b/c sometimes, the values of these columns are null.
Any thoughts?or more simple
insert into accounts
select * from accounts_temp
where (id_user, system_id, nm_database, cd_altname) not in
(select (id_user, system_id, nm_database, cd_altname) from accounts)Although usually "not in" is not very fast. It could be replaced by "no exists" or compared for performance with the previous version.
Edited by: Sven W. on Oct 21, 2008 8:55 AM -
Hey, I am having a problem with one of the minus queries I wrote.
When I execute my source query and Target query seperately they return back in a less than a minute.
Where as if I use Source minus Target It is taking more than 5 hours. Can any one explain me the reason.
Thanks & Regardsss_study wrote:
Hey, I am having a problem with one of the minus queries I wrote.
When I execute my source query and Target query seperately they return back in a less than a minute.How are you timing the queries?
Re: Materialized View creation very slow -
Checkbox to filter mysql query
SO I have created a combined search and results page which works great. In the database I have a boolean variable that determines if the record is active. I want to include a checkbox on the search form that will return only the active records. Struggling a little. Here's the code:
<?php require_once('Connections/testmypms.php'); ?>
<?php
$currentPage = $_SERVER["PHP_SELF"];
$maxRows_demographics = 10;
$pageNum_demographics = 0;
if (isset($_GET['pageNum_demographics'])) {
$pageNum_demographics = $_GET['pageNum_demographics'];
$startRow_demographics = $pageNum_demographics * $maxRows_demographics;
$vardemid_demographics = "%";
if (isset($_POST['schDemID'])) {
$vardemid_demographics = (get_magic_quotes_gpc()) ? $_POST['schDemID'] : addslashes($_POST['schDemID']);
$vardemfirstname_demographics = "%";
if (isset($_POST['schDemFirstname'])) {
$vardemfirstname_demographics = (get_magic_quotes_gpc()) ? $_POST['schDemFirstname'] : addslashes($_POST['schDemFirstname']);
$vardemsurname_demographics = "%";
if (isset($_POST['schDemSurname'])) {
$vardemsurname_demographics = (get_magic_quotes_gpc()) ? $_POST['schDemSurname'] : addslashes($_POST['schDemSurname']);
$vardemactive_demographics = "1";
if (isset($_POST['schActive'])) {
$vardemactive_demographics = (get_magic_quotes_gpc()) ? $_POST['schActive'] : addslashes($_POST['schActive']);
mysql_select_db($database_testmypms, $testmypms);
$query_demographics = sprintf("SELECT demographics.px_id, demographics.firstname, demographics.surname, demographics.address1, demographics.address2, demographics.town, demographics.postcode, title.title, demographics.active FROM demographics, title WHERE demographics.FK_title_id = title.title_id AND demographics.px_id LIKE '%s%%' AND demographics.firstname LIKE '%s%%' AND demographics.surname LIKE '%s%%' AND demographics.active='%s' ORDER BY demographics.surname, demographics.firstname", $vardemid_demographics,$vardemfirstname_demographics,$vardemsurname_demographics,$vardema ctive_demographics);
$query_limit_demographics = sprintf("%s LIMIT %d, %d", $query_demographics, $startRow_demographics, $maxRows_demographics);
$demographics = mysql_query($query_limit_demographics, $testmypms) or die(mysql_error());
$row_demographics = mysql_fetch_assoc($demographics);
if (isset($_GET['totalRows_demographics'])) {
$totalRows_demographics = $_GET['totalRows_demographics'];
} else {
$all_demographics = mysql_query($query_demographics);
$totalRows_demographics = mysql_num_rows($all_demographics);
$totalPages_demographics = ceil($totalRows_demographics/$maxRows_demographics)-1;
$queryString_demographics = "";
if (!empty($_SERVER['QUERY_STRING'])) {
$params = explode("&", $_SERVER['QUERY_STRING']);
$newParams = array();
foreach ($params as $param) {
if (stristr($param, "pageNum_demographics") == false &&
stristr($param, "totalRows_demographics") == false) {
array_push($newParams, $param);
if (count($newParams) != 0) {
$queryString_demographics = "&" . htmlentities(implode("&", $newParams));
$queryString_demographics = sprintf("&totalRows_demographics=%d%s", $totalRows_demographics, $queryString_demographics);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Search</title>
</head>
<body>
<p>Patient Search</p>
<form action="" method="post" name="schDem" id="schDem">
<table border="1" cellspacing="1" cellpadding="5">
<tr>
<td>ID</td>
<td><input name="schDemID" type="text" id="schDemID"></td>
<td> </td>
</tr>
<tr>
<td>Firstname</td>
<td><input name="schDemFirstname" type="text" id="schDemFirstname"></td>
<td> </td>
</tr>
<tr>
<td>Surname</td>
<td><input name="schDemSurname" type="text" id="schDemSurname"></td>
<td>Show active only
<input name="schActive" type="checkbox" id="schActive" value="0" checked></td>
</tr>
<tr>
<td> </td>
<td><input name="Search" type="submit" id="Search" value="Search"></td>
<td> </td>
</tr>
</table>
</form>
<p> <a href="<?php printf("%s?pageNum_demographics=%d%s", $currentPage, max(0, $pageNum_demographics - 1), $queryString_demographics); ?>">Previous</a> <a href="<?php printf("%s?pageNum_demographics=%d%s", $currentPage, min($totalPages_demographics, $pageNum_demographics + 1), $queryString_demographics); ?>">Next</a></p>
<table border="1">
<tr>
<td>px_id</td>
<td>title</td>
<td>firstname</td>
<td>surname</td>
<td>address1</td>
<td>address2</td>
<td>town</td>
<td>postcode</td>
</tr>
<?php do { ?>
<tr>
<td><a href="main.php?pxID=<?php echo $row_demographics['px_id']; ?>"><?php echo $row_demographics['px_id']; ?></a></td>
<td><?php echo $row_demographics['title']; ?></td>
<td><?php echo $row_demographics['firstname']; ?></td>
<td><?php echo $row_demographics['surname']; ?></td>
<td><?php echo $row_demographics['address1']; ?></td>
<td><?php echo $row_demographics['address2']; ?></td>
<td><?php echo $row_demographics['town']; ?></td>
<td><?php echo $row_demographics['postcode']; ?></td>
</tr>
<?php } while ($row_demographics = mysql_fetch_assoc($demographics)); ?>
</table>
</body>
</html>
<?php
mysql_free_result($demographics);
?>
Any suggestions would be great
ThanksJust prior to this line:
mysql_select_db($database_testmypms, $testmypms);
Add this
echo $vardemactive_demographics;
Then execute and try with the checkbox checked and unchecked. Are the values displayed what you expect under both conditions?
Next, you are setting the variable default to a string value
$vardemactive_demographics = "1";
Boolean values are numeric in MySQL so it should be
$vardemactive_demographics = 1; -
Checkbox as a query item - how do I get its value into my SQL
I have a search region where the user enters some parameters to filter the records returned from the query. I have a checkbox that represents Active or Inactive. I created it using the APEX_ITEM.CHECKBOX function. So if checked I want the sql to order by Active records else if unchecked to order by inactive records after they press the submit button. So how do I get the checked or unchecked value from this checkbox into my SQL query.
Message was edited by:
ca114422You can have a look here:
http://htmldb.oracle.com/pls/otn/f?p=31517:99
There is an example on how to include various item values
into your query.
By the way, what is your name?
Denes Kubicek -
Sending email using PL/SQL based on a query result
Hello all,
I want to create a procedure using PL/SQL, based on a query result.Here is the scenario:
I have multiple tables in Target and Source databases that I want to compare(not the whole table but queries on these tables) and if they differ, I want to shoot an email. I have some ideas how to implement this but not sure whether it is the best approach.
select Acct_id, total from SourceTableA
minus
select Acct_id, total from TargetTableA
select Acct_id, sum from SourceTableB
minus
select Acct_id, sum from TargetTableB
If the result of any of above queries > 0 then I want to shoot an email and want to repeat this procedure in the morning every day.
I know how to implement send_mail procedure using UTL_SMTP package and how to schedule tha job by dbms_job package. But I am not sure how to implement the result of minus query. In case if minus > 0 then I also want to send the name of tables in the email message where source and target tables are not same. Should i use cursor, variable or insert the result in a new table? any help would be highly appreciated. Thanks in advance.
KhanActually these queries are the part of our daily testing that we run everyday manually(after the scheduled ETL load) to see if there are any discrepencies between our datawarehouse tables and source tables. So instead of running these queries manually everyday we want to schedula a procedure that will shoot an email in case of any discrepency and indicate which tables have problems.
-
Apex report performance is very poor with apex_item.checkbox row selector.
Hi,
I'm working on a report that includes some functionality to be able to select multiple records for further processing.
The report is based on a view that contains a couple of hundred thousand records.
When i make a selection from this view in sqlplus , the performance is acceptable but the apex report based on the same view performes very poorly.
I've noticed that when i omit the apex_item.checkbox from my report query, performance is on par with sqlplus. (factor 10 or so quicker).
Explain plan appears to be the same with or without checkbox function in the select.
My query is:
select apex_item.checkbox(1,tan_id) Select ,
brt_id
, tan_id
, message_id
, conversation_id
, action
, to_acn_code
, information
, brt_created
, tan_created
from (SELECT brt.id brt_id, -- view query
MAX (TAN.id) tan_id,
brt.message_id,
brt.conversation_id,
brt.action,
TAN.to_acn_code,
TAN.information,
brt.created brt_created,
TAN.created tan_created
FROM (SELECT brt_id, id, to_acn_code, information, created
FROM xxcjib_transactions
WHERE tan_type = 'DELIVER' AND status = 'FINISHED') TAN,
xxcjib_berichten brt
WHERE brt.id = TAN.brt_id
GROUP BY brt.id,
brt.message_id,
brt.conversation_id,
brt.action,
TAN.to_acn_code,
TAN.information,
brt.created,
TAN.created)
What could be the reason for the poor performance of the apex report?
And is there another way to select multiple report records without the apex_item.checkbox function?
I'm using apex 3.2 on oracle 10g database.
Thanks,
Niels Ingen Housz
Edited by: user11986529 on 19-mrt-2010 4:06Thanks for your reply.
Unfortunately changing the pagination doesnt make much of a difference in this case.
Without the checkbox the query takes 2 seconds.
With checkbox it takes well over 30 seconds.
The second report region on this page based on another view seems to perform reasonably well with or without the checkbox.
It has about the same number of records but with a different view query.
There are also a couple of filter items in the where clause of the report queries (same for both reports) based on date and acn_code and both reports have a selectlist item displayed in their regions based on a simple lov. These filter items don't seem to be of influence on the performance.
I have also recreated the report on a seperate page without any other page items or where clause and the same thing occurs.
With the checkbox its very very slow (more like 20 times slower).
Without it , the report performs well.
And another thing, when i run the page with debug on i don't see the actual report query:
0.08: show report
0.08: determine column headings
0.08: activate sort
0.08: parse query as: APEX_CMA_ONT
0.09: print column headings
0.09: rows loop: 30 row(s)
and then the region is displayed.
I am using databaselinks in the views b.t.w
Edited by: user11986529 on 19-mrt-2010 7:11 -
Hello All,
We are using a two tier architecture.
Our Corp server calls the refinery server.
Our CORP MII server uses user id abc_user to connect to the refinery data server.
The user id abc_user has the SAP_xMII_Dynamic_Query role.
The data server also has the checkbox for allow dynamic query enabled.
But we are still getting the following error
Error has occurred while processing data stream
Dynamic Query role is not assigned to the Data Server; Use query template
Once we add the SAP_xMII_Dynamic_Query role to the data server everything works fine. Is this feature by design ?
Thanks,
KiranThanks Anushree !!
I thought that just adding the role to the user and enabling the dynamic query checkbox on the data server should work.
But we even needed to add the role to the data server.
Thanks,
Kiran
Maybe you are looking for
-
How to access Calendar Events in Windows Phone 8.1 SDK
Hi, I have multiple email accounts setup on my Windows Phone 8.1. I have requirement to access appointments in calendar for specific email accounts and perform some operation. I found sample code on MSDN and all of the are examples of using Microsoft
-
I'm using iMovie 10.0.3. When I try to do a freeze frame of a clip, it just creates a black clip.
-
Need to create a "checkedlistbox"
Hello, I need to create a custom component that has the following - - is a listbox that appears as a MS-VB checkedlistbox - ability to be loaded at runtime from a datasource (XML data file) I've searched forums and other websites looking for anything
-
Filling in hidden fields?
Hi, I have a form in which there are 4 square image fields in which hide if an image isn't attached. The formcalc change* event is as follows: if (picture3.rawValue == "1") then form1.page2.change.picture3.presence = "visible" else form1.page2.ch
-
I used QT 6, when I downloaded QT 7 Pro I can not to open .mov and can not import .avi files. I get a message '-43 the file could not be found'. I use Core2Duo, XP. Please help me.