Cascading LoVs in Apex 4 based on a shuttle box
I've set up cascading LoVs based on a shuttle box. When values are moved to the right-hand side of the shuttle box, the cascaded LoV items have their existing values cleared.
Is this a bug? Is there a fix or a workaround?
Hi again,
I made an unconditional process, sequence 1, but the only
thing working is the :P11_message is filled.
BEGIN
htp.prn('<script>alert(''Two is more then one'', Ok)</script>');
htp.prn('<script language="JavaScript" type="text/javascript">alert(''TEST'')</script>');
htp.p('<script>alert(''Two is more then one'', Ok)</script>');
htp.p('<script language="JavaScript" type="text/javascript">alert(''TEST'')</script>');
htp.p ('javascript:confirmDelete(htmldb_delete_message,''TEST'');');
htp.prn ('javascript:confirmDelete(htmldb_delete_message,''TEST'');');
htp.print ('javascript:confirmDelete(htmldb_delete_message,''TEST'');');
htp.p('TEST');
:P11_MESSAGE := 'TEST';
end;
Does any one have more suggestions.
Hugo
Similar Messages
-
Cascade LOV in Apex 4.0
Hello Apex Fun
how can i make cascade list of value in Apex 4.0 ? i tried cascade which enabled in list of item properties but contain problems , please help me
also when use that cascade the Arabic characters shown unclear ..
Edited by: Moh Loay on Aug 24, 2010 2:46 PMHi Moh Loay,
I think you have to help me with that one, because I tried to reproduce that on apex.oracle.com and was not able to.
1) I have created page http://apex.oracle.com/pls/apex/f?p=47158:22 which is a cascading LOV on the tables DEPARTMENTS and EMPLOYEES.
2) For Department "Construction" I modified some of the employees to contain arabic and chinese characters
3) I executed above page
4) Changed the department to "Construction" which refreshed the employees select list
5) Opened the Employees select list and everything shows up as I have entered it.
Can you please verify with the above page that it looks good for you as well. Maybe it's an operating system/browser issue?
If the above test case works for you, can you please create a test case with your failing data on apex.oracle.com so that I can have a look what's actually wrong. After you have done that, please provide the workspace, user and password so that I can access your application.
Thanks
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins -
How to prevent apex 4.0 shuttle cleared by cascading LOV setting?
I have a shuttle control for choosing a list of database users populated from a child table by an On Load - After Header process, which then repopulates the child table in an On Submit - After Computations and Validations process. Work fine.
I then set the shuttle's Cascading LOV Parent Item(s) to a text item that could be used for filtering the shuttle's LOV, and revised the LOV SQL to a) use the filter and b) include items stored in the child table, i.e.:
select username as dv, username as rv
from all_users
where username like upper(:P5_USERSFILTER) || '%'
union
select username, username
from user_grouping_users
where groupid = :P5_GROUPID
order by 1
Unfortunately, when the filter value changes (P5_USERSFILTER), the state of shuttle (as set in my On Load - After Header process) is cleared. The values from the child table are properly included in the LOV, but they are no longer selected -- so the appear in the left-hand list as candidate values but not in the right-hand list as selected values. Additionally, any items selected in the shuttle before changing the value of the LOV Parent (:P5_USERSFILTER) are no longer selected.
Is there a way to prevent the selections of a Cascading LOV item from being cleared when the parent item is reset?
Note, I've specified 'No' for Optimize Refresh, and 'P5_USERS' for Page Items to Submit and 'Yes' for Display Extra Values (which in general does not seem to have any affect on a shuttle LOV)Hallo all!
I got a similar situation: a text item that filters the left side of an shuttle item (P11_IAG_ENUM), but the right side should stay the same - independet from the text item, where search-phrases are entered.
So I tired with your example - thanks for that - but I changed the code that I only have one collection 'P11_IAG_VALUES' ... but right side seems to be still dependend from the search item. I also deleted the "set value" action of the "save current selection"-dynamic-action, because I supposed it's not needed.
Here is my "save current selection"-dynamic-action:
DECLARE
c_collection CONSTANT VARCHAR2(30) := 'P11_IAG_VALUES';
l_seq_id NUMBER;
BEGIN
IF NOT apex_collection.collection_exists(c_collection) THEN
apex_collection.create_collection(c_collection);
END IF;
SELECT MIN(seq_id)
INTO l_seq_id
FROM apex_collections
WHERE collection_name = c_collection
IF l_seq_id IS NULL THEN
apex_collection.add_member (
p_collection_name => c_collection,
p_c001 => :P11_IAG_ENUM );
ELSE
apex_collection.update_member (
p_collection_name => c_collection,
p_seq => l_seq_id,
p_c001 => :P11_IAG_ENUM );
END IF;
COMMIT;
END;
... and the "restore old selection"-dynamic-action:
DECLARE
l_selected_iag VARCHAR2(32767);
BEGIN
SELECT c001
INTO l_selected_iag
FROM apex_collections
WHERE collection_name='P11_IAG_VALUES'
RETURN l_selected_iag;
EXCEPTION
WHEN NO_DATA_FOUND THEN
RETURN NULL;
END;
Where is my error in reasoning?
(Meanwhile I try to create an example application...)
[Edit: I got problems to acces my workspace, try to reset my password --> error, even try to find my workspace -->error .... everytime the same; I'll try it later again, but hoping that anyone can help me without example application]
Edited by: kc7 on 10.09.2010 09:20
[Edit II: I finally created a example-application: *http://apex.oracle.com/pls/apex/f?p=30216*
workspace: kc7
user: dummy
pwd: doll
Edited by: kc7 on 10.09.2010 12:28 -
APEX 4.0.2 Multi-selection on a cascade LOV select list only pass 1 value
Hello everyone,
I am struggling to make a cascading LOV select list has multi-selection.
On one report page.
I have 2 select list
The first one lists the court name (P4_COURT_NAME), the second one (P4_DEFENDANT) list all defendants who currently engaged in the court.
The problem is when I allow the defendant select list become multi-select, when it submit it only pass the first selected value.
So I create just a simple select list based one list of value, and make it allow multi-selection. When it submit, the normal select list can pass selected values properly, while the cascade LOV select list pass only the first selected value.
Please help if any of you have an idea why.
We use APEX 4.0.2.00.07, Oracle data version iis 11g
The some configuration settings I set for the P4_DEFENDANT IS
Value required: Yes
Page Action When value changed: None
Allow Multi Selection: Yes
Named LOV: --Select Named LOV-
Display Extra value : Yes
Display Null Value: Yes
Null Display Value: --Select—
Null return value:
Cascading LOV Parents Items: P4_COURT_NAME
Page Items to Submit: P4_DEFENDANT
Optimize refresh: YES
List of value definition
SELECT def.first_name || ' ' || def.surname || ' (PRN: ' || def.prn || ' )' as d, def.def_id as r
FROM defendant def INNER JOIN court_engagement ce
ON def.def_id = ce.defendant_id
WHERE (ce.date_joined_aodt_court IS NOT NULL
AND (ce.date_terminated IS NULL OR to_date(ce.date_terminated,'dd/mm/yyyy') > to_date(sysdate,'dd/mm/yyyy'))
AND UPPER(ce.court_name) LIKE UPPER(:P4_COURT_NAME)
AND ce.active = 1)Source Used: Only when current value in session state is null
Source Type: Static Assignment
Maintain session state: Per session
The rest is default.
Thanks in advance.
AnnHi Chintan,
The "Source used" for those items are "Always, replacing any value in the session state". To set them to "Only when current value in session state null" sounds a good solution to me.
However, a strange thing just happened - now I will not lose the values of the items after the page reloading, although I have changed nothing in the page in my application since I asked the question. I don't understand why all of a sudden the reloading doesn't make me lose changed values any more. Let me dig it tomorrow to see what I'll find.
Thanks so much for your help.
Christine -
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 -
Apex 4.2.1 - mobile theme display bugs and Cascading LOV bug
I've setup a test at http://apex.oracle.com/pls/apex/f?p=35331 - username/password is test/test
Simple page to show some issues I'm running into. Wondering if work-arounds exist or if a patch would be available before we'd go live.
First and second issue are the same I believe. So - a normal text box (label1) looks fine. But, Label2 is a Display only item and Label3 is a read-only select list item. As you can see - both of the values appear smack dab right beside the label and not in line with the other fields. It's totally ugly and not usable as is. I've tried to move this over, but the label goes with it. I can see no way of doing it, but wondering if there's some hack I can put in to solve it...
The last issues is with a cascading LOV. Simple table setup. Static on the first, the second a simple query that filters on the first. If you set the select list to Value Required and not to display null values - then when you click on the Second List button - it just hangs. The page is unusable. I suspect this has to do with the null or something. But - doesn't appear to matter if anything is chosen. Note - if the list is large - which I think then uses a different UI control, this is fine. Only when one of the lists is small does the issue reproduce.
Any workarounds or fixes? Any ideas?
ThanksHi,
I would suggest to not mix different questions and a thread for each of them. Makes it easier for others to follow.
About your problem with the cascading LOVs, it appears that this is/was a bug in jQuery Mobile which we use under the hood. I was able to reproduce the problem with APEX 4.2.1 using jQM 1.2.0, but was not able to reproduce it with APEX 5.0 which will use jQM 1.3.0RC1 or higher. The problem occurs if a select list is empty.
There are different workarounds available:
1) set the attribute "HTML Form Element Attributes" of P1_CLOV_2 to data-native-menu="false"or
2) set the attribute "Display Null Value" of P1_CLOV_2 to Yes and "Null Display Value" to - select - (or something similar). The "Value Required" = Yes will still guarantee that a value has to be picked. Having the extra null entry will guarantee that the select list always contains an entry, that seems to workaround the bug in jQuery Mobile.
I have filed bug 16355963 - jquery mobile: empty select list causes javascript error
to track that this is definitely fixed in APEX 5.0.
Regards
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
APEX 4: Cascading LOV generic?
Is it possible to have a "generic" cascading LOV?
I prefer to have my LOV as shared components (reuse and such) but with a cascading LOV the detail list refers to the Parent item within the query. This makes for a not very reusable LOV in my opinion.
Is it possible to use a more generic bind?
select description d, id r
from table
where parent = :B --<--- Not refering to any particular Page Item
order by 1... and specify the actual item which is to be used in the detail query? (Page Items to Submit)Hi Learco,
I doubt that this will work, because the "Cascading LOV Parent Item" has to be a page item which is actually rendered into the HTML page. The reason is that for those page items we register a "change" event to trigger the refresh of the childs. If it's an application item it would not exist on the page.
I would also question if dealing with additional application items and additional dynamic actions would make the code better maintainable. If the LOV query is really that complicated that it would be beneficial to re-use it, I would suggest to define a database view for it and then again use a very simple LOV statement to access it. I think that would make it much more transparent and maintainable then trying some generic bind variables and placeholders.
Just my 2 cents
Patrick
PS: yes, nice colors ;-)
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
Cascading LOVs (APEX 4.1) problem, using in report does not set values
Hi,
i am using APEX 4.1.0.00.32 and i have a simple report as
SQL:*
SELECT * from region
WHERE region like '%'||P3_REGION||'%'
and country like '%'||P3_COUNTRY||'%'
and city like '%'||P3_CITY||'%'
Items:*
P3_REGION:
select distinct region as d, region as r from region
Display Null value: YES
Null display value: - select -
Null return value: +0+
P3_COUNTRY:
select distinct country as d, country as r from region where region = :P3_REGION
Display Null value: YES
Null display value: - select -
Null return value: +0+
Cascading LOV Parent Item(s): P3_REGION
P3_CITY:
+select distinct city as d, city as r from region where country = :P3_COUNTRY
Display Null value: YES
Null display value: - select -
Null return value: +0+
Cascading LOV Parent Item(s): P3_COUNTRY
The LOVs work fine and the correct values are displayed if cascading through them
So in the last step i want to filter the report with the values that were selected in the lovs. And this i get not working.
I tried to add a button with SUBMIT of the page. After choosing values in all LOVs and clicking the SUBMIT button the page submits, alle LOVs are cleared (with value - select -) and the report shows all rows.
I tried to change the button to "redirect to Page 3" and setting the values P3_REGION, P3_COUNTRY, P3_CITY to &P3_REGION., &P3_COUNTRY., &P3_CITY. but without success.
I tried to use the setting "Page Action when Value Changed" to "Submit" and/or "Redirect and set value" for all Item LOVs and/or only the last item LOV, but then the cascade of the LOVs does not work properly and the report does not change too.
I am confused as i don´t know what i can do until now. I think this should be an easy requirement to limit/filter the report with values in the LOVs.
Furthermore it should be possible to choose only the region LOV and then limit the report with that region (without choosing country and city)
Thanks in advance!Hi Dan,
thank you for your answer. I have the solution now from Kleber_M, this works.
Dan McGhan wrote:
1. Use bind variables in my query. It would look something like:
SELECT *
FROM region
WHERE region LIKE '%'|| :P3_REGION ||'%'
AND country LIKE '%'|| :P3_COUNTRY ||'%'
AND city LIKE '%'|| :P3_CITY ||'%'
This was only a mistake when writing the post, i forgot the colon. I use bind variables of course.
2. Make sure you have a comma separated list of item names that the report depends on beneath the SQL Query where it says Page Items to Submit. This will make sure that the value of those items on the page are bound into session state prior to the query executing.I tried this, too, but without success...
3. Use Dynamic Actions to perform the refresh action when any of the three items changes. This would be both more performant and a better experience for the end user than a full page refresh.How can i do this. This sounds good, because when refreshing the page often some items oder actions are done that i don´t want to.
Regards,
Matze -
Apex 4 Cascading LOV's how to set a child LOV back to null return value
Hi,
My problem is I am using the new Dynamic Actions to implement Cascading LOV functionality in Apex 4 which means not having to submit the page to update child LOVs after parent LOV changes.
What I am finding is that when you change the parent LOV value then the child LOV (which has a null return value) is not defaulting to the null return value (in my case no selection should return -1) if its list is filtered to a different set of values which doesnt have a valid selection. The child LOV is left without a selection when I need it to default back to the null return value (-1, representing all values).
Also I was hoping to do this before the page is submitted so the filtering down the hierarchy of LOVs will work where the child is null (-1, meaning all values) and in turn its child LOV(s) will filter also from the null child value.
Any help would be much appreciated.
ThanksHi 804641,
I'm not sure if I get your problem and I tried to reproduce it.
http://apex.oracle.com/pls/apex/f?p=2672:6 is my example with a cascading LOV where I have also defined a dynamic action which fires when P6_EMPNO changes and it shows the current selection.
Maybe it helps if you setup an example on apex.oracle.com and provide the workspace/user/pwd so that I can have a look. I'm also not sure about your sentence "using the new Dynamic Actions to implement Cascading LOV functionality", because dynamic actions are not needed for cascading LOVs. It's a feature of the item types themselves where you just have to set the "Cascading LOV Parent Item(s)" attribute.
Regards
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
Cascade LOV display as text (based on LOV) in clasic report
Hi Experts,
It is possible to use cascade LOV - item is displayed as text (based on LOV) in clasic report ? (Display AS)
I would like to reference to another column displayed in the report in LOV.
Example:
select description d,
val_strg2 r
from domain_cntr
where cntr_name = 'CH_PRIM_ST_NOTE'
and val_strg1 = #PRIM_STATUS#
and active_idc = 'Y'#PRIM_STATUS# is the column i would like to reference.
Is it possible ? IN CLASIC REPORT
regards
J :DHi,
>
Is it possible ? IN CLASIC REPORT
>
Yes.
It may a rather long thing to code, so be ready for it.
Here is how:
a. Use APEX_ITEM API in your Report Query. Make sure you specify the p_item_id parameter , using #ROWNUM#
b. In the Parent LoV wrtie an onChange event trigger that fires a JavaScript function and pass the ID of the element .
c. In this JavaScript function make an AJAX call to get the <select>...<option...>...</select> , in short the complete HTML of the child LoV
d. Push this HTML fragment into the Child Lov. You construct the ID of the target based on the ID of parent . E.g. f01_0001 to f02_0001.
e. You may additional keep the child invisible or disabled initially, and then make it visible/enable it after it is populated.
Regards, -
How to have cascading lov for a single column in tabular form
Hi,
How to have a cascading lov for a single column in tabular form
ie i have one employee name column
in tabular form if v pressed add row then one row ll be added
In my scenario based on first row value
the second row value to be displayed
To achieve this what i have to do ..
Regards,
PavanREAD Cascading select list on tabular form and
Oracle APEX 4.0: Cascading LOVs/Select Lists | Inside Oracle APEX by Patrick Wolf BLOG
helps you,
Pars. -
Cascading LOV in a Tabular form
Hi Guys,
I have read numerous articles on the generation of cascading LOV's in a tabular form but havent been able to get it working
I have created an example in my apex workspace at:
http://apex.oracle.com/pls/apex/f?p=4000:1500
workspace XXAPPS
Username guest
Password demo
app no 17551
Page 2
In my test scenario, I have an emp table, dept table and an office table.
Within my tabular form(based on the emp table), I have a deptno column and an office column.
Depending on what the user selects in the deptno column, I would like the corresponding list of offices associated to that dept LOV to be returned in the offices LOV.
The table structure is
EMP
EMPNO
ENAME
JOB
MGR
HIREDATE
SAL
COMM
DEPTNO
OFFICE_ID
DEPT
DEPTNO
DNAME
LOC
OFFICE
OFFICE_ID
OFFICE_NAME
DEPTNO
When the user selects a deptno in the LOV I would like that to control the values that are returned in the office LOV.
I have used Jari's blog post:
http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:2003800346210117
but as you can see it isn't quite working in that the office LOV is not returning anything.
I am pretty new new to JavaScript and jQuery so am no doubt doing something wrong as some of the steps are causing errors and are confusing me a bit e.g. step2 is causing the page to return blank (I have commented the code out in the example)
Any help would be greatly appreciated.
Thanks
Edited by: Cashy on 07-Mar-2012 04:05Hi fac,
That is the full code as per the Jari's link on http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:2003800346210117 (last but one section of instructions).
I have got the id of the elements (f07 and f06) by using IE Developer toolbar and have passed those into the dynamic action.
The child element is now just showing loading...
It seems to me that the on demand process is not being called because I changed the code to:
DECLARE
l_sql VARCHAR2(32700);
BEGIN
IF APEX_APPLICATION.G_x01 IS NOT NULL OR APEX_APPLICATION.G_x01 IS NULL
THEN raise_application_error(-20001,'code gets here');
l_sql := 'SELECT competency_id AS RET
,competency_description AS DIS
FROM XXMEL_FOCUS_COMPETENTCIES
WHERE competency_category_id = ' || APEX_APPLICATION.G_x01 || '
ORDER BY competency_description
APEX_UTIL.JSON_FROM_SQL(l_sql);
ELSE
HTP.prn('{"row":[]}');
END IF;
just to see if the code is getting to the process but the error message that I put in the PL/SQL is not firing.
Chris -
Cascading LOV not working when the page is public
Hi ,
I have a cascading LOV in a tabular form which I have built using Denes Kubicek example from
http://apex.oracle.com/pls/otn/f?p=31517:176:2702932664861989:::::
Thanks to this wonderful examle I was able to make my cascading lov work.
However when I make the page public , the second lov(which is based on the first one) does not work.
Inorder to debug i changed get.get('XML') to get.get() and put an alert on it; to check if the select list string is being returned correctly by the application process - it returns null. The same alert returns the select list string when I put the authentication back on the page.
Also I noticed when the page is public the application item (TAB_CASCADING_ITEM) is not getting populated with the value of the first select list.
has anybody encountered the same issue ?
Appreciate any suggestions?
Thanks,
DippyOne of the parameters in the htmldb_get is the page the process runs on. You should change that to the current page or make page 0 public as well.
-
Loading select list cascading lov
I have three select list which each have a cascading parent lov, except the first one.
1.- TOOL
2.- CATEGORY
2.- SUBCATEGORY
Of those 3 select list items... what I save is the "return value" of the subcategory, which is an ID. So the problem appears when I try to edit the information after I save it. I tried to fetch the information in the "source type" area with a "sql return value" and also with the "default value" area, but it showed errors when I want to create a new record... So I'm wondering if I can bring the data with javascript or another manner... thanks
regards, bernardoHi Bernardo,
the problem on your page 3 is that P3_CATEGORY isn't populated by a database column. That's why when you view an existing record it will not show anything. And because the value is NULL, your 3rd LOV (P3_CATEGORY_ID) will not find something because P3_CATEGORY is null or has an invalid value.
You have two options:
1) Add CATEGORY as database column to your PROBLEMS table or
2) Use a computation or process to fetch the CATEGORY based on your sub category (P3_CATEGORY_ID) and populate P3_CATEGORY with that value. This computation/process has to fire after the "Fetch" process.
See my example computation on page 3. In addition I have also set P3_TOOL as "Page Items to Submit" for LOV P3_CATEGORY_ID, because you should always specify all the columns which are used in the SQL statement in "Cascading LOV Parent Item(s)" or "Page Items to Submit".
Hope that gives you a direction.
Regards
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
Get('XML') doesn't work, but get() does in javascript - CASCADING LOVs
I'm trying to get cascading LOVs working in Apex 3.1.0 in Oracle 11g. When I call get.get('XML') it returns null in firefox and empty string in IE6. If I change it to call get.get() then it returns the XML as a string into Javascript.
The Application process is getting called in both scenarios as i've put PL/SQL logging to disk in order to prove it. The XML being returned is very basic so i'm sure it's not a problem with formatting. I'm not getting any exceptions thrown in javascript either.
Is it possible to use get.get() and then convert the text into an XML object which is returned as per get.get('XML') which at least will allow me to get something working ?
thanks
<script language="JavaScript" type="text/javascript">
function getBusinessFieldJS(pThis, pSelect)
alert('getBusinessFieldJS');
try
var l_Return = null;
var l_Select = html_GetElement(pSelect);
var get = new htmldb_Get(null, html_GetElement('pFlowId').value, 'APPLICATION_PROCESS=GET_DATA_FIELDS_XML', 0);
/*get.add('F120_GETBUSINESSFIELD_ITEM',pThis.value);*/
gReturn = get.get('XML');
alert('gReturn=' + gReturn);
alert('gReturn.value=' + gReturn.value);
if (gReturn == null)
alert('gReturn is null');
if(gReturn && l_Select)
var l_Count = gReturn.getElementsByTagName("option").length;
alert('l_count='+l_Count);
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;+
+ }+
+ catch (e)+
+ {+
+ alert('Exception : ' + e);+
+
}+
+}+Hi,
I've been trying to replicate your problem here: [http://apex.oracle.com/pls/otn/f?p=37055:1]
My application process is:
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>');
HTP.prn('<option value="-1">Please Select</option>');
HTP.prn('</select>');
END;(Just copied from your post and XML changed to xml, otherwise untouched)
And my page has a simple HTML region with the source of:
<div id="XMLOUTPUT" style="border:1px solid blue; width:200px; height:200px;"></div>
<div id="XMLOUTPUT2" style="border:1px solid blue; width:200px; height:200px;"></div>
<script type="text/javascript">
function getMyXML()
var l_Return = null;
var get = new htmldb_Get(null, html_GetElement('pFlowId').value, 'APPLICATION_PROCESS=RETURN_XML', 0);
gReturn = get.get('XML');
var d = html_GetElement('XMLOUTPUT');
d.innerHTML = gReturn;
var d2 = html_GetElement('XMLOUTPUT2');
d2.innerHTML = get.get();
var s = gReturn.getElementsByTagName("select");
alert(s.length);
</script>
<a href="javascript:getMyXML();">Click</a>Click on Click at the bottom of the page. The first DIV gets the get.get('XML') object and the second one the get.get() and a popup message tells you how many "select" items are in the XML version.
As far as I can see, this works fine.
Andy
Maybe you are looking for
-
Acrobat 9.4 / Outlook 2011 – Attach to email not working
Acrobat 9.4 / Outlook 2011 / OS 10.6.4 I am having a very annoying issue with the "Attach to email" feature in Acrobat 9.4. I keep getting the error below every time I try using this feature. I don't have the same problem if use/switch the email clie
-
To fetch the srtfd value from PCL2 based on Pernr
Hi, is there any function module to fetch field (srtfd ) value from PCL2 based on the pernr. My selection screen is having only pernr as the input and now have to get the srtfd value from PCL2. Kindly suggest me if any FM or best procees existed. Tha
-
I have a custom item which has a procedure to open a Portal application form, I would like to pass a value from a custom attribute into a field on the application form at the same time as opening it. Any HTTP experts done this or know how to do this?
-
Editing Canon 600D DSLR footage in Premiere Pro CS4
I am considering purchasing the new Canon 600D DSLR camera to capture HD video files. I understand that this camera captures H.264 video files but am getting very confused as to whether or not CS4 can edit this file type. Some websites say I need to
-
Everything is printing in mirror image
I cannot print a picture without getting a mirror image