Queries with parameters - how do they get migrated?

We are evaluating this migration to move a client off of access and put them into oracle. We use APEX for other things and like it. So, we tried with 3 tables, one query and one report. The tables moved fine, but the query failed. The log showed:
Failed to Convert View <name> unexpected end of subtree: Line 0 Column 0.
I began removing things to determine what was causing it. I finally got it to run when I got rid of the functions like iif, int and val. I think these are causing the issue. But, I still couldn't create the view because of the parameter in the query. Access prompts the user for this value before the query is run, but how would this translate to an Oracle view? And how would the report prompt the user for this value in Apex? Does this convert over automatically?
If I have to rewrite the queries myself, I will. If I do, will that affect importing reports like this into Apex? Any suggestions?
Thanks, Chris

Hi Chris,
Thanks for the updates.
Currently the Oracle SQL Developer Migration Workbench translator does not support the parsing of the IIF function. I believe there is a bug already logged against this & a fix will be available in a future release of the Workbench.
You may find it useful to refer to the following threads discussing alternative handling of queries using the IIF function -
Access Queries with "IIF" function
msaccess parser error
As mentioned in the above postings, one option for you is to use a CASE statement, similar to the following:
SELECT SUM(case when Table1.Week Between 1 And Ending_Week then Table1.Sales else 0 end) TY_Sales_YTD
FROM Table1 ;
If you wished to use such a query to display the resulting value on an Oracle APEX page, this could be implemented as follows:
Note: Assuming that you have migrated the database schema to Oracle & have associated your APEX workspace with that schema.
1. Create a new blank page in your APEX application. Add a new HTML region to your page.
2. Create a "Select List with Submit" item and in its "List of Values Query" field enter syntax similar to the following:
select week d, week r
from table1
order by 1
and set the item name to P1_END_WK. Place the item on your HTML region. This item will act as the parameter in your query.
3. Create a "Display as Text" item and set its Source region to be of type "SQL Query". Paste the following syntax into the items' source value field:
SELECT SUM(case when Table1.Week Between 1 And :P1_END_WK then Table1.Sales else 0 end) TY_Sales_YTD
FROM Table1
and set the item name to P1_SUM. Place the item on your HTML region. This query will return the result based upon the user's selection of value in the P1_END_WK select list item.
4. Add a branch to the page, setting it to branch to itself. Basically when the user selects a value from the P1_END_WK select list, this will submit the page. The branch will redirect the page to itself & in turn update the value held in P1_SUM.
Would this type of implementation work for your application? It's obviously just one option to consider. I hope this helps. If you have any further issues/questions regarding any of the above information or regarding other queries in your MS Access MDB file, please let me know. If you'd like me to take a look at your MDB file, please post your email address so I can contact you directly.
Regards,
Hilary
Message was edited by:
hfarrell

Similar Messages

  • Rented film, fully downloaded (eventually) press play now then screen goes to authorizing, then goes black blank, no film , repeated process 3 times, still no joy. first and last time I rent a film with Apple, how do I get my money back ? Thanks

    Rented film from Apple TV  fully downloaded (eventually) press play now then screen goes to authorizing for 10 mins, then goes black blank, no film , repeated process 3 times, still no joy. first and last time I rent a film with Apple, how do I get my money back ? Thanks

    First, that cannot be an iBook G4 as that machine cannot run Snow Leopard let alone Mountain Lion.  To run Snow Leopard it has to be an Intel processor, not a G4.  What does it show as the Model Identifier in About This Mac, More Info, System Report, Hardware, Model Identifier?
    Second, if you have erased the hard drive there should not be remnants of any prior content.  Even though Disk Warrior is saying nothing is wrong with the hard drive, it sounds as though there are problems.  You may want to consider simply replacing the hard drive so there are no questions about faults.  A good source is OWC, http://www.macsales.com where they also have on-line videos showing how to do the replacement.
    Third, you could also try again to restart using the Snow Leopard DVD/CD and use Disk Utility on that install disk to erase again, and do it a couple times, then try to install.  If it continues to refuse, then it sounds as though there is a fault with the hard drive.

  • HT4689 In the video: mission control in action,we see many open windows which I don't have. How do they get there?,

    In the video: mission control in action in Mac 101,we see many open windows which I don't have. How do they get there?

    On modern MBairs, the F3 key will take you to Mission control.  Once there, hold the Option key down and you'll see  a tab with the "+" sign on it.  Pressing this will add another desktop.  You can assign apps to desktops or just drag them there.   Switching between desktops is done by swiping either 3 or 4 fingers across the trackpad. (depend on the option chosen in System Preferences > Trackpad).

  • What do the blue dots beside the addresses used in the messages address  and how did they get there?

    What do the blue dots next to the addresses in the address book used to address (TO) someone mean and how did they get there.  I unsuccessfully tried to use an email address, the message address line kept giving me a red "hand slap"with an ! Point.

    The blue dots mean the addressee has a device capable of using iMessage.
    Try using the phone number instead of the email address to send the message.

  • New York Jets - How Did They Get That Name?

    I remember the old New York Titans of the AFL, but then one day, they were called the Jets. How did they get that name (West Side Story?), and where did it come from?
    Rod, are you home?
    Hunt

    hiya...hehe... was crying ...jets lost...boo hoo....
    gotta admit ne pats defense and offense were just too good...couple turnovers and jets = dead ducks ( making that gargling sound in throat as they bit the dust ).
    why jets name ??? dont know really...not definitetively...
    My dad was into gymnastics pretty much entirely ( a little into figure skating ). not baseball or football. bowling a little as a " do it " sport, not a "watch it " sport. The only "watch it " sports us kids did ( only had 1 tv ) was gymnastics and skating olympic stuff mostly but some other competitions too.
    Gymnastics is weird in a way...( as was my father ). It is extremely personal ( about beating your "self" ..doing better than you did " before" ).. very individualistic ...even though you are on a " team "... it's just points mostly for the team to win , accumulation of individual scores...  father was very anti weight lifting, very opinionated about these things to his kids... so even when I got into wrestling, for example, or football ..in high school, he was very critical of any weight lifting that was part of the practice and training. He " coached " or " taught " gymnastics on Saturdays at my high school in a sorta unofficial (unpaid ) position...so me and my brother got sorta hooked into that more than doing football, wrestling etc. In fact, we started doing gymnastics when we were like 1 year old.. and it is so stated in some newspaper clipping by howard cosell (when he was a newspaper columnist before radio ) interviewing my father after a ny athletic club gymnastic competition ( trials for olympics sorta thing )... " Yes, Howard, I have 3 children, and they are already doing floor excercises and some tumbling... kirk, age 3, rodney age 2, and susan age 1 .... "  that sorta thing.  We were famous !
    We could roll on the floor with pet dog real good !
    This gives you general idea how I never got into "watching" football seriously, or baseball...I am basically ( like my brother ) a sport idiot re: following football and baseball like normal american kids.  Of course I did follow favorite teams for a while in high school... ( oakland raiders were my favorite with a couple other teams kinda floating in and out of my interest ) but I have only been to 2 pro baseball game, never to any pro football game, and only 1 college football game ( army navy as guest of family who's son went to west point .. they got season tickets and tailgate spot etc ).
    Baseball games were 1 polo grounds where the only thing I remember is having a hot dog and I dropped my plastic thing of mustard and for some stupid reason stomped on it... and it squirted mustard like it was shot from a canon onto this lady's leg ( stocking ).. and she yelled at me and I felt bad and said I was sorry and she tried to get it off but I think her leg was stained with mustard forever.
    Other baseball game was yankee stadium box seat next to yankee dugout roof as guest of guy who's brother in law owns the boxes complete with free parking nearby and tickets to some yankee club after games.  fancy seats ( 4 of them ).  I put my beer on the roof of the yankee dugout, it was like right in front of me. I got a ball thrown to me by a yankee after pre-game practice ( as they came to dugout to start game ). Actually he faked me out at first...went to throw, I ( startled by his hand action ) put my hands up fast to catch.. but he didnt throw ( like faked me out )... but then as he disappeared under dugout roof his hand came up and flipped the ball right to me ( which of course I caught since I am so quick with my reactions due to rolling with dog when 2 years old ).
    So thats my only baseball story of any interest. It was the game " after" the boston yankee game with the pine tar incident in boston with billy martin.. so this was the next day IIRC in ny with boston again... yankees won.  and didnt have to do tricky stuff to win ( like complain about pine tar ).  The mustard story doesn't get told often.
    So now you know that I am a total idiot re: sports in general due to total immersion in gymnastics, and most of THAT was just doing it, not following particular athletes ( though of course some became sorta famous at the olympics etc ) We had high bar and parallel bars IN THE BACK YARD !  LOL... I once saw a friend try a giant swing ( we had no mat.. just grass ) and fly off and landed about 20 feet away ... he let go cause all the skin on his girly hands got ripped off as he was twirling around... goes to show you... be careful when trying new things.
    His eyes had rolled up into his head so you could only see " white" for a little while... but then he came back to life ( whew ! ) .  We quit for the day doing gymnastics.
    Sooo, in answer to your question.. given my idiocy about these matters.. the Jets ( from Titans at polo grounds and 1 season I think at the new Shea Stadium --where the METS were ) with change in ownership and all that going on... could have been from west side story ( cause I think there's a long history of some stadium dreams over on the west side of manhattan ( which would be a total nightmare for traffic by the way ) ).. and since it rhymes with METS maybe.. and also maybe because when you go to shea stadium all you can hear most of the time are GIANT JETS FLYING LOW OVERHEAD on way to and from LaGuardia Airport which is like 100 feet away from home base.
    A lot of New Yorkers liked the Jets at first because Joe Namath go them to the superbowl and won, much to the surprise of everyone on earth and mars too..   but really because it was a ny stadium instead of NJ ( everyone in NY makes fun of people in NJ ).  The giants suffer for this cause a lot of people call them the NJ Giants. And now ( of course ) a lot of people call the Jets the NJ Jets too... since they left shea stadium ( which was a mess because they had to go on road games till the METS were done playing baseball...and then that stadium on the west side got blackballed again by a couple lawmakers in Albany ( they actually OWN the city and state, Sheldon Silver and some other guy ). Im not really up on that whole history of west side stadium but in part the cablevision guys who own madison sq garden dont want competition. They got it with the javits center for conventions but not for sports teams.. so I guess they're happy for now.
    Now we got citi field and met life field and will probably rename the midtown tunnel " JP Morgan Tunnel " soon... but as I say, .... I don't go to any of these games and travel as little as possible so who cares.

  • Entourage has lost some of it's icons, how do they get restored?

    While using Microsoft Office 2008, I noticed after a OS X update that I had two mising icons within Microsoft Entourage.
    Entourage has lost some of it's icons, how do they get restored?
    Thanks
    iTel iMac 4 Gigs  Mem

    Not that it helps, but this is why I wish they would just go back to customer activations at home instead of activating iPhones in store. They do it there, then 3 or 4 or 5 months later, the user gets around to plugging it in to iTunes for the first time only to have all their contacts as well as apps and music they've purchased wiped out without ever having backed it up...
    You can try to restore the phone. It 'should' have been backed up before the initial sync, but I'm not positive about that. I'm not in front of a machine with iTunes now and don't want to steer you wrong. There should be a number of helpful threads here. Use the search box at the top of the page, you should be able to find step by step instructions if it's still possible.

  • I have purchased songs from itunes on my ipad but now they are not there anymore. How can they get them back? Dont come up in songs not on this ipad and in itunes it asks to buy again

    I have purchased songs from itunes on my ipad but now they are not there anymore. How can they get them back? Dont come up in songs not on this ipad and in itunes it asks to buy again

    If you are now in the US then you can only use the US store, so you should update the address on your account
    Changing country : Change the country of your iTunes Store, App Store, iBooks Store, and Mac App Store account.
    Had you copied the songs over to your computer's iTunes library, do they show in the Music section on it ? You can copy purchases that you still have on your iPad over to your computer's iTunes library via the File > Devices > Transfer Purchases menu option

  • I have a long list of gibberish files, in Preferences, in my Library. What are they? How did they get there? Can I delete them?

    I have a long list of gibberish files, in Preferences, in my Library. What are they? How did they get there? Can I delete them without causing a problem?

    Here is one thing I found googling for WebEx:
    http://www.webex.com/why-webex/overview.html
    (The x64 would most likely mean 64 bit). It may be a Windows based application/plugin, but since I had never heard of either, I'm only guessing there. If you do a search systemwide for it and don't find it plus don't know why it's there, I'd say throw it in the trash (don't empty it yet - make a note of the file path just in case you do have something installed that needs it so you can move it back).
    Glad to hear it's not a torrent; some people use those not realizing that quite often there is a price to pay for downloading stuff for free that costs money elsewhere - the software packages quite often include little "add-ons" = malware which you really don't want.

  • HT201269 when i back up my iphone 5 so that i have all the info from my 4s on it, it wont put my music on it or let me do anything with it. how can i get my itunes to recognize that it is my new iphone and let me put stuff on it with out completely resett

    when i back up my iphone 5 so that i have all the info from my 4s on it, it wont put my music on it or let me do anything with it. how can i get my itunes to recognize that it is my new iphone and let me put stuff on it with out completely resetting it?

    What version of iTunes are you running on your computer? You need to update to the current version.

  • I have got an ipad 2 .It is not showing any home screen but showing a symbol of connecting USB with itunes.I have downloaded itunes on my pc and it shows sync with ipad.How di I get my home screen.Pl help

    I have got an ipad 2 .It is not showing any home screen but showing a symbol of connecting USB with itunes.I have downloaded itunes on my pc and it shows sync with ipad.How di I get my home screen.Pl help

    Follow the prompts for setting up your iPad with iTunes on your PC.
    Which Windoze version is your PC running?

  • How do I remove email address not in contact list.they drop down when in the "to"field trying to either fwd ,send or reply. How did they get there in the first place. And the edit key does not show in my contacts

    When sending email wether reply or fwd or new addresses drop down that not show in my contacts. How do,I remove them and how did they get there?  And the edit key notmshowing in my contacts.
    Someone else's reply  nothing that could be done short of clearing out all contacts and starting over. But these are not in my contacts!!!!!!!!!! So,that is not an answer

    So are you telling me that anyone I ever send n email to will appear in the drop down list but not in contacts? I don't have that many contacts on list so are younsayingmi would have to remove them all to remove the unwanted address in the drop down to go away? If that is not  please explain

  • Computer Crashed with CS4 - How can I get these programs to my new computer?

    Computer Crashed with CS4 - How can I get these programs to my new computer?

    You will want to install them from the installation media.

  • I purchase a movie with my ipad but i sold it and never synced it with itunes how do i get the movie back??!

    i purchase a movie with my ipad but i sold it and never synced it with itunes how do i get the movie back??!

    Unless you are in the US then films can't currently be re-downloaded from the store (and not all films can be in the US). If you are in the US then you could see if it's in the Purchased link on the left-hand side of the iTunes store home page for re-downloading : http://support.apple.com/kb/HT2519

  • I lost my library and backups to a fire but had my Itouch with me , how do i get my "stuff" off my ITouch to my new library ???

    I lost my itunes library and backups to a fire but had my Ipod Touch with me, how do I get my "stuff" off
    my ITouch to my new computer and new Itunes library ?????

    Connect iPod to PC
    Ignore iTunes prompt to sync.
    Find ipod device in 'My computer'
    Open the ipod drive and click on ORGANIZE. Then folder and search options tab. Then View and Show hidden files and folders. (You may have done this before)
    A folder called "ipod_control" should appear. Open it
    Within this folder there should be another "ipod_control" folder. Open that too.
    Copy and paste everything in this folder to a folder in "My Music", name it so you can recognize it.
    Return to iTunes, then go to  File -> Add folder to libary.
    Find that folder you pasted to my music. Highlight it and press select.
    Wait. iTunes will recognise the code of the files and begin importing it all to your libary.
    Thats it! Your files are moved. ^_^
    (PS. you may want to look over them as some of the code will not have been translated, but if you recognise the songs then it should not be a problem.)

  • How do I get "hidden photos" back into album permanently.  How di they get "hidden"?

    How do I get "hidden photos" back into album permanently?  How did they get "hidden"?

    View -> Hidden Photos.

Maybe you are looking for

  • Report for GR/IR line items - with PO details - profit center wise

    Hi My client uploaded stock and instead of using MIRO, directly passed the journal entry Consumption To Vendor Now, the original entry of Stock To GR/IR remains. How can I make the GR/IR account nil and also remove the open items in the corresponding

  • Filter issues

    Hey Aperture community: I searched for a solution but came up empty. I recently imported about 300 images from a swim meet this past weekend. I ranked about 200 of the images as 5 stars. I tried filtering the project only to view the ranked images (5

  • Plz-Tel me how to connect to the DME using JNDI

    This is my final sem [ M.Tech IT] project work. Problem is " I cant get connection to the DME. Though i searched a lot from Google I cant get a solution. Plz help me to get connection to the Data Mining Engine. If possible plz mail me a detailed code

  • HOW DO I GET BROWSERLAB TO APPEAR IN "PREVIEW IN BROWSER"?

    I HAD TO RE-INSTALL  DREAMWEAVER.  THE BROWSER LAB DISAPPEARED FROM THE "PREVIEW IN BROWSER" OPTION. I RE-DOWNLOADED THE PREFERENCE EXTENSIONS.  I CAN ACCESS THE ADOBE BROWSER LAB FROM SAFARI, BUT NOT FROM WITHIN DREAMWEAVER. SUGGESTIONS?

  • Playing Sirius Satellite Radio music Using Itunes through Airtunes

    Ok.. This is an interesting one. I am a Sirius Radio subscriber. I can listen to a limited list of Sirius Radio stations online with my Mac. Unfortunately that will only play through my computer speakers. Itunes has many optional radio stations that