Master-detail reports with variable number of pages in a big report
I am designing with Reports 6.0.5.32.0 a master-detail report such as a
combination between a customer with his name, address etc, at the top of
the page (always 60% of the first page) and then as details lines with his orders.
For one customer seems relatively OK with the variable number of pages in accordance with the number of his orders.
When the main query finds more customers I present always the customer at the top of
a new page (that's easy), but how can I control the number of the next pages for the orders, variable for every customer.
I can not predict how many pages are necessary for a customer and white pages are
not desirable. When the number of Max. Vertical Body Pages is too low I can get the next pages for every customer, but appears an
uncontrollable shift to the left.
For instance, a customer with 40 orders needs 3 pages, one with 4 orders only 1 page, one with 15 orders 2 pages, etc.
What's the magic property for a secure and precise layout?
Hi Andreas,
did you try setting vertical spacing to expand or variable on master repeating frame (and posible other frames surrounding master repeating frame)?
Hope this helps
Similar Messages
-
How can I get a report with total number of pages printed on my HP Officejet Pro 8610?
Since knowing the number of pages I print is so critical to a choice of using the "HP Instant Ink Plan" or not, how can I find the total number of pages I have printed on my brand-new (installed 2 days ago) 8610? And if I can, is it a "resettable" or rolling total? Don't see anything in user guide and a search yields nothing usable on this blog.
Printer is installed wirelessly on an older PC with Windows XP SP3. I can also of course intstall it with network cable but so far it works OK on my home network without network cable. If it matters which OS, I also have a Lenovo laptop running Vista on which I can install this printer.
Please do not respond that I can find the total by counting the number of pieces of paper I have. Surely the internals of this fine machine must have the requested data so that HP can tell my usage if I select the monthly ink plan!
This 8610 was a good buy (net $89.00 after trade-in of my six year old J36xx Deskjet) at Office Depot/Max which of course influenced my decision to buy it. So far I am very happy with printing qualities and speed, have not tried the scanner yet and will probably never use the fax since I have no land line phone.
Thanks,
Harry
This question was solved.
View Solution.Hi,
Section #2 of the Printer Ststus report will tell you. Please try:
Printer status report
Use the printer status report to view current printer information and ink cartridge status. Also use the printer status report to help you troubleshoot problems with the printer.
The printer status report also contains a log of recent events.
If you need to call HP, it is often useful to print the printer status report before calling.
To print the Printer Status Report
1. From the printer control panel display, touch and slide your finger across the screen and then touch Setup.
2. Touch Print Reports and then touch Printer Status Report.
Regards.
BH
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem. -
PLSQL-generated SQL report with variable number of columns
I created an app to track college football bowl picks:
http://apex.oracle.com/pls/otn/f?p=21723
The main report region includes columns for the various games as well as a column for each participant. In order not to hard code the number of participants, I used PLSQL to generate the SQL so that new columns could be added on the fly.
However, whenever I add a new user I get this result -
report error:
ORA-01403: no data found
If I copy and paste the PLSQL into a new report region and then delete the old one, however, all is well.
Is there something I can do to overcome this?
Thanks.
BillRoberto
<br><br>
Here are the tables:
<br><br>
BOWL_GAMES<br>
ID NUMBER<br>
NAME VARCHAR2(30)<br>
FAV VARCHAR2(20)<br>
DOG VARCHAR2(20)<br>
BDATE DATE<br>
LINE NUMBER(3,1)<br>
FAV_SCORE NUMBER(4,0)<br>
DOG_SCORE NUMBER(4,0)<br>
<br>
BOWL_USERS<br>
ID NUMBER<br>
USERNAME VARCHAR2(20)<br>
PW VARCHAR2(20)<br>
NAME VARCHAR2(20)<br>
EMAIL VARCHAR2(50)<br>
<br>
BOWL_PICKS<br>
ID NUMBER(5,0)<br>
USERID NUMBER(10,0)<br>
GAMEID NUMBER(10,0)<br>
PICK NUMBER(1,0)<br>
<br>
<br>
Below is my PLSQL. Feel free to try out the app. Thanks.
<br><br>
Bill<br><br>
declare<br>
p_sql varchar2(32767);<br>
cursor c1 is select * from bowl_users order by id;<br>
begin<br>
p_sql := q'! select to_char(b.bdate, 'Mon FMdd') "Date", b.name, '< a href="javascript$pickEm(''' || b.fav || ''')">' || b.fav || '</ a> -' || b.line || ' < a href="javascript$pickEm(''' || b.dog || ''')">' || b.dog || '</ a>' "Line" !';<br>
for a1 in c1 loop<br>
p_sql := p_sql || q'! , bowl_strike(b.id, !' || a1.id || q'! , 0) || (select decode(p.pick, 0, substr(b.dog,1,4), 1, substr(b.fav,1,4), 'No pick') from bowl_picks p where p.userid = !' || a1.id || q'! and p.gameid = b.id) || bowl_strike(b.id, !' || a1.id || q'! , 1) "!' || upper(a1.name) || q'!" !';<br>
end loop;<br>
p_sql := p_sql || q'! , bowl_score(b.id) "SCORE" from bowl_games b order by b.bdate !';<br>
return replace(p_sql,'$',':');<br>
end;
<br><br>
Message was edited by:
[email protected] -
Master Detail Form with Report - Referring a column in another table
I have master detail form with a report option. The master table has a column that also references a look up table.
When the report is displayed the lookup column id is displayed. Rather I want to get the look-up value from a lookup table
and display in the report.
When I see the report region Query definition , it just has the columns to add/remove only from the master table.
Could you pls help me with this regard.
Eg :
Dept Table
dept_id
dept_name
location_id
Employee Table
employee_id
employee_name
dept_id
location
location_id_id
location_name
Master is Dept, Detail is dept and lookup table is location.Simply add the lookup table to the FROM clause and join its PK with the FK in the master table in your query. That's basic SQL, and you definitely must get a good grasp of SQL to do more than very basic work in APEX.
For a good example, please see http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10498/build_app.htm#BCEBJJGB
While you're at it, read and implement the tasks outlined in the 2 Day + Application Express Developer's Guide - http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10498/toc.htm. After that, read the "Oracle Application Express 3.0-- Building a Functional Application" OBE in http://www.oracle.com/technology/obe/apex/obe30/apexdev30.htm - great stuff.
Georger -
How to get the total number of pages printed in a report?
Hi All,
I have a requirement where I need to print a frame of fields only in the last page. Unfortunately I cannot use the 'Print Object On' property as it doesnt work in my case. So, I am planning to write a format trigger on the frame to return TRUE if the page is the last physical page. Now, I need to know how to get the total number of physical pages that will get printed in the report so that I can use this to manipulate the frame. I was planning to use the 'Total Physical Pages' built-in, but it seems like I can just use it to print in a field and I can't use this field's value anywhere in the plsql code (formula column function/format trigger) in the report. Is there anyway to get the total number of pages printed in the report which can be used in the report plsql code?
Thanks,
Srini.i found the solution, thanks
-
Report with material number and planned delivery time
Is there any standard report with material number and planned delivery time ?
Hi,
I do not know any standard report. Please try SE16 + MARC...
BR
Csaba -
Master detail view with drill down
I am trying to develop a simple app for my Ipad. This app is supposed to have a Master/details look and should behave similar to the native Mail app (2x levels of navigation and the last level updates the details view).
My problem is that I am not familiar to Apple IOS development so tend to get stuck all the time so I prefer to follow a tutorial or start with a sample project. I have searched for hours but I always either get a pure navigation drill down project without the details view or a pure master/details project with only a single level of navigation. I tried to take these projects and modify them but my knowledge sadly is very limited and I did not succeed.
So can anybody direct me to a tutorial or a sample project where a Mail like app is being built with more than 1 level of navigation ?I have a GridBagLayout panel with a jtable and some jtextfield Well, we don't know exactly what constraints you have set up to its hard to say exactly why its happening.
In general, you should create your JTextField using new JTextField(int) and I think the problem will go away.
An easier solution would also be to use different LayoutManagers to achieve the desired layout. -
Several reports on joined master-detail tables with single row source
I have 1 master table (Fixed Assets) and several datail tables (Improvements, Depreciation, ...)
I need to create several reports based on them all with criteria
'Select ALL from Master and join details
/1 total row from details for 1 master row/
filtered by [on_date <= report_date]'
How to do it better and not copy same code in every report?
As mentioned on this forum, ApEx is not able to use RefCursor as row source for ApEx reports
So I tried this Tom Kyte's example:
create type apex_user.myRecordType as object
(seq int,
a int,
b varchar2(10),
c date
Create Or Replace Type Apex_User.Mytabletype As Table Of Apex_User.Myrecordtype;
create or replace function Apex_User.my_function return Apex_User.myTableType
Is
l_data Apex_User.myTableType;
Begin
l_data := Apex_User.myTableType();
for i in 1..5
loop
L_Data.Extend;
l_data(i) :=Apex_User.myRecordType(i, i, 'row ' || i, sysdate+i);
end loop;
Return L_Data;
End;
Select *
from TABLE (cast(Apex_User.my_function() as Apex_User.mytableType))
Where C > Sysdate+1
Order By Seq Desc
SEQ A B C
5 5 row 5 22.08.2010
4 4 row 4 21.08.2010
3 3 row 3 20.08.2010
2 2 row 2 19.08.2010
4 Rows Selected
- and it really works from ApEx reports.
The questions are:
1) is this the best solution for my task (one centralized code for several reports with parameter filtering detail tables)?
2) how to change example properly to have here -
loop
L_Data.Extend;
l_data(i) :=Apex_User.myRecordType(i, i, 'row ' || i, sysdate+i);
end loop;
- simple SELECT from my MASTER-DETAILS joined tables?Hi,
if (row != null)
Row masterRow = row;
vo.setCurrentRow(masterRow);
// not needed : getMesReponsesPourTiersVO1().executeQuery();
You shouldnot execute the child VO after setting current row in master VO.
When the current row is set in master VO, then the child rows will get refreshed automatically.
Cheers,
Prasanna -
Reports with varying number of variables
Hi all
I am new to the Forum. I have already searched the db for answers to my question but was unsucessful so far.
I want to create a report in html which I open in Excel for my colleagues to edit. One report contains a varying number of variables, such as years. I want to be able to order the records by the years in different blocks, i.e. blocks of projects which are carried out in 2006, 2007, etc. Is there a way of generating such a report with a dynamic number of years without using pl/sql?
Thanks for any help!
Cheers.do you mean you want to use plain sql and sqlplus?
you can maybe try something like
set feedb off head off
break on year skip 1
col year nopri
select ename, hiredate, extract(year from hiredate) year from emp order by year;
SMITH 17.12.80
WARD 22.02.81
JONES 02.04.81
MARTIN 28.09.81
BLAKE 01.05.81
ALLEN 20.02.81
CLARK 09.06.81
FORD 03.12.81
JAMES 03.12.81
KING 17.11.81
TURNER 08.09.81
MILLER 23.01.82
ADAMS 23.05.87
SCOTT 19.04.87 -
Master Detail Forms with 2 composite primary keys - Is there a workaround?
Hello All,
I have been searching for a workaround to the maximum 2 part primary key restriction on the multi-row updates, and master-detail forms, and am hoping that someone can help me. I am using HTMLDB v2.0.0.00.49 with IE 6 against a 9.2 DB.
I successfully implemented the workaround of Fred Stoopendaal's (see Updata PK on HTML DB ) and it works fine for single page multi-record updateable forms, but alas I haven't been able to extend it to master detail forms (I think it is something to do with Oracle not allowing the "returning" clause on views).
Here is what I tried:
two tables, one with a 2 part composite primary key, which is the master table, and a detail table with 3 part composite primary key -
--------- BEGIN SQL ---------
create table master_table
( master_col1 number
, master_col2 number
, master_col3 varchar2(30)
, constraint master_pk primary key (master_col1,master_col2));
create table detail_table
(detail_col1 number
,detail_col2 number
,detail_col3 number
,detail_col4 varchar2(30)
, constraint detail_pk primary key(detail_col1,detail_col2,detail_col3)
, constraint master_detail_fk foreign key (detail_col1,detail_col2) references master_table(master_col1,master_col2));
create or replace view v_master_table as
select rowid mata_rowid,mata.*
from master_table mata;
create or replace view v_detail_table as
select rowid deta_rowid,
(select rowid from master_table mata where mata.master_col1 = deta.detail_col1 and mata.master_col2 = deta.detail_col2) deta_mata_rowid
, deta.*
from detail_table deta;
create or replace trigger mata_ins_upd_trg
instead of insert or update on v_master_table
referencing new as new old as old
for each row
begin
if inserting then
insert into master_table (master_col1, master_col2, master_col3)
values (:new.master_col1, :new.master_col2, :new.master_col3);
end if;
if updating then
update master_table
set master_col1 = :new.master_col1,
master_col2 = :new.master_col2,
master_col3 = :new.master_col3
where rowid = :old.mata_rowid;
end if;
end;
create or replace trigger deta_ins_upd_trg
instead of insert or update on v_detail_table
referencing new as new old as old
for each row
begin
if inserting then
insert into detail_table ( detail_col1, detail_col2, detail_col3, detail_col4)
values (:new.detail_col1, :new.detail_col2, :new.detail_col3, :new.detail_col4);
end if;
if updating then
update detail_table
set detail_col1 = :new.detail_col1,
detail_col2 = :new.detail_col2,
detail_col3 = :new.detail_col3,
detail_col4 = :new.detail_col4
where rowid = :old.deta_rowid;
end if;
end;
--------- END SQL ---------
Then I created a master-detail form in Apex on the two views, using the mata_rowid and deta_rowid as primary keys, and mata_rowid=deta_mata_rowid as the link. I realise that using a function to fetch the master rowid within the detail view query is costly, but it was my intention to modify the record fetch queries to use the real FK columns once things were up and running.
It seems to generate the pages ok, and I can insert/update master table records, but as soon as I modify records in the detail table things go a bit haywire. I can't find any documentation on how the inbuilt MRU/MRD logic works, so can't figure out the issue.
Can anyone out there tell me what the problem is with the logic above, or if they have come up with a neat solution to this annoying limitation. I know that many will say that I should modify the data model to use surrogate primary keys, but many of the uses for HTMLDB are new interfaces for old schemas, so a workaround that doesn't involve wholesale data model changes would be preferable.
Thanks in advance,
Mike CretanHi, this is likely not the most elegant way...but perhaps the simplest -- and I didn't have much time to play.
I used Wizard to create two separate Master Detail forms, each with a separate detail table. Thus I ended up with four pages:
Page "A" - "Selector" page for Master (Report), with Edit link driving to Detail-1
Page "B" - Editable Master/Detail-1 page (HTML / Report)
Page "C" - "Selector" page for Master (Report), with Edit link driving to Detail-2
Page "D" - Editable Master/Detail-2 page (HTML / Report)
Then I selected the primary key column TWICE on the Report on Page A. Modified the second instance of this column to navigate to Page D (passing primary key) exactly the way the original instance of this column navigates to Page B. Then I deleted Page C.
Since you can have only one Tabular Entry form per page, this seemed the best way to drive two separate detail tables from a common interface. -
Populate row of master detail form with selection from LOV?
Hi Guys,
Total noobe, Hope you can help me out with a project I am working on in Oracle Apex 4.1 with 11g XE
I am sure this is a simple enough issue but I just can’t see the solution.
I have a table called ‘STOCK’ this contains all new parts and delivery details.
‘STOCK_ID’ NUMBER PK
‘DELIVERY DATE ‘ DATE
‘PART’ VARCHAR2
‘PART_SN’ VARCHAR2
‘PART_AN’ VARCHAR2
‘INSTALLED’ CHECKBOX
I have a table that list all the current physical locations of hardware for example
ID, Till number, store location etc…
I have an table to list the devices and modification to the hardware in these store locations.
Move Date, Device, Device Serial number, Device Asset Number, Comments
I have a report & form that displays all the current physical locations of hardware and a master detail form linked to this to add devices and modifications to each store location.
I have a LOV setup on the Devices column that is based on a simple select query
SELECT PART from STOCK
ORDER BY 1
This provides me the list of parts in the stock table.
What I need to figure out is how do I get the data from the ‘STOCK’ table when I select a part in the LOV to auto populate ‘DEVICE_SN’ ‘DEVICE_AN’ in my master detail tubular form. this information is contained in the 'PART_SN' & 'PART_AN' columns of the STOCK table.
I also need to figure out how to identify the part because by default the LOV only displays one column and I have no idea which part I am selecting other than by name. i could use a popup LOV and scan a barcode into the search box and get the retuen value to display the part name in the field.
I also would like to reduce the number of records displayed in the LOV by using the ‘INSTALLED’ checkbox i.e. if checked this part has been used and will not be available for selection. The ‘PART_SN’ field can be duplicated as we often get the same part back again as a replacement after repair but this should be valaditated against i.e if the parts is ticked as installed and not available for selection in the list it can be added again this could possibly be validated based on the ‘DELIVERY DATE‘?
I hope this make some sense to you guys if you need any further details let me know.
Cheers
DarrenHi,
I am from the Oracle Forms background too and I have been using Oracle Apex for a while. Oracle Forms is just like client-server application although it uses the Forms servlet to render its Web front-end. I think...if you're really trying to develop true-Web application, you should try to forget such features as "master with many details" in Oracle Forms. Loading all the details in a single page will cause overheads anyway. When you discover more about ajax and such third-party javascript libraries as jquery and mootools, you'll have a different mind of Web development.
Thanks.
Andy -
Master/Detail form with modal edit
I have a master/detail form that I generated using the wizard that I want to change to have a modal Edit button; i.e. the behavior I want is that the form view is initially read-only and you then have to click an Edit button to make the form editable.
I figured out how to do this for the master row by making the edit button redirect back to the same page with the request set to 'EDIT' and then making all the page items read-only with a condition REQUEST <> 'EDIT'.
I cannot find a good way to do this for the detail rows, which are actually a report with editable columns. The problem is that the 'Tabular Form Element' section of the 'Column Attributes' page does not have a read-only condition.
The only work around I can come up with so far is to have a second read-only report region with the same SQL query and then display either the editable or non-editable report region conditionally depending on whether the request is EDIT. But this obviously not ideal (having same SQL in two places, etc.).
If anyone can think of a better way to do this, I'd be grateful.
HTML DB Team: Can you log the addition of a read-only condition attribute on editable report columns as an enhancement request?Simply add the lookup table to the FROM clause and join its PK with the FK in the master table in your query. That's basic SQL, and you definitely must get a good grasp of SQL to do more than very basic work in APEX.
For a good example, please see http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10498/build_app.htm#BCEBJJGB
While you're at it, read and implement the tasks outlined in the 2 Day + Application Express Developer's Guide - http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10498/toc.htm. After that, read the "Oracle Application Express 3.0-- Building a Functional Application" OBE in http://www.oracle.com/technology/obe/apex/obe30/apexdev30.htm - great stuff.
Georger -
Urgent !!! Master- Detail Search with Hide/Show option
Hi,
I have developed a master-detail OAF page with hide/show option.
in my searching option i have both master and detail columns.
How can i control detail level vo query.
Eg. If i pass Item no in the searching option along with customer, i sould get only that item line for that CUST.
I have created parameters in the main query and I am passing param values in a methos at AM.
When i click on Show details its throwing exception.
Can any one please help me how to acheive this. Its urgent...
Thanks,Hi Gyan,
Thanks for your reply.
Master VO query:
SELECT qfbp.pricing_attribute_context,
qfbp.pricing_attribute,
qfbp.comparison_operator_code,
qfbp.pricing_attr_value_from,
qfbp.pricing_attr_value_to,
qfbp.adjustment_factor,
qfbp.start_date_active,
qfbp.end_date_active,
qfbp.list_line_id,
qfbp.factor_list_id
FROM qpfv_factor_base_pricing_attrs qfbp
WHERE qfbp.factor_list_id = NVL(:1,qfbp.factor_list_id)
AND qfbp.pricing_attribute = NVL(:2,qfbp.pricing_attribute)
AND qfbp.comparison_operator_code = NVL(:3,qfbp.comparison_operator_code)
AND NVL(qfbp.pricing_attr_value_from,'xxxxx') = NVL(:4,NVL(qfbp.pricing_attr_value_from,'xxxxx'))
AND NVL(qfbp.pricing_attr_value_to,'xxxxx') = NVL(:5,NVL(qfbp.pricing_attr_value_to,'xxxxx'))
AND qfbp.adjustment_factor = NVL(:6,qfbp.adjustment_factor)
Detail VO Query:
SELECT qfapa.list_line_id, qfapa.pricing_attribute_context,
qfapa.pricing_attribute, qfapa.pricing_attr_value_from,
qfapa.pricing_attr_value_to, qfapa.factor_list_id,
qfapa.comparison_operator_code, qfapa.pricing_attribute_id,
qfapa.creation_date, qfapa.created_by, qfapa.last_update_date,
qfapa.last_updated_by, qfapa.orig_sys_header_ref,
qfapa.orig_sys_line_ref, qfapa.orig_sys_pricing_attr_ref
FROM qpfv_factor_asso_pricing_attrs qfapa
WHERE qfapa.pricing_attribute = NVL (:2, qfapa.pricing_attribute)
AND qfapa.comparison_operator_code = NVL (:3, qfapa.comparison_operator_code)
AND NVL (qfapa.pricing_attr_value_from, 'xxxxx') = NVL (:4, NVL (qfapa.pricing_attr_value_from, 'xxxxx'))
AND NVL (qfapa.pricing_attr_value_to, 'xxxxx') = NVL (:5, NVL (qfapa.pricing_attr_value_to, 'xxxxx'))
Iam using view link to display master detail results in one page.
AM Code : Searcharttr method is for details VO.
public void searchparams(OAPageContext pageContext, OAWebBean webBean)
FactorListSearchVOImpl vo = getFactorListSearchVO1();
String FactorlistName ="";
String FactorListId ="";
String PricingAttribute ="";
String CompOperator ="";
String PricingAttrValFrom ="";
String PricingAttrValTo ="";
String AdjustFactor ="";
if (pageContext.getParameter("FactorListNameId")!=null&&!pageContext.getParameter("FactorListNameId").equals(""))
FactorListId =pageContext.getParameter("FactorListId").toString();
vo.setWhereClauseParam(0,FactorListId);
else
vo.setWhereClauseParam(0,null);
if (pageContext.getParameter("BaseAttrTypeId")!=null&&!pageContext.getParameter("BaseAttrTypeId").equals(""))
PricingAttribute =pageContext.getParameter("BaseAttrTypeId").toString();
vo.setWhereClauseParam(1,PricingAttribute);
else
vo.setWhereClauseParam(1,null);
if (pageContext.getParameter("BaseOperator")!=null&&!pageContext.getParameter("BaseOperator").equals(""))
CompOperator =pageContext.getParameter("BaseOperator").toString();
vo.setWhereClauseParam(2,CompOperator);
else
vo.setWhereClauseParam(2,null);
if (pageContext.getParameter("BaseAttrValueFrom")!=null&&!pageContext.getParameter("BaseAttrValueFrom").equals(""))
PricingAttrValFrom =pageContext.getParameter("BaseAttrValueFrom").toString();
vo.setWhereClauseParam(3,PricingAttrValFrom);
else
vo.setWhereClauseParam(3,null);
if (pageContext.getParameter("BaseAttrValueTo")!=null&&!pageContext.getParameter("BaseAttrValueTo").equals(""))
PricingAttrValTo =pageContext.getParameter("BaseAttrValueTo").toString();
vo.setWhereClauseParam(4,PricingAttrValTo);
else
vo.setWhereClauseParam(4,null);
if (pageContext.getParameter("BaseAdustFactor")!=null&&!pageContext.getParameter("BaseAdustFactor").equals(""))
AdjustFactor =pageContext.getParameter("BaseAdustFactor").toString();
vo.setWhereClauseParam(5,AdjustFactor);
else
vo.setWhereClauseParam(5,null);
public void searchattrparams(OAPageContext pageContext, OAWebBean webBean)
FactorListSearchVOImpl vo = getFactorListSearchVO1();
String AssoAttribute ="";
String AssoOperator ="";
String AssoAttrValFrom ="";
String AssoAttrValTo ="";
if (pageContext.getParameter("AsscAttrType1")!=null&&!pageContext.getParameter("AsscAttrType1").equals(""))
AssoAttribute =pageContext.getParameter("AsscAttrType1").toString();
vo.setWhereClauseParam(1,AssoAttribute);
else
vo.setWhereClauseParam(1,null);
if (pageContext.getParameter("AsscOperator1")!=null&&!pageContext.getParameter("AsscOperator1").equals(""))
AssoOperator =pageContext.getParameter("AsscOperator1").toString();
vo.setWhereClauseParam(2,AssoOperator);
else
vo.setWhereClauseParam(2,null);
if (pageContext.getParameter("AsscAttrValueFrom1")!=null&&!pageContext.getParameter("AsscAttrValueFrom1").equals(""))
AssoAttrValFrom =pageContext.getParameter("AsscAttrValueFrom1").toString();
vo.setWhereClauseParam(3,AssoAttrValFrom);
else
vo.setWhereClauseParam(3,null);
if (pageContext.getParameter("AsscAttrValueTo1")!=null&&!pageContext.getParameter("AsscAttrValueTo1").equals(""))
AssoAttrValTo =pageContext.getParameter("AsscAttrValueTo1").toString();
vo.setWhereClauseParam(4,AssoAttrValTo);
else
vo.setWhereClauseParam(4,null);
Iam getting below error:
Error Page
Exception Details.
oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT qfapa.list_line_id, qfapa.pricing_attribute_context,
qfapa.pricing_attribute, qfapa.pricing_attr_value_from,
qfapa.pricing_attr_value_to, qfapa.factor_list_id,
qfapa.comparison_operator_code, qfapa.pricing_attribute_id,
qfapa.creation_date, qfapa.created_by, qfapa.last_update_date,
qfapa.last_updated_by, qfapa.orig_sys_header_ref,
qfapa.orig_sys_line_ref, qfapa.orig_sys_pricing_attr_ref
FROM qpfv_factor_asso_pricing_attrs qfapa
WHERE qfapa.pricing_attribute = NVL (:2, qfapa.pricing_attribute)
AND qfapa.comparison_operator_code = NVL (:3, qfapa.comparison_operator_code)
AND NVL (qfapa.pricing_attr_value_from, 'xxxxx') = NVL (:4, NVL (qfapa.pricing_attr_value_from, 'xxxxx'))
AND NVL (qfapa.pricing_attr_value_to, 'xxxxx') = NVL (:5, NVL (qfapa.pricing_attr_value_to, 'xxxxx'))) QRSLT WHERE (LIST_LINE_ID = :1)
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2970)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2767)
at OA.jspService(OA.jsp:41)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.sql.SQLException: ORA-01008: not all variables bound -
Creating master details application with views!
Hi All,
I have a requirement to create the master details with the views, but when I was trying to create the master details its asking me for Master Table name & detail table name. Here I am giving the master table name in place of detail table name I am using view but its not showing my view in query builder, my view is already there in the database
any idea why its not showing my view?
Thanks,
Suma.Hi Claudia,
I am so sorry, but I do not check the Oracle forums every day. I am under presser, because have to relocate from Bulgaria to the USA through the end of November.
Shortly, any view could be updatable under many restrictions. I suppose, that is the reason for the errors. I don’t know what kind of connection you have between those two tables.
Under all these circumstances, I’ll offer you to build first a form on the base of the first table which all columns are used. Then you can test, refine, and finish all details about it.
Second, you can Create Page Computation retrieving the column (value, if any) from the second table.
Third, you should Create Page Process on Submit of type “PL/SQL anonymous block”, which will INSERT the calculated (entered) value into second table.
You gain:
1. Full power of ApEx to build automatically forms and reports.
2. Min. manual work.
3. You can use the select statement from the view to build your SQL query.
4. You are able to build and test that part of the application step by step.
Konstantin
[email protected] -
Master / Details Regions with yui Calendar
I have a Calendar of Events that I need to display. I have put a yui Calendar in my Master Region, and need it to control the Details Region. I can get the Details Region to show a single event per day.
Is there a way to let the Details Region show multiple Events if they are scheduled on the same date?
I do not have access to an external web server to post my page to, but here is the code to the Master/Details Region on my site:
<div id="sidebar2">
<div id="yuicalendar1"></div>
<script type="text/javascript">
// BeginWebWidget YUI_Calendar: yuicalendar1 (function() {
var cn = document.body.className.toString();
if (cn.indexOf('yui-skin-sam') == -1) {
document.body.className += " yui-skin-sam";
})(); var inityuicalendar1 = function() {
var yuicalendar1 = new YAHOO.widget.Calendar("yuicalendar1"); // The following event subscribers demonstrate how to handle
// YUI Calendar events, specifically when a date cell is
// selected and when it is unselected.
// See: http://developer.yahoo.com/yui/calendar/ for more
// information on the YUI Calendar's configurations and
// events.
// The YUI Calendar API cheatsheet can be found at:
// http://yuiblog.com/assets/pdf/cheatsheets/calendar.pdf
//--- begin event subscribers ---//
yuicalendar1.selectEvent.subscribe(selectHandler, yuicalendar1, true);
yuicalendar1.deselectEvent.subscribe(deselectHandler, yuicalendar1, true);
//--- end event subscribers ---//
yuicalendar1.cfg.setProperty("title", "Calendar of Events", false); yuicalendar1.render();
} function selectHandler(event, data) {
// The JavaScript function subscribed to yuicalendar1. It is called when
// a date cell is selected.
// alert(event) will show an event type of "Select".
// alert(data) will show the selected date as [year, month, date].
var formattedDateString = data[0][0][1] + "/" + data[0][0][2] + "/" + data[0][0][0];
var r = dsCalendar.findRowsWithColumnValues({"Date": formattedDateString }, true);
var region = Spry.Data.getRegion("classDetail");
if(r){
dsCalendar.setCurrentRow(r.ds_RowID);
region.setState("showClass", true);
} else {
region.setState("ready", true);
}; function deselectHandler(event, data) {
// The JavaScript function subscribed to yuicalendar1. It is called when
// a selected date cell is unselected.
}; // Create the YUI Calendar when the HTML document is usable.
YAHOO.util.Event.onDOMReady(inityuicalendar1);
// EndWebWidget YUI_Calendar: yuicalendar1
</script>
<div spry:detailregion="dsCalendar" spry:setrow="dsCalendar" id="classDetail">
<div spry:state="showClass">
<table width="100%" border="0" cellpadding="1">
<tr>
<td colspan="2"><h4>{Class}</h4></td>
</tr>
<tr>
<td colspan="2">{Description}</td>
</tr>
<tr>
<td>{Location}</td>
<td>{Date}</td>
</tr>
</table>
</div>
<div spry:state="ready">
There are no classes on this date. Please select another date.
</div></div>
<!-- end #sidebar2 --></div>
And, here is the code to my "schedule.htm" file:
Class
Logo
Description
Location
Date
Dreamweaver CS4 Intermediate
Take your skills to the next level with this training.
Austin, TX
12/15/2008
InDesign CS4 Advanced
This class is for experienced users that want to go beyond the basics.
Phoenix, AZ
12/18/2008
Flex CS4 Data Services
Learn about Live Cycle Data Services in this training.
Austin, TX
12/19/2008
Flash CS4 Rich Content Creation
From beginning to intermediate, learn how to animate with the latest tools.
Austin, TX
12/30/2008
Photoshop Advanced
Experienced Photoshop users will learn how to use advanced tools for image manipulation.
Phoenix, AZ
12/20/2008
Dreamweaver CS4 Intermediate
Take your skills to the next level with this training.
Austin, TX
12/01/2008
InDesign CS4 Advanced
This class is for experienced users that want to go beyond the basics.
Phoenix, AZ
12/08/2008
Flex CS4 Data Services
Learn about Live Cycle Data Services in this training.
Austin, TX
12/25/2008
Flash CS4 Rich Content Creation
From beginning to intermediate, learn how to animate with the latest tools.
Austin, TX
12/26/2008
Photoshop Advanced
Experienced Photoshop users will learn how to use advanced tools for image manipulation.
Phoenix, AZ
8/21/2009
Short Course
Seminar where the engineers come together to discuss TxDOT.
Austin, TX
8/26/2009
Long Course
Around the cementary, down to the high school, and back.
Wolfforth, TX
8/21/2009
No Class
No classes on this date.
n/a
Notice on the schedule.htm file, there are some classes that have the same date. I would like the Details region to show multiple classes based on the date. Is that even possible?
Thanks!@strick,
Don't know if you got this sorted out already, but I'll add an answer since I looked here when trying to figure this out.
I had the same problem.
You can get this to do what you want in two steps:
1.) Just below the line in your code that reads
var formattedDateString = data[0][0][1] + "/" + data[0][0][2] + "/" + data[0][0][0];
add the following code:
function myFilterFunc(dataSet, row, rowNumber)
// Filter all rows with date = selected date
if (row['Date'] == formattedDateString){
return row; }
else {
return null;}
// Filter the data.
dscalendar.filter(myFilterFunc);
2.) Just after the line in your code that reads
<table width="100%" border="0" cellpadding="1">
add the following code:
<tr spry:repeat="dscalendar">
Ok, one last step for the code that you've listed here. You should be able to get rid of all the <tr> tags except for the outermost ones. So, it could
look like this:
<table width="100%" border="0" cellpadding="1">
<tr spry:repeat="dscalendar">
<td colspan="2"><h4>{Class}</h4></td>
<td colspan="2">{Description}</td>
<td>{Location}</td>
<td>{Date}</td>
</tr>
</table>
You can see a working example of this at http://www.coloradogreenline.com/YUISpryCalendar/sprytest6.html. October 13, 2009 has more than one event scheduled. This one doesn't display the data in table format, but you can still it working.
Hope this helps.
Maybe you are looking for
-
Time Capsule no longer available
I found an error message on my iMac workstation (OSX 10.7.5, Lion) indicating that my Time Capsule (Model A1409) was not available for backup. The TC is not visible using the iMac Airport utility 'No configured base stations can be found'. The Green
-
PDF/X1a with a logo containing a colorized grayscale tiff not printing properly
I have a 3 color logo: black, PMS 200U, and PMS 1955U. The logo was built in Illustrator and I have placed grayscale tiff ontop of it. The grayscale tiff is a stipple (dots) effect that I colorized to PMS 1955U in Illustrator, masked it out on top of
-
Check product key to make sure it is valid and not registered yet
I want to make sure a copy of windows 7 is legit. can you verify if I provide you with product key?
-
Insight into working of acroexch.rect
I'm new to using the adobe object & request your help: here is my problem: i have a pdf document where there are key-words that always appear, but not at the exact same place everytime. i have to locate a target-word, that is either 1 line above / be
-
P2055 -Would like to use HP "Default Driver" (model-specific driver)
Which printer driver are most P2055 owners using? (Please reply saying which driver you are using!) I can make the printer work with the Universal PCL6, but not with the "Default driver" (P2055_default_install_6.1_ww). I first installed the def