VO got executed but is not showing the rows on the page the first time

Hi, Below are my senario:
I have one jspx which contain a panel tab and 2 tabs inside it: tab A and tab B, under each tab is its own taskflow, jsff page, and its own AM and datacontrol also.
tab A have a table
tab b have a table with search panel. The view criteria that used to generate the search panel is not check "Run Automatically"
What I am trying to do is in tab A, user can select some rows and click one button, then below action happen:
1. the id of the selected rows will be pass to a AM method of tab B as string that separated by comma, and this AM method will execute the VO that the table of Tab B is based on
2. set tab b disclosure to be true to show tab B
3. The row that selected in Tab a will be shown in the table of tab b
Below are the code in the AM of tab b, it is exposed to client and it will be invoked by the button actionlistener of Tab A from the bean:
public void applyDashbaordViewCriteria(String listOfPS) {
if (listOfPS != null) {
PullSequenceSetupVOImpl psvo = this.getPullSequenceSetupVO2();
ViewCriteria vc = psvo.createViewCriteria();
vc.setName("PSDashboardVC");
ViewCriteriaRow vcRow = vc.createViewCriteriaRow();
ViewCriteriaItem vcItem =
vcRow.ensureCriteriaItem(PullSequenceSetupVORowImpl.PULLSEQUENCEID);
vcItem.setOperator(JboCompOper.OPER_IN);
vcItem.getValues().get(0).setValue(listOfPS);
vc.add(vcRow);
psvo.applyViewCriteria(vc);
psvo.executeQuery();
However my issue here is:
Whenever the first time entering the page, which will show tab A, I select some rows in the table and click the button, AM got executed correctly and before it leave above code, VO executed and row count is correctly match with what user selected in Tab A. However, the rows in the vo is not showing in tab B. Table in tab B show no rows.
Workaround for the issue:
If first time entering the page, I go to tab B first, without doing anything then come back to tab A, select some rows and click the button again, then this time, the row I selected start showing in the table of Tab B.
So my question is, how can I solved this issue to make the selected rows show in tab B without going to tab B to load the page first? Is that something to do with datacontrol scope?
I am using Jdev 11.1.1.3.0
Thanks.

Hi, now I think i know what is the root cause:
I overide executeQueryForCollection and executeQuery method in the VOImpl that table of Tab B is based on. And I notice the following:
Even when select row in tab A and click the button to call AM method to apply the view criteria and execute the query to return some row, when tab b loading the first time, I notice executeQueryForCollection is being fired again and invoked by executeEmptyRowSet.
It looks to me that even thought before the page load, VO already executed and have some row, somehow when ADF load the page, it will empty all the rows in the VO. And also since I have a query panel which I uncheck the Query Automatically. So even my applied view criteria still there, but VO will not get re executed again and show the result.
I think that is why this issue is happening. And also, that is why if I navigate to tab B first and come back to Tab A, now perform the same action, the selected rows start showing on the page.
Anybody can help me how can I resolved this issue? And also, I don't want to check the "Query Automatically" of the view criteria that I used to genreate the search panel because it may impact the performance.
Edited by: user10867484 on Apr 21, 2011 2:48 PM

Similar Messages

  • Bought Pac-Man, Downloads but will not show up in my libary. Charged 3 time

    Ok, I went to the music store, then went to games and I signed in and purchased Pac-Man. Everything is cool, it downloads pretty quickly, I belive it was 8.28 mb or something like that and once its finished downloading it simply vanishes, it did not go in to my libary, or my playlist, I couldnt find it anywhere. So I checked my paypal account to see if the charge went through and when I bought movies from itunes before it charged me instantly, this time there was no charge. So I thought maybe it didnt purchase it so I try it one more time, the exact same thing happens, downloads and its no where to be found, then I check paypal still nothing, I tried one more time and it did the exact same thing. I checked my paypal the other day and it say -$15 from itunes, so i checked my invoice and it said pac-man x3 each one being $5 bucks. Its one thing to charged 3 times for the same thing but I dont even have the game to show for it. Yes I have a 5th gen ipod, yes I have the most current version of itunes and yes I had my itunes check for purchases, it says all my purchases have successfully downloaded. Does anyone know where my 3 pac-man games are, or what I need to do to get them?
    Thanks.
    Tl;dr bought pac-man, downloads successfully but does not save/stay in my libary/itunes.

    I had this exact same problem when I updated to iOS 7 , so I contacted iBooks there information to me was to completely reboot my iPad and iPhone 5s , and then when it's rebooted ( sorry delete the app before rebooting , my mistake ) after it's rebooted download app again , and ask for previous purchases to be restored , was done in seconds , and I lost 7 books , all on my devices now , if I don't read for a while they just automatically get put into the cloud , and just download to read , hope this helps . And please delete app before rebooting , john.

  • HT4108 i have paid for a rental hd dvd but its not showing on my tv what is the problem

    Help I have purchased for the firstime a hd dvd rental i can see it on the itunes on my ipad but not on itunes on my pc which is not a mac what should i do please

    Rentals are a one-time only download - if you downloaded it on your iPad then from here :
    If you download a rented movie on your computer: You can transfer it to a device such as your Apple TV (1st generation), iPhone, iPad, or iPod if it’s a standard-definition film (movies in HD can only be watched on your computer, iPad, iPhone 4 or later, iPod touch (4th generation or later), or Apple TV). Once you move the movie from your computer to a device, the movie will disappear from your computer's iTunes library. You can move the movie between devices as many times as you wish during the rental period, but the movie can only exist on one device at a time.
    If you download a rented movie on your iPhone 4 or later, iPad, iPod touch (4th generation or later), or Apple TV: It is not transferable to any other device or computer.

  • Nano shows in my computer but will not show in devices. tried reset, disable other programs. still no use

    my nano 6th gen shows in windows but does not show under devces. tried everything in the help program but still doesnt show under devices. can drag and drop music into nano from library to top right i pod symbol.

    Hey steven-g1,
    Thanks for the question. The following article addresses the exact symptoms you described, along with a few potential solutions:
    iPod: Appears in Windows but not in iTunes
    http://support.apple.com/kb/TS1363
    Thanks,
    Matt M.

  • Successfully downloaded os x lion, but does not show as installed

    Bought and successively downloaded os x lion on my Mac, but does not show as installed

    That's one of the confusing things about the App store.  The app you purchase there is the Installer.
    If you've successfully run the installer then your Mac is on Lion but the last step of the install proceedure deletes the Installer from your apps directory.  The App store then reflects that the Installer is not installed on the system..  which is true.
    You can redownload the installer from the app store if needed.  If the installer is still in the Apps directory then you probably haven't installed Lion yet, just downloaded it.
    Regards,
    Captfred

  • Am not able to connect to oracle sql developer first time

    Hai all,
    am not able to connect  to oracle sql developer first time in my windows server.
    in my server sql developer icon is not showing in "all_programs>oracle_home>application development".
    am first time working in windows env..
    server : windows
    database_version:11.2.0.3
    please let me konw how to connect to the sql developer.
    Thanks,
    subbu

    am not able to connect  to oracle sql developer first time in my windows server.
    in my server sql developer icon is not showing in "all_programs>oracle_home>application development".
    am first time working in windows env..
    server : windows
    database_version:11.2.0.3
    please let me konw how to connect to the sql developer.
    Did you perhaps do a custom install? The DB software includes a version of sql developer and, by default, installs it in the sqldeveloper folder of the DB_HOME. Does that folder have sql developer in it?
    I suggest that you NOT use the version of sql developer that ships with the database. That version will NOT be the current version.
    Download the current version of SQL Developer, unzip it into a new folder and create a desktop icon for it.
    http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html
    The current version includes many, many bug fixes from that earlier DB version and you will have far fewer probems with it.

  • HT201210 I was trying to update my ipod for ios 6. It got downloaded but could not update my ipod. my ipod screen is now showing one message usb -up arrow-itunes, can anyone suggest something please.

    I was trying to update my ipod for ios 6. It got downloaded but could not update my ipod. my ipod screen is now showing one message usb -up arrow-itunes, can anyone suggest something please.

    Try:
    - iOS: Not responding or does not turn on
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • I just got my iphone 5c today and i tryed to connect it to my windows 8 computer and connect it to itunes but its not showing up on either on. what should i do? i already uninstalled and re-insstalled itunes and its till a problem

    i just got my iphone 5c today and i tryed to connect it to my windows 8 computer and connect it to itunes but its not showing up on either on. what should i do? i already uninstalled and re-insstalled itunes and its till a problem

    Hello, bluebelle95. 
    Thank you for visiting Apple Support Communities.
    If your device is not recognized by iTunes, I would recommend the steps in the article below.  Start with the section labeled Verify that the Apple Mobile Device USB Driver is installed > For Windows Vista, Windows 7, and Windows 8 > Update the Apple Mobile Device Driver.
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    Cheers,
    Jason H.

  • I purchased 2 books for my iPad and they downloaded successfully.  They show up in iTunes when my iPad is connected to my Mac but do not show up on the Mac.  Is this a synch issue?  When I click the Synch box I am warned that downloads on my iPad will be

    i purchased 2 books for my iPad and they downloaded successfully.  They show up in iTunes when my iPad is connected to my Mac but do not show up on the Mac.  Is this a synch issue?  When I click the Synch box I am warned that downloads on my iPad will be erased.  Is that true?  My ultimate goad is to be able to read the books on my iPhone as well.  Thanks.

    You should be able to copy them to your computer's iTunes via File > Transfer Purchases and you can then sync them to the iPhone (or you could re-download them directly on the iPhone)

  • TS4062 I can't sync music on my computer to my ipod touch; the ipod shows up under Devices in itunes but does not show buttons (Summary etc.) when I click on it. Suggestions?

    I can't sync music already on my computer to my ipod touch; the ipod shows up under Devices in itunes but does not show buttons (Summary etc.) when I click on it. I've read through all the Help tutorials but none of them say what to do if the sync options don't pop up when you highlight the device.  I've already spent way too much time trying to figure this out and it's driving me crazy!  Thanks for any help you can offer.

    This is correct.  It will not show in finder.  It is not an external storage device.
    The music sync is one way - computer to ipod.  The only exception is itunes purchases.  Open itunes connect ipod, do not sync, click File>Transfer Purchases

  • Edu DVD in computer iTunes but does not show up in iPad iTunes or iPad video.  How do I make the DVD contents available on the iPad?

    Educational DVD added successfully to computer iTunes but does not show up in iPad iTunes or iPad video.  How do I make the DVD contents available on the iPad?

    Thanks!  For whatever bizarre reason for which I have no answer - I sync'd my iPad to my MBP the old fashion way (not iCloud) and the movie showed up just fine.  It is Nikon camera 'how to' video. I like to watch them for a better indepth discovery of what the camera can do.  The only weird thing about the hard wire sync is that it was placed in a catagory "home movies" which was never there before...actually it showed up in two places "home movies" and TV shows.
    So, thanks anyway!  Pretty cat!
    Mona

  • Epub books show up in ipad on itunes but do not show up on ipad. Also can not delete the books from ipad in itunes

    epub books show up in ipad on itunes but do not show up on ipad. Also can not delete the books from ipad in itunes

    You have no choice but to lose your data back to the last backup you made.
    Here's how to do the recovery.  Note you may have to try to get into recovery mode more than once to succeed:
    HT1808
    I'm sure next time, you'll be more vigilant about keeping current backups.

  • HT4528 A song I purchased shows up in iTunes, but will not show up on my iPhone.  When the phone is plugged into the computer, iTunes shows that it is on my iPhone, but it is not.  How do I get that song to show up on my iPhone?

    A song I purchased shows up in iTunes, but will not show up on my iPhone.  When the phone is plugged into the computer, iTunes shows that it is on my iPhone, but it is not.  How do I get that song to show up on my iPhone?

    I have the same problem and it only affects the one song, everything else syncs

  • My G Drive will not show up on my desktop for use. It did yesterday. It is not full and currently the light turns on and seems to be running but will not show up on my desktop. What can I do?

    My G Drive will not show up on my desktop for use. It did yesterday. It is not full and currently the light turns on and seems to be running but will not show up on my desktop. What can I do?

    1. verify on another Mac first. and another port.
    2. very likely dead SATA card
    read about it here:
    Your dead external hard drive is likely fine! Great hope for your 'faulty' external HD

  • My iPod touch is synced to my old Mac and I have a new PC. Now when I plug my iPod into the new computer it will make the connection sound, but will not show up in my iTunes. I do not care to have the content copied over. Any suggestions?

    My iPod touch is synced to my old Mac and I have a new PC. Now when I plug my iPod into the new computer it will make the connection sound, but will not show up in my iTunes. I do not care to have the content copied over. Any suggestions?

    Start here:
    iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows

Maybe you are looking for

  • Volume structure error -694???

    Ran tech tool cd and it could not fix volume structure error and showed error -694. Does anyone know what this means? Just archived and reinstalled OSX yesterday to fix a boot up problem, which it did. But now after doing the needed updates - wheneve

  • Apache Directory Server as data source for Portal UME?

    Hi, Has anyone tried using Apache Directory Server as a Data Source for Portal UME? We would like to try that out. If anyone has tried before I would like to get the data source configuration file. ALso would like to know more in detail about the pos

  • Sender receiving endless mail delivery system notifications

    For the past 25 hours (or so) a friend has been receiving REPEATED messages from Mail Delivery System saying: "This is an automatically generated Delivery Status Notification. Delivery to the following recipeints is still under way after 25.6 hour(s.

  • Ringtones BACK to itunes

    Hey all, Computer crashed. Windows XP btw. Everythings recovered. How do I take ringtones on my iphone and put them back in itunes to resync instead of them being deleted since thier not present in my library now. Thanks.

  • Epson scanner not work with Mountain Lion?

    I have an Epson Expressio 1600Pro scanner with transparency adaptor. It has worked perfectly with previous Macs using OSX 10.4. I have recently bought a MacBook pro and upgraded it to OSX 10.8. I went to Epson's website to get a new driver etc. That