Cascade lov in a "form with a report"
I am fairly new to HTMLDB and struggling with this one. Can anyone help?
I have built a test application that uses a form with report, created using the wizard.On the form I have cascaded LOVs( SITEOWNER and SITE) . The second LOV should depend on the first in that only the sites belonging to the siteowner in the first LOV should be available for selection. I cannot get this to work. I have tried to use "select list" on bothe LOVs but in this case the second LOV is blank. I have also tried "select list with submit" and trap the submit with REQUEST != expression1 as described in some of the posts in this forum, but cannot stop the form from branching.
Any help will be welcome !. My test application is at the Oracle HTMLDB site.
MISTST1/[email protected]/bitotu
Hi,
If you edit your report region there in the report attributes you will be finding the "Link Column" Section.
Under the link column section you will be referring the pencil icon image and target page number in the application.
Brgds,
Mini
Mark Answers Promptly
Similar Messages
-
Dependant LOVs on Customization form of a report
Portal Version: 3.0.9.8.0
Database Version: 8.1.7.3
Hi
Our problem is that we've created a report component which includes two bind variables. These bind variables are chosen on the customization form through LOVs. The second LOV needs to be dependant on the first. Here's the code of the report and LOVs:
REPORT
select * from SHARE_DATA A, SHARE_INSTRUMENTS B, COMPANIES C, INDUSTRIES D
where D.SYSTEM_ID = :Industry
and C.SYSTEM_ID = :Company
and C.SYSTEM_ID = A.CPY_SYSTEM_ID
and A.SIN_SYSTEM_ID = B.SYSTEM_ID
and C.IND_SYSTEM_ID = D.SYSTEM_ID
where bind variables :Industry and :Company are linked to the following LOVs
LOV_INDUSTRIES
select (INDUSTRY_NAME||' '||SECTOR_NAME) industry_sector, (SYSTEM_ID)
from INDUSTRIES
order by industry_sector
LOV_COMPANIES
select A.NAME name, A.SYSTEM_ID
from COMPANIES A
where IND_SYSTEM_ID = :Industry
order by name
LOV_COMPANIES is dependant on LOV_INDUSTRIES.
We receive the following error message when opening up the customization form:
COMBOBOX LOV ERROR:
LOV: "APP_ACIA.LOV_COMPANIES"
Parse Message: Parse as pre-set global: "ACIA".
Find Message: LOV is of type DYNAMIC (LOV based on SQL query).
Query: "select A.NAME name, A.SYSTEM_ID from COMPANIES A where IND_SYSTEM_ID = :Industry order by name "
wwpre_utl.get_path_id: The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.1088240437
wwpre_utl.get_path_id: The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.1088240437
wwpre_utl.get_path_id: The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.1088240437
wwpre_utl.get_path_id: The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.1088240437Hi,
The error is thrown because the lov is not able to substitute the value for the bind variable. The substitution is not happening
because depandant lovs are not supported in Portal Reports.
Thanks,
Sharmila -
Generation of pdf forms with Oracle Report
I would like to generate editable pdf with Oracle Reports. That means I need clickable check boxes in the output.
Any suggestions or hints?
Thanks in advance.
UweHi Uwe
Reports does not currently have the capability to create PDF files with form fields.
Regards
The Oracle Reports Team -
I have a form. When the user fills in the information, then click on the Create button, I like to have the form reset and the data displayed at the bottom. Every time the user fills in the info and click on Create, whatever the user just typed, the data just accumulates at the bottom to show another row of data that he filled out. The following shows at the bottom of the form the 3 set of data the user filled out after the create button is clicked 3 times.
A..............B...........C.............D
1...bun......burger.....tomato....bun
2...bun......hot dog...mustard...bun
3...bread...meat.......lettuce.....bread
The data not only is seen at the bottom of the form but it also populates the table after the create button is clicked.
Only when the user click Cancel does this form with report at the bottom goes to the designated page, usually page 1.
So the question is how can I have only the data the user inputed, displayed from the created button until the cancel button is clicked.This could be for a number of reasons that would be hard to identify without a simple example replicated on apex.oracle.com
Run the create page wizard through Form, Form on Table with Report - and you should receive two pages doing just this. Also compare to Sample application. -
LOV of column names with a report's custom column headings?
I have a list ov values definition that looks like this:
select column_name d, column_name r from all_tab_columns where table_name = 'DATABASE_LIST'
I'd like to list the custom column headings from a report as d, rather than repeating the column_name. How can I do this?As Anton said, the best thing is to store your custom headings in a table so that you can use the table for your LOV as well as for your report headings.
To use dynamic report headings, you can use the 'PL/SQL function body returning colon-delimited headings' feature on the Report Attributes page.
So, if your report headings are stored in table t that function body can be
declare
l_headings varchar2(4000)
begin
for rec in (select heading from t) loop
l_headings := l_headings||':'||rec.heading;
end loop;
return ltrim(l_heading,':');
end;Hope this helps. -
Need help in completing Denes Kubicek code: cascading lov in tabular form
Hi, I have been working off of Denes Kubicek demo for cascading lovs and have finally (!) gotten it working....sort of.
Denes's instructions indicate that you must request an account in order to receive the code. I have done so, but have not had a response....can anyone help me on what needs to be done in oder to complete his instructions?
thanks!!
here is his helpful code:
http://htmldb.oracle.com/pls/otn/f?p=31517:176:2537143614094776sorry. my query is now:
select
apex_item.hidden(11,seq_id) seq,
apex_item.hidden (12,seq_id)||
apex_item.select_list_from_query_XL(13,c013,'select distinct s.common_name d, s.species_itis r
from species s, species_qc c
where partner_id = '||:f200_issuing_agency||' and
c.species_itis = s.species_itis order by s.common_name',
'style="width:220px" '
|| 'onchange="f_set_casc_sel_list_item(this,'
|| 'f16_'
|| LPAD (seq_id, 4, '0')
|| ')"',
'YES',
'0',
'- Select Species -',
'f13_' || LPAD (seq_id,4, '0'),
NULL,
'NO'
) SPECIES_ITIS,
apex_item.select_list_from_query(14,c014,'select disposition_desc d, disposition_code r
from dispositions
where displayed = 1 order by disposition_desc') DISPOSITION_CODE,
apex_item.text(15,c015) reported_quantity,
apex_item.select_list_from_query(16,c016,'SELECT DISTINCT unit_desc ,unit_of_measure
FROM species_Qc s, units_of_measure u
WHERE s.unit_of_measure = u.unit_measure
AND species_itis = '||c013||'AND partner_id = '||:F200_ISSUING_AGENCY,
'style="width:220px"',
'YES',
'0',
'- Select Unit -',
'f13_' || LPAD (seq_id, 4, '0'),
NULL,
'NO' ) UNIT_MEASURE,
apex_item.SELECT_LIST_FROM_LOV(17,c017,'SALE_DISPOSITION') SALE_DISPOSITION_FLAG,
apex_item.text(18,c018) PRICE,
apex_item.text(19,c019) PERMIT_ID,
apex_item.select_list_from_query(20,c020,'select market_desc d, market_code r
FROM market_categories
where market_code in (select distinct market_code
from species_qc
where species_itis = '||c013||'
and partner_id = '||:F200_ISSUING_AGENCY||')',
'style="width:220px"',
'YES',
'0',
'- Select Market -',
'f13_' || LPAD (seq_id, 4, '0'),
NULL,
'NO' ) MARKET_CODE,
apex_item.text(21,c021) GRADE_CODE,
apex_item.text(22,c022) trip_id
from apex_collections c
where collection_name = 'CATCH_C' and
c.c022 = :F200_CURRENT_TRIP_ID
UNION ALL
select
apex_item.hidden(11,null) seq,
apex_item.hidden (12,null)||
apex_item.select_list_from_query_XL(13,0,'select distinct s.common_name d, s.species_itis r
from species s, species_qc c
where partner_id = '||:f200_issuing_agency||' and
c.species_itis = s.species_itis order by s.common_name',
'style="width:220px" '
|| 'onchange="f_set_casc_sel_list_item(this,'
|| 'f16_'
|| LPAD (9900 + LEVEL, 4, '0')
|| ')"',
'YES',
'0',
'- Select Species -',
'f13_' || LPAD (9900 + LEVEL,4, '0'),
NULL,
'NO'
) SPECIES_ITIS,
apex_item.select_list_from_query(14,null,'select disposition_desc d, disposition_code r
from dispositions
where displayed = 1 order by disposition_desc') DISPOSITION_CODE,
apex_item.text(15,null) reported_quantity,
apex_item.select_list_from_query(16,null,'SELECT DISTINCT unit_desc ,unit_of_measure
FROM species_Qc s, units_of_measure u
WHERE s.unit_of_measure = u.unit_measure
AND species_itis = '||0||'AND partner_id = '||:F200_ISSUING_AGENCY,
'style="width:220px"',
'YES',
'0',
'- Select Unit -',
'f13_' || LPAD (9900 + LEVEL, 4, '0'),
NULL,
'NO' ) UNIT_MEASURE,
apex_item.SELECT_LIST_FROM_LOV(17,null,'SALE_DISPOSITION') SALE_DISPOSITION_FLAG,
apex_item.text(18,null) PRICE,
apex_item.text(19,null) PERMIT_ID,
apex_item.select_list_from_query(20,null,'select market_desc d, market_code r
FROM market_categories
where market_code in (select distinct market_code
from species_qc
where species_itis = '||0||'
and partner_id = '||:F200_ISSUING_AGENCY||')',
'style="width:220px"',
'YES',
'0',
'- Select Market -',
'f13_' || LPAD (9900 + LEVEL, 4, '0'),
NULL,
'NO' ) MARKET_CODE,
apex_item.text(21,null) GRADE_CODE,
apex_item.text(22,null) trip_id
FROM DUAL
WHERE :request = 'ADD'
CONNECT BY LEVEL = 2
I have two issues:
1. the item tab_cascading_item is not populated when the value of c013 (species) is changed.
2. I receive an error when trying to add a row to the collection. My code for doing so is:
begin
for i in 1..1 LOOP
apex_collection.add_member (p_collection_name => 'CATCH_C',
p_c013 => null,
p_c014 => null,
p_c015 => null,
p_c016 => null,
p_c017 => null,
p_c018 => null,
p_c019 => null,
p_c020 => null,
p_c021 => null,
p_c022 => :F200_CURRENT_TRIP_ID );
end loop;
end;
I am so close on getting this....any help would be appreciated. -
Connecting a form with a report
Hi,
I have created a report page with two tables 'A' and 'B' , with ID as primary key for A and ID is foreign key for B . There is an edit link in each row of the report. When we click on that edit link it will be redirected to a form page which is based on only one of those table(as i cannot select both table) , ie B .
Problem is that the form is not auto populated with the value of the row in which i clicked the edit button.
Please give some Idea.
ThanksThis could be for a number of reasons that would be hard to identify without a simple example replicated on apex.oracle.com
Run the create page wizard through Form, Form on Table with Report - and you should receive two pages doing just this. Also compare to Sample application. -
Cascading LOV's in a multi row report
Some while ago there was a great post about dependant LOV's, for ref. its this one:
http://forums.oracle.com/forums/thread.jspa?messageID=1222153?
I've been trying to do something very similar, but i'd like the code to work with display and return values, where the return val. is an ID, rather than in the old example it being the same as the displayed value, so looking at the original example, instead of:
select val d, val r from manufacturer order by 1
If we modified the table definition to this:
CREATE TABLE MANUFACTURER
ID NUMBER,
VAL VARCHAR2(200 BYTE)
we would have something like
select val, id from manufacturer order by 1
Not being a javascript guru, can anyone advise if the code can be modified to cater for this? I have had partial success in that the second LOV updates based upon the value in the first LOV, but when changes are saved, it still stores the displayed value rather than the return ID.
For reference, i've modified the on demand process to this:
begin owa_util.mime_header('text/xml', FALSE );
htp.p('Cache-Control: no-cache');
htp.p('Pragma: no-cache');
owa_util.http_header_close;
htp.prn('<select>');
for rec in (select cpc_name, cpc_id from ct_product_categories cpp, ct_page cp
where cpp.cc_id = cp.cp_id
and cp.cp_id = :TEMPORARY_ITEM) loop
htp.prn('<option value="' || rec.cpc_name|| '">' || rec.cpc_name|| '</option>');
end loop;
htp.prn('</select>');
end;
I have 2 LOV's rather than the original examples 3, the first of which is defined as a simple query thus:
select cp_name nm, cp_id id from CT_page order by 1
This first query triggers the ondemand process defined above. The second query is simply:
select cpc_name nm2, cpc_id id2 from ct_product_categories
The javascript used in the region header is:
<script type="text/javascript">
function appendToSelect(pSelect, pValue, pContent) {
var l_Opt = document.createElement("option");
l_Opt.value = pValue;
if(document.all){/* why is ie different ask bill */
pSelect.options.add(l_Opt);
l_Opt.innerText = pContent;
else
{l_Opt.appendChild(document.createTextNode(pContent));
pSelect.appendChild(l_Opt);
var g_subj_area=new Object;
//var g_sales_reps=new Object;
function replace_select_list(pSelect,pXML){
var l_Count = pXML.getElementsByTagName("option").length;
pSelect.length = 0;
for(var j=0;j<l_Count;j++){
var l_Opt_Xml = pXML.getElementsByTagName("option")[j];
appendToSelect(pSelect, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
function get_ajax_select_xml(pThis)
var l_Return = null;
var l_td=$x_UpTill(pThis,'TD');
var l_subj_area_2=l_td.nextSibling.getElementsByTagName('select')[0];
var old_subj_area_2;
if (l_subj_area_2.options.length>0) old_subj_area_2=html_SelectValue(l_subj_area_2);
if (g_subj_area[pThis.value] && l_subj_area_2) {
replace_select_list(l_subj_area_2,g_subj_area[pThis.value]);
if (old_subj_area_2) html_SetSelectValue(l_subj_area_2,old_subj_area_2);
else {
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=GET_SUBJ_AREA',html_GetElement('pFlowStepId').value);
get.add('TEMPORARY_ITEM',pThis.value);
gReturn = get.get('XML');
if(gReturn && l_subj_area_2) { replace_select_list(l_subj_area_2,gReturn); if (old_subj_area_2) html_SetSelectValue(l_subj_area_2,old_subj_area_2);}
g_subj_area[pThis.value]=gReturn;
get=null;
</script>
And the javascript used in the region footer is:
<script type="text/javascript">
function getCellIndex(pRow,pCell){
if (document.all){
for(var i=0;i<pRow.cells.length;i++){
if(pRow.cells[i] == pCell){l_Count = i}
}else{
l_Count = pCell.cellIndex;
return l_Count;
function fire_onchange(){
var td_subj_area_1=$x('SUBJECT_AREA_1');
var l_cellindex=getCellIndex(td_subj_area_1.parentNode,td_subj_area_1);
var l_table=$x_UpTill(td_subj_area_1,'TABLE');
for (var j=1;j<l_table.rows.length-2;j++) {
var l_cell=l_table.rows[j].cells[l_cellindex];
var l_select=l_cell.getElementsByTagName('select')[0];
if (l_select && l_select.onchange) l_select.onchange();
fire_onchange();
</script>User478832,
I didn't look thru all the code but I have a feeling your problem is the 9th line in the On Demand process. (the 9th line in this post anyway)...
htp.prn('<option value="' || rec.cpc_name|| '">' || rec.cpc_name|| '</option>');
You modified your query to get a different column but your returning the same column later: rec.cpc_name x2
I assume you want to display NAME and return ID so change it like this...
htp.prn('<option value="' || rec.cpc_id || '">' || rec.cpc_name|| '</option>');
Let me know if that helps...
Dan -
How to run multiple reports From One Form with 1 report object?
Hi ALL!
i want to run multiple reports (in 10g technology) from 1 Form having only 1 report object.
i.e
IF parameter=yes THEN
Rpt_new should run
Else
Rpt_old should run
END IF;
How can i do this?
thanks
ranaRana,
I found this in the Forms online Help. You could easily found it yourself. Don't be afraid of pressing CTRL-H:
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME, 'yourreportsfilename.rdf')Regards,
Martin Malmstrom -
How can i populate pdf form with access report data
i am trying to make a report electronicly signable. my report is compiled weekly from an access database and i need a way to make it signable. if i can export records from access to an existing pdf would be great. or maybe there is a way to get a signature block put in on the fly? got any ideas?
i am trying to make a report electronicly signable. my report is compiled weekly from an access database and i need a way to make it signable. if i can export records from access to an existing pdf would be great. or maybe there is a way to get a signature block put in on the fly? got any ideas?
-
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 -
Reporting cell comments with Financial Reporting
Hi all,
Is there anyway to report comments attached to cells in "Planning data forms" with Financial reporting? Which function should I be using to do that?
I am using the 11.1.2.2 version.
Thanks.I believe the functionality is <<CellText("GridName", Row, Column, Page)>> whcih retrieves planning cell comments.
The full FR studio guide is here: http://docs.oracle.com/cd/E17236_01/epm.1112/fr_user_epm/frameset.htm?launch.html search for celltext and it will give you more detail.
Edited by: Agnete on Aug 28, 2012 9:44 AM -
Resetting a Form with Cascading LOVs (Apex 4)
A standard reset button cannot reset cascading LOVs properly. Let's assume we have a parent LOV and a child LOV. When one changes the selection in the child LOV, reset can undo this. But when he changes the selection in the parent LOV, reset will undo only the parent LOV but not the child LOV. The child LOV remains unchanged (however the selection is lost) and therefore shows a list that does not correspond to the entry now shown in the parent LOV.
Has anybody found a solution for this, a reset action that can reset cascading LOVs completely and properly?
Regards
RolandRoland,
i didn't try this myself but maybe you succeed with triggering the onchange-event of your parent-select-list (this should cause the child select-list to be refreshed).
Or you could try if a form region has a apex "refresh" event (i know that refresh works on reports).
brgds,
Peter
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
BuilderPlugin: http://builderplugin.oracleapex.info
Work: http://www.click-click.at -
Creating a Cascading LOV in an Interactive Report
version 4.1.1.00.23
Hello,
Would someone help me with creating a Cascading LOV in an Interactive Report?
I'm not finding much help searching Google or the forum.
Thanks,
JoeI used this example but I cant show picture in my region using this procedure. It displays simbol for broken image. Any help. I even added grants for procedure, but it just does't work. This is how I call procedure in html region:<img src="#OWNER#.display_thumb?p_photo_id=3084374128401555434" />
-
Cascading LOV in a Tab Form Help
version 4.0.2.00.07
Hello,
I've aquired an application that was written by someone else. I have a Tab Form that needs a Cascading LOV. There is code already in place, but I have questions about it that I'm hoping someone can help.
There's a LOV called Product Group that has an onChange in the Element Attributes:
onchange="f_load_platform(this.value,#ROWNUM#);"In the HTML Header is a javascript function:
function f_load_platform(p_pg_id, p_rownum){
if (p_pg_id) {
v_new_list = html_GetElement('f04_'+ f_zero_pad(p_rownum,4));
v_curr_value = v_new_list.value;
var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=Get_Platform_From_Product_Group',0);
get.add('P21_PRODUCT_GROUP_ID_PARAM',p_pg_id);
gReturn = get.get();
if (gReturn) {
// Separate each combination set of values
var NameArray = gReturn.split(",");
// Reset dropdown list by making its length to a needed value
v_new_list.length = NameArray.length-1;
for(i=0; i < NameArray.length; i++){
NameArrayList = NameArray.split("~");
if(NameArrayList[0] != "") {
v_new_list[i].value = NameArrayList[0];
v_new_list[i].text = NameArrayList[1];
if(NameArrayList[0] == v_curr_value) {
v_new_list.selectedIndex = i;
else {
v_new_list.length = 0;
function f_zero_pad(num,count)
var numZeropad = num + '';
while(numZeropad.length < count) {
numZeropad = "0" + numZeropad;
return numZeropad;
The Add Row button is set to:
Action: Redirect to URL
Execute Validations: Yes
URL Target: javascript:addRow();
When I debug the javascript the variable v_new_list shows as false. I can also see that p_rownum variable in the javascript function contains 0. I don't know if that's correct.
Can someone help me with why this function does not return the values into the select list for the f04 item?
What other information can I provide?
Thanks,
JoeScott,
Thank you for replying.
While debugging the javascript, I can see that gReturn does contain a string of the Platforms for that Product Group ID.
What I don't know if it's correct is the call to: v_new_list = html_GetElement('f04_'+ f_zero_pad(p_rownum,4));
When I view source I see that f04_0000 is the Platform select list item.
<td headers="PLATFORM_ID" class="t13data"><label for="f04_0000" class="hideMe508">PLATFORM_ID</label><select name="f04" id="f04_0000">...I don't know why the previous developer wrote a function to append the four zero's to the item, but I get the same result when I take out the padding call and replace it with the four zero's so the statement looks like this: v_new_list = html_GetElement('f04_0000');
I still can see that v_new_list is undefined in the debugger. Any other ideas?
Thanks,
Joe
Maybe you are looking for
-
How to read Skype connection logs (.log files in /...
Hi all, A funny problem but really important - please help! I set up logging to find out causes of some tech problems occuring during my calls, as it described here: https://support.skype.com/en/faq/FA12321/how-do-i-create-log-files So, I get now /Lo
-
Reading Data from Internal Table
Hi, Can anyone please tell me how to read data from Internal Tables in the Event Handler without using the Select statement OnInitialization? Thanks, Gaurav
-
G4 PowerMac can't see forth drive?
Sorry, I just realized I posted this in the wrong place earlier today. I recently installed a new 500GB drive into a G4 PowerMac tower. This is the forth drive in the system and required the removal of the old CDROM drive in the system. It's not an i
-
I have more than 5 computers in my home network, how can I authorize more than 5?
I bought a new PC and I want to authorize it for homesharing too.
-
Hi all, I have some text with HTML markup saved in a DB that I'd like to output. The saved text includes some <p> tags, but when outputting, I'd like to apply a style, so I used #replaceNoCase(MessageBody,"<p>","<p class="Copy">","all")#, but I get a