Master Detail grid with flash remoting
I've been trying to populate a detail grid based on selection
from master grid I finally got the second grid (detail) to populate
when I selected a record from the first grid(master), unfortunately
I lost the text input fields for the master record that I was
binding to from the Master grid. now I'm just getting the detail
records.
The two grids are populated by 2 different queries that
reside in the same CFC.
I first populate the Master grid (userGrid) then when a row
is selected I pass the selected rows primary key to the function
that calls the detail query in the cfc. This query selects only the
records where the Master primary key = the foreign key in the
detail table.
This is a sample of the code that is in the script tag that
deals with the grid:
var responseHandler:Object = {};
var userGrid:mx.controls.DataGrid = userGrid; (this is the
master grid)
var userIdGrid:mx.controls.DataGrid = userIdGrid; (this is
the detail grid)
responseHandler.onResult = function ( results: Object):Void
{userGrid.dataProvider = results.item;
_root.setMode('add');
mx.managers.CursorManager.removeBusyCursor();
responseHandler.queryUserid_Result = function (results:
Object):Void
{userIdGrid.dataProvider = results.item;
_root.setMode('add');
mx.managers.CursorManager.removeBusyCursor();
On form load calls the getData() that populates the
Mastergrid using the master query in the CFC - this works.
the getData() looks like this:
public function getData():Void
var qArgs:Object {};
<cfoutput>
qArgs.status = '#session.status#';
</cfoutput>
_global.listingService.queryAll(qArgs);
_root.setMode('add');
mx.managers.CursorManager.removeBusyCursor();
The master grid makes the call to populate the second grid
(getUserid() in the onchange event, the PKNO column is the primary
key:
<cfgrid name="userGrid" ........
onchange="userGridChanged();getUserid(userGrid.selectedItem.PKNO)">
The getUserid () looks like this:
public function getUserid(pkno:String):Void
var userArgs:Object {};
<cfoutput>
userArgs.pkno = pkno;
</cfoutput>
_global.listingService.queryUserid(userArgs);
_root.setMode('add');
mx.managers.CursorManager.removeBusyCursor();
This function is populating the detail grid with the correct
data. When I select a row from the master userGrid.
The right hand panel has textinput fields for the master
record that are bound to the master grid- userGrid. Below these
textinput fields I have the detail grid - userIdGrid that can
contain 1 or more rows. I can only get one or the other to
populate, not both.
Is there a problem with the resultHandlers each specifing the
.dataprovider?
Any help would be greatly appreciated.
Thanks in advanced for any help,
Kim
You call setMode() a lot, perchance you are clearing the
wrong data there when you don't expect it.
Similar Messages
-
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 -
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. -
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. -
Can I set up a Master-Detail Page with report regions for 2 Detail Tables?
Hi there,
I am just starting to use Application Express.
I have a Table (A) with Master-Detail relationships to two Tables B & C.
I can set up a Master-Detail Page between Table A and Table B, where the records displayed in Table B change when switching between records in Table A. I would like to add Table C to the page and for this to work in the same way.
Is this possible in APEX? (I've tried adding a report region for Table C and making the Region Source dependent on the same ID field as is used by the report region for Table B but I keep getting "No Data Found" for Table C).
Many thanks.Thanks, but the text needs to be on a single master page which every page is assigned to. This is so the text alternates correctly regardless of whether new pages are inserted or moved. If I assigned separate master pages to individual pages and then moved the pages to a different location, the alternating footer text would then fall out of sync. I hope that made sense!
-
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 -
Master-detail page with form layout -- insert only -- not in create mode
JDeveloper 10.1.3.1 with JHeadstart
I have the following master-detail structure in JHeadstart:
Group 1, Table a, Layout: table-form
Group 2, Table b, Layout: table-form
Group 3, Table c, Layout: form
Group 4, Table d, Layout: form (on same page as master table c)
Table a, b and c are updatable (insert, update and delete).
I have problems with the last page, tables c and d, master-datail both in form layout.
The master-table (c) is not an insert-only table, the detail table needs to be an insert-only form on the same page as the master table c.
Settings Table d:
Advanced search and quick search: none
Autoquery: disabled
Single row insert allowed (other options in Operations disabled)
In my view object I have used the settings in the JDeveloper guide 8.1.2 ('no rows...' in tab Tuning).
I run my application in JDeveloper (with the option run in my ViewController-project, which means that I am not running my detail page directly in JDeveloper??) and when I open this last page, the detail form is not in create mode (I see no rows found and a create rows button).
I have read several threads in this forum, but I do not know how to solve this problem.This does not work.
In my first post I made an mistake in describing my application, it is not a table-form, but a tree-form application:
Group 1, Table a, Layout: tree-form
Group 2, Table b, Layout: tree-form
Group 3, Table c, Layout: tree-form
Group 4, Table d, Layout: form (on same page as master table c)
If I override the executeQueryForCollection method in the ViewObjectImpl of table d I get a message ('JBO-27122: SQL-fout tijdens voorbereiding van statement' and 'java.sql.SQLException: OALL8 is in an inconsistent state').
while clicking on the tree (with table b and c). It seems that the QueryForCollection method is being executed to early. -
Error "field required" in master-detail form with FORMS 10G!!
I have a Master-Detail Form.
When the cursor stay in detail block and i chage the master record with the mouse, clicking in scroll bar, i get error "field required".
In Forms 6i, works fine!!Master block has more than one record displayed. When I click on any item in detail (except first one) and then click on different master record (return navigation to master block, but not current record) I have FRM-40202: Field must be entered on first item in detail block.
I found that reason is this part of clear_all_master_details procedure (automatically created by Oracle Forms):
IF :System.Cursor_Item <> startitm THEN
Go_Item(startitm);
Check_Package_Failure;
END IF;
Does any have same experience?
Is it Oracle bug or I am missing something? -
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 -
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 -
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 -
Exporting Master/Detail page in Flash...
Hi...
Is it possible to have a master/detail page created in
Dreamweaver like these (ASP or PHP):
http://www.macromedia.com/support/dreamweaver/building/master_detail_net/
http://www.macromedia.com/support/dreamweaver/building/master_detail_php/
to be displayed in a flash scrollable box maintaining the
ability to click on the single items and view their details?
Thanks.Hi,
It can be achieved using View Link.
More information can be found at ToolBox Tutorial Guide.
Regards,
Gyan -
How to Create Master Detail Page with Query Region
Hi,
1. I have a requirement that i need to create a Master(Supplier) Detail(Supplier Site) Page with Query Region.
Eg. Supplier A in Australia has Supplier Sites X in Melbourne and Y in Sydney.
Supplier B in US has Supplier Sites C in New York and D in California.
I need to have Search, based on two fields Supplier Name and Country
Let us assume i am searching with Supplier Name A then the page should be in the below layout
Query Region
Supplier Name : A
Country:
Master
Supplier Name Country
A Australia
Detail
Supplier Site City
X Melbourne
Y Sydney
In detail VO it should allow me to add new sites which means i need to connect this VO to database to insert new records
I have gone few threads and understood that this can be achieved by creating SupplierVO, SupplierSiteVO and a ViewLink.
But when tried i don't know how can i relate my query region with the Suppleir Table(Header Reagin and Table Using Wizard) and Supplier Site Table(Header Region and Table Using Wizard) i am not sure if i am correct or not, please advise
2. Also i need to have a Open button in this page and if click the button it should navigate to some other page.
Please help me how can i achieve this.
- How to design my page with query region and master detail tables
- what is the AM and CO code need to be handled
- What is the code should i write in Open button to open new OAF page.
Thanks,
CSKHi,
This link will be useful for your requirement.
Master Detail Page using Hide Show and Advanced Table inside Advanced Table - OracleArea51.com
Let me know if you need more help in this.
Thanks and Regards,
Myvizhi -
Master - Detail Form with multiple children
Hi,
I have managed to create a Master - Detail form in APEX with 2 child tables. For evey parent it brings back the associated child records from the
2 tables in 2 regions.
I am having a problem with the Add Row buttons. I copied the button from region 1 ( child 1) to region 2 (child 2). Re-named them (AddRows2).
When I hit hit Child2 Add Rows, it adds the row to Child 1 region. I suspect it's got something to do with the MRU Process, so I created another
one called MRU2, based on button Addrows2/ Child table 2. Seems logical, but it still creates the new record in Region 1 ( Child 1).
Any ideas or examples,
Thx.Hi,
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
Maybe you are looking for
-
Maintenance View - Can you sort/Filter? How to create z transaction for it?
Hi, I will be creating a maintenance view that will be used several times at the end of every month, eventually storing more than 500 entries. Is there anyway for the user to be able to sort/filter the maintenance view by field? This would be helpful
-
Doc.Save on Snow Leopard InDesign CS4 js
Hi, one of the scripts that we use have save and close commands for InDesign doc, and it usually works good, but for some big files the save command doesn't work for some reason. What I discovered that doc.saved returns as true when the doc is not sa
-
Formula that checks drop down list and then sums
I have a table with a drop down list with two values: '$' and 'Hr' (cell called 'PType'). There is a cell called 'Proposed' that contains numerical data. The table is dynamic and can have more cells inserted via a button within the row. I have a to
-
I want to know if the next version will siri Hebrew
I want to know if the next version will siri Hebrew?
-
Hi, I just download the JSF version of the ToyStore and then I create the two users. I right-click the index.jsp to run it but it shows the following error Request URI:/ADFToyStore/index.jsp Exception: OracleJSP:java.io.FileNotFoundException: C:\adf_