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:
&lt;div id="XMLOUTPUT" style="border:1px solid blue; width:200px; height:200px;"&gt;&lt;/div&gt;
&lt;div id="XMLOUTPUT2" style="border:1px solid blue; width:200px; height:200px;"&gt;&lt;/div&gt;
&lt;script type="text/javascript"&gt;
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);
&lt;/script&gt;
&lt;a href="javascript:getMyXML();"&gt;Click&lt;/a&gt;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

Similar Messages

  • Job doesn't work - but procedure does

    Hi all,
    I found some curious - for me.
    I added a job for a procedure. The procedure contains 3 execute immediate with create table statements. The tables will be created on the current database, where the procedure runs. But the third statement select the datas from my table from another database (normal: select * from mytable ; 3.: select * from mytable@SERVER3). The 2 servers have a connection.
    And now the curious:
    If I start then procedure everything runs without errors or warnings. All tables will be created.
    If I start the job manually (I use TOAD for Oracel: Execute this job immediately) it also runs fine.
    But if the job starts automatically, the two select runs normaly, but the third doesn't. It must be in connection with the other database. Until now no admin here could help me or could say me how to solve the problem.
    Now I hope that someone in these forum knows the problem and could help me.
    Regards
    Juergen

    Hi,
    I can't create a dblink - insufficient privileges. But our Admin created on. But it didn't worked. I mean, we had the same problems as before.
    But I have a problem with the scheduler - which should solve the problem also. The folowing doesn't work:
    declare
    begin
    dbms_scheduler.create_job (
    job_name => 'tj_new_job',
    job_type => 'PLSQL-BLOCK',
    job_action => 'name_of_procedure',
    start_date => sysdate,
    repeat_interval => 'freq=dailiy;byhour=4');
    end;
    The problem is, nothing will happen. Is there anybody who knows, what I did wrong?
    Thank you.

  • Static doesn't work, but Dynamic does for surfing the web

    Because I wanted some static IP addresses on my network I set the IP Distribution Range on my Actiontec router to 192.168.1.42 – 192.168.1.254.  I then assigned static IP addresses to my network printers and 3 computers.  For a while everything worked as expected.  However, after making a few additional, unrelated changes (rename DNS server host names) two of the three computers were blocked from access to the Internet.  The computers appeared in the routers list of devices on the LAN and the computers had full access to other devices on the LAN, but could not get out to the web.  One of the computers is a laptop.  The wireless connection worked fine just the Ethernet connection would not work.  If I changed the setting on the computers to use DHCP the problem was resolved.  Any idea what is blocking the static IP addresses from working?
    Solved!
    Go to Solution.

    Thank you.  Adding DNS server IP address solved the problem.  I had left the primary and secondary DNS addresses blank because Verizon tech support had told me, when I asked what DNS server Verizon favored,  that they used Dynamic DNS servers and had no specific address to offer.  
    I noticed that the Actiontec has assigned to specific IP addresses ( 71.242.0.12 and 71.252.0.12).  I stuck those in the TCP/IP property page and all seems to be well.  Thanks again for your advise.

  • SFTP - CyberDuck doesn't work, but WinSCP does?

    I'm having issues connecting remotely to a server. Here are the details:
    I am running Mac OS X Server, 10.4.11. The G5 (the server in question) is located in the main building and we have a satellite office that connects to it via SFTP. We have both PCs and Macs. Macs would connect using Cyberduck, and PCs connect with WinSCP. After doing some updates yesterday (not 10.4.11, but stuff like Quicktime, iTunes, Java, maybe Security update but I don't remember, etc), Cyberduck cannot stay connected. WinSCP does not have a problem.
    Thinking that it may be a Cyberduck related issue, I tried other software like FireFTP (Firefox add-on), CuteFTP and sftp itself from the command line. I notice that it does successfully connect, but then terminates the connection.
    Something interesting to note: my admin user, which is the only "local account" does not have any problems. I can connect with all the above stated programs.
    Also, I can connect via ssh with any user as well via the command line.
    I ran sftp -v from the command line and noticed that I was in fact connecting to the server, then being disconnected. Here are some of the errors I receive:
    sftp -v [email protected]
    debug1: allot of stuff before this then the interesting part -
    debug1: Next authentication method: keyboard-interactive
    Password:
    debug1: Authentication succeeded (keyboard-interactive).
    debug1: channel 0: new [client-session]
    debug1: Requesting [email protected]
    debug1: Entering interactive session.
    debug1: Sending subsystem: sftp
    debug1: clientinput_channelreq: channel 0 rtype exit-signal reply 0
    debug1: clientinput_channelreq: channel 0 rtype [email protected] reply 0
    debug1: channel 0: free: client-session, nchannels 1
    debug1: fd 0 clearing O_NONBLOCK
    Transferred: sent 1968, received 1928 bytes, in 0.1 seconds
    Bytes per second: sent 31433.7, received 30794.8
    debug1: Exit status -1
    Connection closed
    Also, I can't recreate the error I got at one point, but I also received an error stating:
    Server exited on signal "PIPE"
    Any ideas?

    This weekend I was able to fix the issue.
    I downloaded 10.4.11 Combo Updater and installed it. After a reboot, all was well. I believe that the previous updates I did had something to do with the issues.

  • HT4259 I have been trying for hours to extend my Extreme Gen 5 network with an Express Gen 2.  But no matter what I do or try, it doesn't work.  What does happen is my internet gets block somehow when the Express looks like it's set up and 'green' - no in

    I have been trying for hours to extend my Extreme Gen 5 network with an Express Gen 2.  But no matter what I do or try, it doesn't work.  What does happen is my internet gets blocked somehow when the Express is online and looks like it's set up perfect and 'green' - but no internet connection for anything even though the Extreme is green and the modem is good.  Once I disconnect the Express, everything is good again.
    I've tried LAN, WAN, though a switch, direct connect, Extreme set to Extend the network, the Express set to be an extension.  Most of the time I get an error trying to update the Express.  But when it seems to be set up perfect, the entire house can't get to the internet.  Just when it looks right, it is so wrong.
    If anyone can give me exact steps (e.g., "...from the Base Station menu, select the Restore Default Setting option" vice "...just restore the defaults..."), I would greatly appreciate it.  I'm left to the conclusion that the Express is faulty.  I've been using Airport Utility 6.2 from Mountain Lion on one computer and Airport Utility 5.6.1 from Snow Leopard on another computer (the latter give more control while the former just want you to 'forget' the Express).

    I finally got it working.  I was trying to set it up ethernet.  My biggest mistake was when the new Express came on, I did not select 'Continue' - I went straight to manual thinking that I would get the most setup options in manual mode.  So everything I initially tried always resulted in 'wireless'.  Even when I would update or restore default settings, the Express would not completely restart. Or sometimes I would get an error. So most of the time I had to unplug it.  So when it came back up, none of my changes were retained. But there were a lot of times when everything was green and appeared to be fine. But anytime the ethernet cable was plugged in, no more internet.
    So here's the weird part.  When I finally tried 'continue' (vice manual), I would get 4 options.  One would be 'ethernet' extended.  So I would select it, it gave me green lights, all looked good, and still the same problem.  This is when I got frustrated.  I thought I had exhausted all possible combinations.
    But somehow when trying continue again after another restore, I only got 3 options.  One was the same ethernet extended option (can't remember what the missing 4th one was).  And this time it worked - it gave me the big green circle with the checkmark saying it was successful.  I don't know what I did different, but I know now that it won't work if 4 options come up to choose from.  It will work if only 3 options come up.  And success if only verified by the big checkmark.  Had anyone anywhere said the checkmark declaring success is validation, then maybe I wouldn't have gone down so many rabbit holes thinking it should have been successful.
    As for which Airport Utility I prefer, 6.2 looks nice, but it would just ignore the Express and would want me to 'forget' it and would not let me edit it.  Airport Utility 5.6.1 was the one that I ended up using the most and finally had success with.  It still strikes me as odd that there is no manually way to pick ethernet, it can only be choosen following a 'restore defaults', and only from the 3-option list (the 4-option list had the same ethernet choice, but it no worky).
    Thanks for the response.  I really do appreciate it.
    Aiport Extreme Gen5 - internet access and router
    Airport Express Gen2 - connected via ethernet, extending my wireless
    - configured while connect directly to the Extreme, but now on a switch (16-port hub)
    Using Airport 5.6.1
    1) Restore Defaults from Base Station menu
    2) Following restart, Select Continue
    3) Of the 3 option presented, select 'ethernet.... extend network...'
      - if 4 options are present, may not work
    4) Wait for the green circle with the big white checkmark.
    5) Connected Express to the switch where a cable went to other end of house - works.
    Dead-zone went from 2mbps to 24mbps.
    I probably spent 4 hours chasing my tail in anger.  The correct way took about 5 minutes total.
    Thanks again.

  • I have a MacBook Pro bought in dec 2009. Currently has mountain lion osx installed. Worked like a dream until today. Randomly froze, so I restarted it. To find I got a grey screen. It wouldn't start. Also note my DVD drive doesn't work, but mountain lion

    I have a MacBook Pro bought in dec 2009. Currently has mountain lion osx installed. Worked like a dream until today. Randomly froze, so I restarted it. To find I got a grey screen. It wouldn't start. Also note my DVD drive doesn't work, but mountain lion was installed via App Store anyway.
    So here's what I done so far:
    tried resetting PRAM - No success
    Done disk utility. Disk verified with no errors. I even re formatted disk. - no success starting.
    Tried re installing mountain lion via download . It froze halfway installing -no success.
    Tried backing up a time machine backup from my USB hard drive. It froze at 1% - no success
    Tried booting from safe mode - no success
    Tried the command line boot - no success.
    Please someone help!

    Sounds like the hard dre has left the building, Died, in the Sh*tter, Gone to the hard drive resting place in the sky.
    Buy a new drive connect it to the system with a SATA to USB adapter and see if you can install Mt Lion on that drive connected externally. If you can then the drive inside your system has failed.
    Oh Wait!!!! You have the 2009 model. They are known for bad drive to logic board cables. So it may not be the drive itself but the cable going from the drive to the logic board. Do the same as above then if the system runs OK with the new drive connected externally install it in the system and see if it boots. If it does you are good to go. If it doesn't then it is more then likely the cable that hs failed.
    I would suggest you also SAVE a copy of that download of Mt Lion and create a USB install drive from it using Lion Disk Maker, once you get your system up and running.

  • X-Fi Platinum (optical) PCM works but Dolby does

    Hi!
    My problem: I've got a Sony reciever (with Dolby and DTS decoding support) with some optical inputs. DVD player and Cable Reciever work very well (with AC-3 5. and PCM) on all inputs so it's not at reciever problem.
    But if I attach my computer and play some AC3 aka DD it won't (nearly) work (but PCM does work perfect). I tried 48kHz and 96kHz and I of course deavticaed the built-in decoders.
    Here's what's happening if try to play some DVD with DD with WinDVD8:
    I try all different checkbox combinations (although I know that SPDIF & 6 Channel would be the right thing) and from time to time (randomly) DD/Bistream Out appears in the lower right corner of the monitor - but the reciever doesn't get any.
    And if I decide to use VLC with SPDIF-out I even get a crazier problem - I get some sound but:
    The software plays about a half second of the matching video - repeats it then times - and plays some next 0.5 seconds.
    Oh yeah - first I used the drivers from the CD and now I use the latest drivers...
    I'm getting crazy and I'm looking forward for your hints!
    Thank you CHfish

    First thank you for your hint - Win32 waveOut extension output is the one and only output mode making some hearable sound - but it's PCM 48kHz (stereo) again - I get the exactly same sound when I choose "analog" stereo output in VLC...
    And as I told I've got similiar problems with other applications...
    Thank you
    CHfish

  • Airplay mirroring on Mac Mini (late 2012) doesn't work, extended display does...

    Airplay mirroring on Mac Mini (late 2012) doesn't work, extended display does... What's going wrong here?
    Details: OS X Yosemite 10.10
    Apple TV 3rd generation, version 7.0
    Switching Airplay on on Mac Mini works. It goes automatically on extended display mode. Switching to mirroring works for about 1 sec and then it switches back to extended display mode. On my tv screen i see my second desktop. Funny detail: it has the desktop background i used previously. Another funny detail: I had exactly the same problem when i used the previous versions of OS X and the Apple TV software...
    Who can help, please!

    I also have been having problems with Airplay on my 2014 Mac Mini see Mac Mini 2014 Airplay Display Disconnect Bug?
    I"ve also noticed that my Apple TV (3rd Gen) does not appear in the iTunes Airplay list on my Mac Mini whereas it does on my MacBook.
    I've booked a call with Apple Support for next Sunday to discuss the issue.
    If I get any useful info I will pass it on.

  • HT1212 My screen doesn't work but I want to connect my phone to iTunes. It's not letting me because I have to enter the passcode. What do I do?

    My screen doesn't work but I want to connect my phone to iTunes. It's not letting me because I have to enter the passcode. What do I do?

    My screen doesn't work but I want to connect my phone to iTunes.
    iPhone, iPad or iPod touch: Not responding or does not turn on
    It's not letting me because I have to enter the passcode.
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    Restore in Recovery Mode:
    iClarified - iPhone - How to Put an iPhone Into Recovery Mode
    If unsuccessful, try DFU mode:
    iClarified - iPhone - How to Put an iPhone Into DFU Mode
    After restoring, restore from back-up:
    iOS: How to back up
    OR
    Set as new iPhone:
    iOS: How to back up your data and set up as a new device
    Hope all this helps.

  • My iphone 3g sound doesn't work but goes on and off when i'm using headset,

    my iphone 3g sound doesn't work but when i plug in headset, the headset sound goes on and off. I think the speaker has a problem or touches but why does the headset not work but goes off randomly?Pls help me out

    my iphone 3g sound doesn't work but when i plug in headset, the headset sound goes on and off. I think the speaker has a problem or touches but why does the headset not work but goes off randomly?Pls help me out

  • Internet Download Manager cannot integration with firefox4 itis Look in the menus it works but it does not actually work ?

    internet Download Manager cannot integration with firefox4 its Look in the menus it works but it does not actually work

    IDM may need to be updated to work with Firefox 4.0. You could contact them and make them aware of the problems you are having with their program.

  • I came into the store because my middle button was not working. Then they gave me a middle button that's on the screen of my phone. I got a new phone do now my middle button doesn't work but I still have the internal digital button, how do I remove it?

    I came into the store because my middle button was not working. Then they gave me a middle button that's on the screen of my phone. I got a new phone do now my middle button doesn't work but I still have the internal digital button, how do I remove it?

    Settings>General>Accessibility>(scroll down to)AssitiveTouch and change to Off

  • I have installed the new iOS 5 on my Iphone 3GS and my bluetooth connection doesn't work anymore. Does anybody have a solution?

    I have installed the new iOS 5 on my Iphone 3GS and my bluetooth connection for my Philips bluetooth headset doesn't work anymore. Does anybody have a solution?
    I have checked the headset on another Iphone with iOS 4 and it works well.
    Thanks for your help!
    Pierre (from Paris - France)

    Bonjour Pierre,
    there seems to be a bug in iOS5 with regards to Bluetooth. THere are a lot of threads in here on this. We're all waiting for Apple to fix this...

  • My external Apple USB Keyboard letters doesn't work, but the numbers do. Why and how can I fix this issue?

    My external Apple USB Keyboard letters doesn't work, but the numbers do. Why and how can I fix this issue? Also, When I open the Keyboard Viewer, the letters will highlight only if I hold the modifier key(s) "Control" or "Control and Option". I really need help with this. I don't have any other computer to try it on, so I will have to test it on a friends computer sometime. But perhaps solutions that I can try right now? Thanks.

    Hello there, IDuncan23.
    The following Knowledge Base article has some great troubleshooting steps you can follow to work on resolving your keyboard issue:
    One or more keys on the keyboard do not respond
    http://support.apple.com/kb/ts1381
    Thanks for reaching Apple Support Communities.
    Cheers,
    Pedro D.

  • When try to connect my iPod touch 4th gen to my house Wifi it won't connect, it used to work fine but now it dosen't work, but it does say that the internet is available, but when I tap on it it just loads. all other devices work fine.

    When try to connect my iPod touch 4th gen to my house Wifi it won't connect, it used to work fine but now it dosen't work, but it does say that the internet is available, but when I tap on it it just loads. all other devices work fine.

    Does the iOS device connect to other networks? If yes that tend to indicate a problem with your network.
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect before?
    Try the following to rule out a software problem:                
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network      
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem and it does not connect to any networks make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

Maybe you are looking for

  • Context mapping problem in FPM

    Hi all, here is a samll example where i am going to display the Attributes from the SELECT perspective to the REVIEW perspective. where the Values from the SELECT View is To be Displayed in the Review view. my Compnents are like.. cctest FcTest Vcfir

  • Looking for option to view modified photos

    After years of owning a Mac and organizing all of my photos manually, I decided to break away from using Adobe Bridge and import everything into iPhoto. I think iPhoto is easy to use and doesn't get in my way except for two things: 1. I'd like to be

  • S-video out issue

    i like to use my powerbook to play movies and such that are on my computer on the t.v. to do this i use the s-video out. but to be able to to use it i need to restart with the s-video cord plugged in. is there any way to use the s-video out without h

  • Why won't Photoshop Elements open?

        I have PSE 3.0 which used to work fine.  Now I click on it and it won't open.  The opening screen comes up and it says it is loading various files and then it just disappears.  It does not show up in task manager.  I have inserted the DVD and don

  • Captivate 8 RGB entry bug

    Does the Captivate 8.0.1.242 patch address the bug with entering RGB values in the Color Picker? Don't see it specifically mentioned in the patch FAQ, thought I'd double-check. Thanks! Tim