Problems when I have tried execute two consecutive selects
Hi,
I am trying to execute two consecutive selects, when the second sql has been executed, it response "Operation failure of ado2xfa. Imposible find the element in the colection that corresponds with the name" (I have translated the message).
The error happens when I execute the second DB.open
In the data conection I have selected "text" in the commandType with "select * from t1"
First I tried to execute both sqls but, if I try to execute just the "select * from t2" in the first sql command I obtain the same error.
In the data view I have just one db connection linked with table T1, do I need to create one db connection per table?
For example if I want to connect with 6 different tables I will need 6 different DB connection objects.
Somebody know what is the problem?
Thanks
Rubén
var DB;
var record;
var i;
DB = xfa.sourceSet.Oracle
record = xfa.record.Oracle
try {
DB.close();
} catch (e) {}
DB.resolveNode("#command").query.select.value = 'Select * from T1';
DB.open();
DB.first();
for (i=0;i <= record.nodes.length;i++)
console.println(record.nodes.item(0).value);
DB.next();
DB.close();
DB.resolveNode("#command").query.select.value = 'Select * from T2';
DB.open(); <--------LINE THAT PRODUCE THE ERROR---------
It's because the data connection has been set up to expect the fields returned from T1. When you query T2 different fields are returned and it doesn't know what to do with them so it throws an error. You would need to 2 data connections, 1 for T1 and 1 for T2.
Chris
Adobe Enterprise Developer Support
Similar Messages
-
I created a book on iPhoto. I click on the buy button, and I get a message that says Connecting with a moving blue striped rectangle. I am connected to the internet and I have made books before without any problems. I have tried for the past two weeks at various times and I get this same message each time. Any ideas about what is going on?
First confirm that you can create a PDF file of your book as described in this Apple document: iPhoto '11: Preview a book, card, or calendar before you order or print it. Post back with the results.
OT -
My movies' audio isnt 5.1 as the description says. when I check out their info it says they are 2 channel. I have tried with two movies already and the audio description said Dolby 5.1
Actually, try this instead. On the apple tv, under settings > Audio > Dolby digital
Change it From AUTO (default) to ON
That worked for me. All my eyetv encodes have stereo and 5.1 tracks. For some reason the auto option forces stereo. Setting it to ON forces the 5.1.
Everything sounds nice again! It's just stupid that apple puts AUTO for the default and that setting results in stereo not 5.1. -
The "unknown error" problem when I am trying to sign in to the apple store on my Iphone 5
"unknown error" problem when I am trying to sign in to the apple store on my Iphone 5, which was recently replaced with new one by the warranty (maybe this is the reason). However, it signed in on this device at first, but now it is not... What should I do?
Mobile Me was withdrawn well over a year ago. If you still see Mobile Me in your system preferences it is because you have an old operating system.
iCloud has replaced mobile me, but you would need OS X 10.7.2 or better to use iCloud. -
My Ipad 2 will not power on. I have tried the two button approach but it did not work. Until last evening, the Ipad was working very well. After it entered the sleep mode, it would not come back on. What can I do?
The first thing to suspect is a completely drained battery. When this happens the iPad shuts down and will not turn on. Even if you charge the iPad it may take more than 30 minutes before it responds. Plug the iPad into the charger that came with it and plug the charger into a known good wall outlet. Do not charge the iPad by connecting it to a computer. Wait 30 minutes. Then reset the iPad. Press and hold both the Home button and the Sleep/Wake button continuously until the Apple logo appears. Then release the button and let the device restart. You will not lose data doing this. It's like a computer reboot.
If the iPad restarts let it continue to charge until the battery is at 100%. If the iPad does not restart consider making an appointment at an Apple Store to have your device examined by a technician. Or contact Apple Support. -
The last few days I have been constantly saving my file. A couple of hours ago I renamed the file and then reopened my file a little while later, but the most recent work wasn't saved even though I'm sure I saved it before closing. What can I do? Also, when I have tried to email it to myself as a backup, the fields aren't populated when I open it up. Fyi, I have the free subscription.
Hi Constance,
As i understand your changes in the pdf were not saved...Are you still facing this issue?
Regards,
Rahul -
all of a sudden I'm getting a 'itunes.exe - system error It says the program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix this problem. I have tried to reinstall and still can't open itunes. help!
Try the following user tip:
Troubleshooting issues with iTunes for Windows updates -
I am unable to update my apps... in my purchases page it appears as "update", then a message tells me to log on with the Apple ID I purchased the app with... Well I have tried my two different accounts and neither one will work, can someone help ??
And is there any way to sync all my purchases and accounts to just have one... It is a bit stupid that you dont even get a list of something of what account you may of used, or some kind of hint, so you could log on to the right account. I am really stuck ...
Please Advise......You can't merge accounts. But you can check your purchase history:
iTunes Store & Mac App Store: Seeing your purchase history and order numbers
http://support.apple.com/kb/HT2727
Also, what may seem stupid to you... may be a protection of privacy to others. -
Bluetooth is no longer working on iPhone 4s. It used to work very well. Not any more. Have tried reset network settings and all settings, no joy. Never had bluetooth problems before. Have tried connecting to other peripherics nothing works. Can you help? Thank you.
Bluetooth is no longer working on iPhone 4s. It used to work very well. Not any more. Have tried reset network settings and all settings, no joy. Never had bluetooth problems before. Have tried connecting to other peripherics nothing works. Can you help? Thank you.
-
Appleworks 6 will no longer open. When I have tried to update appleworks, I am getting a message saying a shared library error is preventing it from updating.
Any suggestions?Might be worth repeating the question in this forum:
AppleWorks -
My computer recently froze whilst updating Itunes, and has subsequently removed Itunes from my computer. When i have tried to reinstall the programme, i get the following error message "Invalid Drive:G:\" any ideas?
Try the following user tip:
"Invalid drive X:\" install errors -
I have had an iphone 3g and recently had to restore my factory settings, when I have tried to add facebook on again it says that the relevant update of 4.3 is not available, however the 4.3 update is not available for the iphone 3g. how can i solve this and get facebook back on my phone
You cannot.
Unless you have done as you should and have the old facebook app on your computer. -
I was on the phone last night and my phone randomly turned off. It will not come back on even when I have tried to hold the home button and the power button at the same time, while being plugged into the computer? What do I do?
Plug it into power for at least 15 minutes. If it doesn't automatically come on, try a reset... press the home and sleep (on/off) buttons until you see the Apple logo, ignoring the slider. Takes about 5-15 secs of button holding and you won't lose any data or settings.
-
I am unable to switch on my IPad as it states that 'iPad is disabled'. How do I fix this problem when I have no access to the iPad? Any help or advice will be gratefully received.
Forgotten Passcode or device disabled after entering wrong passcode
-
I have logged into a banking platform that allows me to look at statements then download them into excel & pdf, when I have tried to do this in firefox the icons of excel and pdf have disappeared. It allows me to export in internet explorer?
== This happened ==
Every time Firefox opened
== When I started using firefox over internet explorerDo you have an PDF Viewer plug-in instaled? If no install one.
Maybe you are looking for
-
I'm trying to create an AVI file for someone, but I just can't seem to get it to work. I currently have it encoded in a MOV wrapper, and when I run it through MPEG Streamclip, it comes out with no audio, or, depending on the settings, QT complains th
-
Hp 620 connection randomly lost,after restart sometimes comes back then goes again
Randomly wireless connection goes away.And says not connected and no connection available.Wireless button stays always white and doesnt respond . After restart sometimes connection comes but then goes again after 1-2 minute.Network adapter looks like
-
MacBook Pro running Lion constantly spins up external hard drives while sleeping
My MacBook Pro 8,2 running Lion 10.7.2 constantly spins up its external hard drives (one Firewire 800 and two USB) while sleeping. Is there any way to prevent this? The drives will spin down for a minute or so and then spin back up, which is incredib
-
Pc Suite: File Manager not working
I can't access file systems on my E50 using PC Suite's file manager, neither via Bluetooth nor via cable. The message is something like "Can not connect to mobile phone" (Original German message: 'Verbinden zum Telefon nicht möglich'). When I tried
-
Hello every one.... As doing web log scenario..BW-XI integration( how to send XML data to BW from XI ). I configured all the steps in that web log..but final step is not woking eventhough i created html file nad xml file as per the web log