Cascading - HELP selection lists
I still missed something in the samples I've seen on the internet at cascading selection listsI just need a selection list to determine the choice of another selection list, use simple terms.
Thanks for your help. Please need as soon as possible.
Hello
OK - first of all you must have an item hidden on page 2 that will receive the country code (I'll stick with my example, if that's ok)-say P2_COUNTRY_CODE.
Now create two selection lists - say P2_STATE_CODE and P2_CITY_CODE.
It helps if you check that the P2_STATE_CODE list is defined with a default value to ensure that the list can be filtered properly. Create a calculation, to run in the point of process "Before Header" and the conditional on P2_STATE_CODE is null (Type of Condition: the point in 1 Expression is NULL;) Expression 1: P2_STATE_CODE). The value of a "static allocation" of something that will not appear in the list (for example, ZZ for strings) or - 1 for numerical values. You can do this on the list of cities as well if you wish. The two lists must be defined to display null values and have something like - Select - like display null text.
Your list of States should be created as a Select list with Submit with a list of values based on a SQL statement:
SELECT STATE_NAME d, STATE_CODE r FROM STATES WHERE COUNTRY_CODE = :P2_COUNTRY_CODE
Your list of cities is a list of select normal with a list of values based on a SQL statement:
SELECT CITY_NAME d, CITY_CODE r FROM CITIES
WHERE COUNTRY_CODE = :P2_COUNTRY_CODE
AND (:P2_STATE_CODE = 'ZZ' OR STATE_CODE = :P2_STATE_CODE)
Now, when the user selects a country from page 1, the country code is spent in P2_COUNTRY_CODE before the loading of page 2. The default values for P2_STATE_CODE and P2_CITY_CODE are defined and the lists are generated - cities list will display all cities for the country selected as the list of States shows only the default value of ZZ and cela "corresponds to" all cities of the country. Then, when the user selects an item in the list of the States, the page is sent and the value of P2_STATE_CODE is updated in the session. As the list of cities is based on this value, when the page is reloaded, it will be updated to filter based on the P2_COUNTRY_CODE and P2_STATE_CODE values.
The only thing you need to ensure is that P2_STATE_CODE and P2_CITY_CODE are deleted from the cache when you have more page - you can do in the branch back to page 1.
Andy
Tags: Database
Similar Questions
-
How to set the default value in the select list to cascaded
Hello
I use Denes Kubicek cascade example list of selection http://htmldb.oracle.com/pls/otn/f?p=31517:119
And I want to give cascading the selection list with a default value. So, anyway, I use this application process:
< pre >
BEGIN
OWA_UTIL.mime_header ("text/xml", FALSE);
HTP.p ('Cache-Control: non-cache');
HTP.p ('Pragma: non-cache');
OWA_UTIL.http_header_close;
HTP.prn ("< select >");
HTP.prn ("< option value ="' | 1 |) "" > ' | '- all employees-' | ' < / option > ");"
FOR c IN (SELECT ename, empno
WCP
WHERE mgr =: cascading_selectlist_item_2)
LOOP
HTP.prn ("< option value ="' | c.empno |) '">' || c.Ename | ("< / option >");
END LOOP;
HTP.prn ("< / select >");
END;
< / pre >
How can I select for example empno default 1000?
Thanks in advance.
JacobJakob,
In this case, your default value is
HTP.prn (')
However, you can set the default value in the loop as you want. You just say that is your default - first, second, third...
In the list select ajax there's no submit and no calculation of values then I assuem your default is the punch one you wan to display when a selection list has been changed?
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------- -
Need help to select lists in cascade and Update button in IR
Hello
I try to use cascading Select lists in a form that is called when the button update (see photo) is pressed in an IR problems I encounter are 2:
1. during execution of the first of the form (that is to say by pressing the update or create in IR), the first Select list values but the 2nd is empty. If I change the value of the
Select the first list then 2nd fills with the correct values, etc. I want the two 1st AND 2nd list to fill in the entry on the form.
2. in addition, while pressing the button update, the 2nd list select do not seem to have the correct value selected, that is, the value that is actually in the database (IE in the)
database file), but always the 1st available in the select list 2. The value of the select list 1 is always that of the recording.
Any help will be appreciated. The following information:
Table mapping: (form updates this table)
ID
Iface_protocol_id = > (list 1): Table: iface_protocols
Iface_protcol_categ_id = > (2nd list): Table: iface_protocol_categ, a FK to iface_protocols the iface_protocol_id
.....
Application process involved
DECLARE
l_counter NUMBER;
l_o_name VARCHAR2 (2000);
BEGIN
owa_util.mime_header ("text/xml", FALSE ");
HTP.p ('Cache-Control: non-cache');
HTP.p ('Pragma: non-cache');
owa_util.http_header_close;
HTP. PRN ("< select > '");
FOR rec IN (SELECT "IFACE_PROTOCOL_CATEG". "" IFACE_PROTOCOL_ID ".
as "IFACE_PROTOCOL_ID."
'IFACE_PROTOCOL_CATEG '. "' DESCR_LOCAL ' as 'NAME',
'IFACE_PROTOCOL_CATEG '. ' ' ID ' as the 'ID '.
OF 'IFACE_PROTOCOL_CATEG' 'IFACE_PROTOCOL_CATEG '.
WHERE 'IFACE_PROTOCOL_CATEG '. "" IFACE_PROTOCOL_ID ".
=: F108_TEMPORARY_ITEM1)
LOOP
HTP. PRN ("< option value ="' | rec.id |) '">' || Rec.Name
|| ("< / option >");
END LOOP;
HTP. PRN ("</select > '");
END;
HTML Source code in the corresponding form region
< script language = "JavaScript1.1" type = "text/javascript" >
function get_AJAX_SELECT_XML (pThis, pSelect) {}
var l_Return = null;
var l_Select = $x (pSelect);
get var = new htmldb_Get (null, $x('pFlowId').value, 'APPLICATION_PROCESS is Interface_Protocol_Categories', 0);
Get.Add ('F108_TEMPORARY_ITEM1', pThis.value);
gReturn = get.get ('XML');
If (gReturn & & l_Select) {}
var l_Count = gReturn.getElementsByTagName("option").length;
l_Select.length = 0;
for (var i = 0; i < l_Count; i ++) {}
var l_Opt_Xml = gReturn.getElementsByTagName ("option");
appendToSelect (l_Select, l_Opt_Xml.getAttribute ('value'), l_Opt_Xml.firstChild.nodeValue)
}
}
get = null;
}
function appendToSelect (pSelect, pValue, pContent) {}
var l_Opt = document.createElement ("option");
l_Opt.value = pValue;
{if (document. All)}
pSelect.options.add (l_Opt);
l_Opt.innerText = pContent;
} else {}
l_Opt.appendChild (document.createTextNode (pContent));
pSelect.appendChild (l_Opt);
}
}
< /script >
Attributes of the HTML Form on the first list form field
OnChange = "get_AJAX_SELECT_XML (This, 'P63_IFACE_PROTOCOL_CATEG_ID')" "
TIAOk. Now remove the javascript code that has been added in the footer.
Change the LOV query for the 2nd item in list beSELECT descr_local descr_local, id of
OF IFACE_PROTOCOL_CATEG
WHERE iface_protocol_id =: P63_IFACE_PROTOCOL_IDSet the Source used for this item "Always, replacing any existing value...". »
Varadl
-
Problem with the cascading for interactive report selection list
Hi all.
I'm trying to implement the solution of cascading to the tabular presentation list.
https://Apex.Oracle.com/pls/Apex/f?p=31517:176:103661090335568:
But instead of the form of paintings, I use interactive report. After executing the query, I get the error:
ORA-06550: line 1, column 147: PL/SQL: ORA-00936: lack of expression ORA-06550: line 1, column 13: PL/SQL: statement ignored
My Sql query for the report:
select apex_item.hidden(1, a."DATA_ID")DATA_ID, apex_item.select_list_from_query(10, b.WAVE_GROUP, 'select GROUP_DISPLAY, GROUP_RETURN from dwd_wave_group', 'onchange="f_set_casc_sel_list_item(this,f11_'||LPAD (a.DATA_ID, 4,'0')||')"', 'YES', '', '- Select Group -', 'f10_' || LPAD (a.DATA_ID, 4, '0'), NULL, 'NO' )WAVE_GROUP, apex_item.select_list_from_query(11, b."WAVE_USER", 'SELECT username d, ' ||'username r FROM dwd_user where groups = '||b."WAVE_GROUP", '', 'YES', '', '- Select User -', 'f11_' || LPAD (a.DATA_ID, 4, '0'), NULL, 'NO' )WAVE_USER from "DWD_WAVE_MASTER" a, dwd_wave_assignment b where a.data_id = b.data_id and b.wave_id = 'wave_1'
If I exclude the condition 2nd selection list query and change as below then everything works fine. Query does not give error on sql developer.
Use: APEX 4.2.6 with Database 11g.
apex_item.select_list_from_query(11, b."WAVE_USER", 'SELECT username d, ' ||'username r FROM dwd_user', '', 'YES', '', '- Select User -', 'f11_' || LPAD (a.DATA_ID, 4, '0'), NULL, 'NO' )
Can someone please help!
Thank you
Nabila
The nabila Islam wrote:
I'm trying to implement the solution of cascading to the tabular presentation list.
https://Apex.Oracle.com/pls/Apex/f?p=31517:176:103661090335568:
But instead of the form of paintings, I use interactive report. After executing the query, I get the error:
ORA-06550: line 1, column 147: PL/SQL: ORA-00936: lack of expression ORA-06550: line 1, column 13: PL/SQL: statement ignored
My Sql query for the report:
- Select
- apex_item. Hidden (' 1, a. "DATA_ID DATA_ID").
- apex_item.select_list_from_query (10,
- b.WAVE_GROUP,
- "select GROUP_DISPLAY, GROUP_RETURN from dwd_wave_group,"
- "onchange =" f_set_casc_sel_list_item (this, f11_'|) LPAD (a.DATA_ID, 4, '0'). ") » ',
- '' YES. ''
- '',
- -Select Group «-»,
- "f10_" | LPAD (a.DATA_ID, 4, '0'),
- NULL,
- 'NO '.
- ) WAVE_GROUP,.
- apex_item.select_list_from_query ("11, b.") WAVE_USER,"
- "SELECT user name d.
- |' username r FROM dwd_user where group = ' | b."WAVE_GROUP."
- '',
- '' YES. ''
- '',
- "- Select user -",
- "f11_" | LPAD (a.DATA_ID, 4, '0'),
- NULL,
- 'NO '.
- ) WAVE_USER
- of 'DWD_WAVE_MASTER' a, b dwd_wave_assignment
- where a.data_id = b.data_id
- and b.wave_id = 'wave_1. '
If I exclude the condition 2nd selection list query and change as below then everything works fine. Query does not give error on sql developer.
Use: APEX 4.2.6 with Database 11g.
- apex_item.select_list_from_query ("11, b.") WAVE_USER,"
- "SELECT user name d.
- |' username r FROM dwd_user ",
- '',
- '' YES. ''
- '',
- "- Select user -",
- "f11_" | LPAD (a.DATA_ID, 4, '0'),
- NULL,
- 'NO '.
- )
What is the data type of DWD_WAVE_ASSIGNMENT. WAVE_GROUP? If it is not a number, then it must be enclosed in quotes when it is used as a literal:
apex_item.select_list_from_query(11, b."WAVE_USER", 'SELECT username d, ' ||'username r FROM dwd_user where groups = ' || dbms_assert.enquote_literal(b."WAVE_GROUP"), '', 'YES', '', '- Select User -', 'f11_' || LPAD (a.DATA_ID, 4, '0'), NULL, 'NO' )
-
How a select list to cascaded in a table?
Hello
I would like to know how to create a pick list cascading tabular.
In the screenshot next, for example, when select "2081: Alice Fan", the next filed should watch only "ID: name of the element" belongs to Alice.
Usually I do this simply for an article by implementing the SQL query and cascade LOV parent as follows.
However, I can't find it in the form of tables?
One can help with the solution?
I hope that this can be done to reload partially after the first field had changed, but not to present an entire page.
Thank you!
Alice
Hi AliceFan-Oracle,
AliceFan-Oracle wrote:
Please see application 81653, page 2 (Test in the navigation menu).
It's the ERT_TABLE_Item.
If 'point ERT ID' is cascaded by ERT ID,
When select "2221" ERT ID, it takes only the concerts "2521" and "2541" at the point of the ERT ID.
When select "2222" ERT ID, it takes only the concerts '2561"in ERT item ID.
ID ERT and ERT tabular item ID are columns 29th and 30th.
Check your Application-> Page 2 81653 on your instance of apex.oracle.com. I implemented the LOV cascading using the solution of Jari.
Reference: APEX Blog of Jari: Article Cascading select list in the form of
Here are the steps how this is implemented:
- Edited your Page attributes-> section JavaScript-> 'Function and Variable global statement' has added the following code:
(function($){ /*** Cascading select list ***/ $.fn.htmldbCascade=function(parent,onDemand,options){ options=$.extend({ trigger : false, extrVal : false, nullShow : false, nullValue : "", nullDisplay : "- Select -", disAlias : "DIS", retAlias : "RET", loadingTxt : "Loading ...", loadingCss : {"width":"80px"} },options); return this.each(function(i){ var self=$(this); var lParent=$(parent).eq(i); var lSelfVal=self.val(); if(!lSelfVal){lSelfVal="";}; if(!lParent.data("htmldbCascade")){ lParent.change(function(){ var lParentVal=$v(this); if(!lParentVal){lParentVal="";}; $.extend(options.loadingCss,{"height":self.parent().height()}); self .hide() .empty() .parent() .find("div.ui-autocomplete-loading") .remove() .end() .append($("",{"html":options.loadingTxt,"css":options.loadingCss}) .addClass("ui-autocomplete-loading")); if(options.nullShow){ appendOpt(self,options.nullDisplay,options.nullValue); }; $.post("wwv_flow.show",{ p_flow_id:"&APP_ID.", p_flow_step_id:"&APP_PAGE_ID.", p_instance:"&APP_SESSION.", p_request:"APPLICATION_PROCESS="+onDemand, x01:lParentVal },function(jd){ var lExists=false; $.each(jd.row,function(i,d){ if(d[options.retAlias]===lSelfVal){lExists=true;}; appendOpt(self,d[options.disAlias],d[options.retAlias]); }); if(options.extrVal&&!lExists){ appendOpt(self,lSelfVal,lSelfVal); }; self .val(lSelfVal) .show() .parent() .find("div.ui-autocomplete-loading") .remove(); if(options.trigger){self.trigger(options.trigger);}; },"json"); }).data("htmldbCascade",true).trigger("change"); } }); /*** Append option ***/ function appendOpt(pThis,pDis,pRet){ pThis.append( $("",{"html":pDis,"value":pRet}) ); }; }; })(apex.jQuery);
- Edited your ERT_ITEM_ID column and added the following code to query LOV:
SELECT NULL d, NULL r FROM DUAL WHERE 1 = 2
- Application G_TEMP element created in shared components-> section elements of enforcement with Protection of Session State"set to"Unrestricted ".
- Created AJAX callback information Page at the request of GET_ERT_ITEM_ID process with the following code:
DECLARE l_sql VARCHAR2(32700); BEGIN IF APEX_APPLICATION.G_x01 IS NOT NULL THEN APEX_UTIL.SET_SESSION_STATE('G_TEMP', APEX_APPLICATION.G_x01); l_sql := ' SELECT ERT_ITEM_ID||'': ''||VENDOR_ID DIS, ERT_ITEM_ID RET FROM ERT_TABLE_ITEM WHERE ERT_ID = :G_TEMP ORDER BY 1 '; APEX_UTIL.JSON_FROM_SQL(l_sql); ELSE HTP.prn('{"row":[]}'); END IF; APEX_UTIL.SET_SESSION_STATE('G_TEMP', NULL); END;
- Created the dynamic action named "Set LOV cascade after refresh and onload", with the following attributes:
Event: After refresh
Selection type: region
Region: Update purchase order (15)
Condition: No strings attached
Action: Run the JavaScript Code
Fire on loading the Page: Yes
Code:
$("[name=f30]").htmldbCascade( "[name=f29]", "GET_ERT_ITEM_ID",{ nullShow:true, nullDisplay:"- Select -" });
Assigned items: no
- 'Action' button "ADD a line" changed "defined by the dynamic Action. Created another dynamic action named "Cascading select list Set for the new line" with the following attributes:
Event: click on
Selection type: button
Region: ADD Row
Condition: No strings attached
Action: Run the JavaScript Code
Fire on loading the Page: No.
Code:
apex.widget.tabular.addRow(); $("[name=f30]:last").htmldbCascade( "[name=f29]:last", "GET_ERT_ITEM_ID",{ nullShow:true, nullDisplay:"- Select -" });
Assigned items: no
Kind regards
Kiran
-
Hello
I searched for the answer for a while now, but could not find a solution to my problem. It's a rather trivial issue, but after dealing with more urgent problems, I stuck with it and I can't move forward I use Apex 4.2.1
OK, lets start with a description.
I have two selection lists. After making a choice in the first, I would like to than the second value to change. It is not cascade LOV case, however, at least I don't.
Let me give you an example. Suppose we have a table with name and default to the occupation.
Name By default occupancy John Doctor Mark Firefighter George Firefighter Tom Concierge End user first selects the name in the first list, then the occupation of another. It's perhaps not clearly in the example given, but the order of the questions.
What I want is to force a change in the second value in the list after a choice in the first. So after the name is chosen, the occupation should switch to the default.
The assignment is the most typical, but not the only one. So I want the end user to be able to change the occupation if necessary. Tom of sense is not to be janiotor, it can be whoever he wants this is why it is not cascade LOV problem.
I tried with dynamic action - definition of value and then refresh. It works when the second selection list is the text field. I can't find a way to make it work with another selection list.
Hope you can help.
Concerning
AEMs salvation,
What I wanted with display and return value, you usually have a list of selection like this query:
SELECT occupation d, occp_id r
OF professions
If your return value is an identifier. To use the text as return value is rather rare. Where my question, because obviously you must select the return value in your query, NOT the display value.
So let me explain what is a set value. It takes the value of the server by using your query and AJAX in the background, then uses Javascript to set the value of the item in the browser.
At this point your selection list still has the OLD value in the session. Then, you do a refresh and the element uses the old value, and it seems that nothing happens.
So solution:
-clear default values, you don't need those
-get rid of refresh it in your DA
Kind regards
Joni
-
tabular cascading selection lists
APEX - 4.1.0.00.32
Version of DB - 10 g
Web - OHS server architecture
Browser - IE8
Theme - 9
Hello
I have a tabular layout with two selection lists, I would like to select a value from the first list that will help determine what appears in the second list. The name of the column in the first select list is 'DL_DETAIL_PROJECT_ID', so I wish I could have a charly second selection list that looks like
Select d, r id desc
< table >
where < other id of the table > = DL_DETAIL_PROJECT_ID
but I don't know how to get the value of DL_DETAIL_PROJECT_ID?
Also the list of regular article values of the shows an option for cascading lists, but the form of tables, list of the values section is not, is it possible to have cascading lists in a record on a tabular presentation?
Thanks in advance for any help.Yes you can. See the links provided:
http://Apex.Oracle.com/pls/Apex/f?p=39514:1:
http://www.inside-Oracle-apex.com/generic-solution-for-cascading-select-listslovs/
http://dbswh.webhop.NET/dbswh/f?p=blog:read:0:article:2003800346210117 -
In the form of cascading select lists - what am I doing wrong?
Friends,
Hope you can help, I'm trying to figure out how to build a tabular presentation that contains the cascading select list.
What I do is to reproduce the excellent example Denes Kubicek has developed here: http://apex.oracle.com/pls/otn/f?p=31517:176 in my own work space.
While I can see it working on the environment hosted by Denis, I can't make it work in my area. I must be missing a step (or several!) After trying in vain to operate for several hours, now I'm hoping you can help.
That's what I did:
Created a sql report using the exact same sql provided.
Created a process page (rendered page side) using the same code.
Added javascript code to my html page header section
Created a process of application, called tab_casc_sel_list which runs on request
When I run the following page occurs:
The select deptno list shows 'Research' while the employee select shows 'Ford '.
However, when I change the selection dept list I get the following results:
Use Internet Explorer: The list of selection used now becomes empty and shows no entries
The use of Firefox: the employee entries are still posted, but they are not restricted by Department.
What did I miss?
Thanks in advance for any help you can provide.
IanFixed.
'Re missing you the application TAB_CASCADING_ITEM element
See you soon
Ben
-
Help with cascading pop-up list on slot form of table
I'm new to APEX (on APEX 5.0) Please bear with me! Let's say I have a tabular form with 4 columns (A, B, C, D)
Here's the logic:
1 column A is just a static list of 2 values.
2 column B is determined by what you choose in column a.
3. column C is determined by what you choose in column A and column B
4 D column is determined by what you choose in column A and column C
I need a list of popup cascading for columns B, C and D but since its under table, with several lines it is difficult. I followed this link:
Jari APEX blog: 'cascading' list Article on slot form table
I was able to get the above to work in my application to meet business #2 logic, but I can't figure out how to make it work for the logic #3 and #4 because there are several critical values. Is there an easier way to do this? Can someone help me understand what the javascript code does in the link above?
More precisely:
(function ($) {;})
/ * Cascading pop-up list * /.
$.fn.htmldbCascadePopup = function (parent, tempItem, options) {}
options = $.extend({)
loadingTxt: 'Loading... '. »,
loadingCss: {'width': '80px","float": 'left'}
(}, options);
return this.each (function (i) {}
var $self = $(this);
$anchor = $self.next ("a").
$parent = $(parent) .eq (i).
popupFn = new Function ($anchor.attr("href").substr (11));
$parent.change (function () {$self.val("").effect("highlight",{},2000) .focus () ;});})
{$anchor.click (function (e)}
e.preventDefault ();
var parentVal = $parent.val ();
if(!parentVal) {parentVal =' ";};}
Apex. Server.Process ("DUMMY", {}
p_arg_names: tempItem,
p_arg_values: parentVal
},{
data type: "text",
beforeSend: function() {}
$self
. Hide()
.after ($("< div/>", {"html":options.loadingTxt,"la classe css":options.loadingCss",": "ui-saisie semi-automatique-chargement"})
. Width ($self.outerWidth ())
. Height ($self.outerHeight ())
);
},
complete: function() {}
popupFn();
$self
. Show()
. Next ("div. UI-AutoComplete-Loading")
. Remove();
}
});
});
});
};
(}) (apex.jQuery);
I have a Monday deadline for this so my time is up. Here's what I did to help someone, even if it has a very quick and dirty solution.
After the example of Jari blog work, I learned the following: Popup LOVs have a display value and a return value. They correspond each to their own field in tabular form. For example, the display for my column 'B' column is f10 and the back column is (hidden) f09. Column C depends on A and b. So, I did the return value of B for the concatenation of A & B. Then I pass that value into a variable of the APEX with Jari javascript and try the parse to the LOV for column C.
It gives me values in the table that I don't really want. If column A is supposed to be "12345" and column B is supposed to be "XXXXX", then the value in column B is "12345". XXXXX. " So I'll make a post process clean.
All this could be increased if I know enough javascript to add multiple parameters to the code of Jari.
-
Selection list cascading in the dialogue window
Hello
I'm developing in Apex 4.2.5.
I have an Apex with a classic report region, in which a link edit page opens a dialog window (in the same page apex) to edit the selected line. The same dialog window is used to create a new line. The dialog window contains a cascading pick list. Two selection lists are defined to display NULL values and correctly fill in mode 'create '. My problem is that mode "Modify" the list of the second selection is not good value. The second selection list contains it however the right subset of values according to the parent, select the list and therefore don't does not contain the correct value, but it is not selected.
I use a javascript function to fill in the fields in the dialog.
....
$s ("P3_EVENT_TYPE", arguments [1]);
$s ("P3_EVENT_SUBTYPE", [2] arguments);
....
Then the display of the dialog window
openDialog ('editEvent');
The population of P3_EVENT_SUBTYPE list seems to happen but sometime after that all the fields in the dialog were assigned and the dialogue window displays.
I see that I need to somehow update the list of selection in cascade, P3_EVENT_SUBTYPE, before assigning the value. My problem is how can I do this in the same javascript function?
Kind regards
Derek
Eventually answered my own question-
I created a hidden field in which to store the value of the event subtype.
Created a dynamic of Action, after refresh of affected P3_EVENT_SUBTYPE subtype value = hidden field event.
-
Can a selection list cause two lists of parent of Cascade?
4.2.1
THM:2
Hello world
I have two regions
Region 1 has a selection list and a text called order box and category of the order. There could be several orders in a category. When I choose a selection list order, he fills the text box with the corresponding category by using dynamic "SetValue".
Now, I also want the second region that has an another LOV orders, fills only order_ids not selected in region 1 LOV however, it should show only other orders in the same category.
So something like select commands from P4_ORDERS1 where category and <>P4_ORDERS order_id = P4CATEGORY
But seems to not work. I created this on Apex
https://Apex.Oracle.com/pls/Apex/f?p=64292:4
workspace: ryansun
user: [email protected]
PWD: ryansun123
Ideally, when I select the No. 1 of the order of P4_orders, P4_ORDERS1 should show 4 for the other order_ids, that p4_orders1 will be null.
Thank you
Take at look at page 5 and 6.
Page 5 the query for the LOV P5_ORDERS1 was modified to use the value of P5_ORDERS. Not really necessary to include the value of P5_CATEGORY
Page 6 the parent element is P6_CATEGORY for the LOV is updated when the value of P6_CATEGORY is modifed by the dynamic Action. Dynamic Action will present the P6_ORDERS value in session state to be used by the LOV P6_ORDERS1.
As for the original question in the title, a list of selection may have two lists of parent of cascade? The answer is Yes. You can include 2 (separate control) in the area of the waterfall LOV article Parent (s).
-Jeff
-
Possible a bug of cascading select list
Hi people,
I created a dynamic action "onChange" in a page called "P5_COD" element Always of value of "P5_COD" changes, it runs the PL/SQL code above to fill the page elements with data from database:
Select
PERIOD,
BEGIN_DATE,
END_DATE
in
: P5_PERIOD,.
: P5_BEGIN_DATE,.
: P5_FINISH_DATE
Of...
BEGIN_DATE and end_date are page elements "selection list. They are "Cascading LOV Parent article (s)" of the PERIOD (select list too).
The problem is: 'onChange' dynamic action doesn´t work to load the elements of page BEGIN_DATE and end_date. BEGIN_DATE and end_date loading default data, not the data of database.
Any idea?
Thank you
Bsalvador
Bsalvador
First of all the code you listed does not change the value of objects client only in session state-side. In other words only on the server.
Use a dynamic action of type 'Set value' to change the value on the client side.
Then change the value of P5_PERIOD will trigger the change of the P5_BEGIN_DATE LOV: P5_FINISH_DATE and the values of these elements are initialized to null (client side only).
In a similar challenge to define the value of the mother and child at the same time, I'm done setting the value of the child element in a hidden item. And on the afterrefresh event of the child, the value is set to the child.
See this demo , I realized for the challenge.
Nicolette
-
Editing cascading from the selection list - not refreshing during the loading?
Hi all
I have 2 lists of selection, the latter with an option cascading of LOV.
Now, this works very well when you select an option in the list 1, list 2 fills correctly.
My question is when I re - complete list 1 and list 2 from a single onload procedure 1 load properly, list 2 does not show the correct value (but it has not the right value is session).
This feature exist?
Please let me know if you need more information.
Concerning
SpamHello
You have the following items in the pl/sql code of DA:
begin select parent_id, child_id into :p1_parent, :p1_child from holder where parent_id = 1; end;
You have the following in the query LOV's P1_CHILD:
select col2 d, col1 r from child where col3 = :p1_parent
P1_parent = 1, the LOV query returns 2 rows - DUNDEE and GLASGOW. The list of selection, therefore, cannot set a value. I changed the order of the day of the P1_CHILD page for a multiple-selection list and it works fine now.
-
Help with dynamic action and the selection list item
G ' Day Apex gurus.
I have problems trying to achieve to trigger the Help window from an element automatically select. A Help window is triggered when it is clicked on the label of an item, but my customer wants to be triguered automatically as soon as the user clicks to view the options in the select list.
I think I should be able to do with dynamic actions but I can't function.
I know when someone clicks on the label of the item selection list trigger this JavaScript
JavaScript:popupFieldHelp('277938589795252851','1545903379570909')
So I want to trigger the javascript also when the user click on the item selection list and pull down the options and for that I think that the dynamic action is the way to go, but I can't do things.
That's what I have to do:
I created a dynamic option as follows:
Name: test
Sequence: 30
Even: click
Selection type: product (s)
Article (s): P1_RATING <-a selection list item
Condtion: - no requirement.
Real Actions
Sequence: 10
Action: Run the JavaScript Code
Fires when the result of the event is: true
Fire on loading the page: checked
Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
Thank you anyone who can tell me what I'm doing wrong here or bring a solution to my problem to trigger the Help window from an element automatically select.
Kind regards
CarlosHi Carlos,
I've set up a test case of exactly in the same way and it worked fine for me. I've created a page element called P1_DA_DEMO and added some values of the static selection list, then added a help text. I used the settings are lower, I suggest you try again, but also make sure that you have no other Javascript errors on the page. Use a tool like firebug to check.
Name: Action Dynamics demo
Sequence: 10
Even: click
Selection type: product (s)
Product (s): P1_DA_DEMO<- a="" selection="" list="">->
Condtion: - no requirement.Real Actions
Sequence: 10
Action: Run the JavaScript Code
Fires when the result of the event is: true
Fire on loading the page: unchecked
Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')Scope of the event set a Bind s.
Thank you
Paul
-
How to make selection lists cascading in the table of the ADF
I have to bulk update the ADF table and two columns are selection lists. For example, in a row of the table, if the first select list is changed, then is it possbile to fill the second list based on the value in the first list of selection in this line? any ideas are appreciated.
Kind regards
SuryaCascade of LOV... reference http://andrejusb.blogspot.com/2008/12/cascading-lovs-in-oracle-adf-11g-update.html
In the right table defined the PRR on the component of column 1, column 2. Also set the AutoSubmit/PartialSubmit for the component of Column1.Amit
Maybe you are looking for
-
Spectrum of HP x 360-13-4009tu: Future upgrade to Windows 10
I just bought my HP x 360-13-4009tu with Windows 8.1 spectrum. I was under the impression that HP customers, who have purchased the above, get a free upgrade for Windows 10 by releasing. Not too sure where I saw so, as I can't find any refrence to t
-
No internet - any IP address - Internet port error
My router is a new R6620. Firmware version 1.1.0.34_1.0.1 I rebooted both the modem and the router several times without success. Under "Configuring the Internet connection", I use "Optain IP address from the ISP. My ISP is Starhub in Singapore. It i
-
Where can I find a website for repairs?
I am looking for a repair that would describe how to disassemble and repair my Toshiba Satellite A205-S4607
-
Pavilion dv7 WC159EA #ABU: replacement of the network adapter on HP Pavilion dv7-3111ea
Can you tell me what is the best card available and compatible network for my laptop? I'm looking to upgrade, for better performance and speed overall, which is currently averaging around 35Mbps on speedtest on a ~ 100 Mbps Broadband fiber optic (Vir
-
Pavilion all-in-one 23-q112: pavilion all-in-one 23-q112
I just need to know how to remove the rear to improve my memory