Default and secondary row sets not working as expected

I am trying the following code to understand how the default and secondary row sets work in ADF. However, the implementation doesn't seem straightforward.
public void testRowSets(){
  CountryVOImpl vo = (CountryVOImpl)findViewObject("Countries");
  vo.setApplyViewCriteriaName("CountryVOSearchByRegionIdVC");
  vo.setbindRegionId(new Integer(4));
  vo.executeQuery();
  RowSetIterator iter1 = vo.getRowSetIterator();
  while (iter1.hasNext()){
  System.out.println("default iterator, for region id 4, has countries="+iter1.next().getAttribute("CountryName")); //prints Zimbabwe,Nigeria,Israel
  RowSet rowSet = vo.createRowSet("secondaryRowSet");
  vo.setbindRegionId(new Integer(4)); 
  vo.setQueryMode(ViewObject.QUERY_MODE_SCAN_VIEW_ROWS);
  rowSet.executeQuery();
  while (rowSet.hasNext()){
  System.out.println("secondary row set, for region id 4, has countries="+rowSet.next().getAttribute("CountryName")); //prints nothing
  rowSet.closeRowSet();      
  RowSetIterator iter = vo.getRowSetIterator();
  System.out.println("default row set iterator row count="+iter.getEstimatedRangePageCount());
  iter.reset();
  while (iter.hasNext()){
  System.out.println("default row set iterator, for region id 4, has countries="+iter.next().getAttribute("CountryName"));
Now, iter1 prints X, Y, and Z country names (line #9).The secondary row set prints no countries (line #17). After executeQuery() on the secondary row set, the default row set iterator also prints nothing (line #25). Believe the secondary row set has a different query collection only as long as the row filter is different, and in the case above it's the same. But if that's the case then when we perform rowSet.executeQuery in QUERY_MODE_SCAN_VIEW_ROWS, why does it not see the records in the default row set which have already been placed in the cache by iteration over the default row set?
NOTE: Changed the subject in the hope to get more suggestions/answers

have you tried resetting the rowset after the first iteration - my guess its pointing to the end after the first iteration. So perhaps try closing the rowsetitertor first
iter1 .closeRowSetIterator();
and then
RowSetIterator iter=vo.createRowSetIterator('secondaryRowSetIterator')

Similar Messages

  • 0I_FPER and variable off set not working

    Hello All,
    I am attempting to us the FiscPer Interval input variable with an off set and it does not appear to be working.  I am attempting to do this on COPA.  The business requirement is to have an interval and the corresponding interval for the prior year.  One of the problems I am having in testing this is that there is not enough data to test the year (-12) off-set.  So I have decided to test it with a -2 off set to see that at least in theory it will work.
    The 0I_FPER interval is working however the -2 off set is not returning any data.  I have attempted a number of solutions so far with out success.  We are using BI 7.0 and are currently on Service Patch 10 with a number of additional oss notes applied.  Does any one have any suggestions for me?
    Thanks
    MK

    i dont think offset would work on interval option. It needs to be a single value.
    What i mean to say is, if the user enters 01/2006 - 07/2007, when you put a offset 0f -2, the system wouldnt know which value it is supposed to offset (period1 - 7).
    The work around if you want to display the same range in previous year would be to use two variables on fiscal year and posting period seperately and there you can do a offset on fiscalyear which would give you the same range for 2006.

  • ISE 1.2 Sponsor Group - "View/Edit Accounts" Setting not working as expected

    Hi,
    we need a sponsor account that is not allowed to see the Account List (so the Accounts that were created) on the sponsor UI. The sponsor should be only allowed to create an account, to send his credentials via E-Mail or to print them.. and that's all
    So I configured the rights as you can see in the attachment, but when I choose No for "View/Edit Accounts" the user is able to see ALL ACCOUNTS. When I just choose "Own Accounts" then the user sees just his own Accounts, so the 2nd setting works properly.. the first behaviour seems like a bug to me.. did anyone else have had this problem too?
    Thanks!

    Choose one of the following options for View/Edit Accounts:
    –No—Sponsors are not allowed to edit any guest accounts.
    –All Accounts—Sponsors are allowed to edit/view all guest accounts.
    –Group Accounts—Sponsors are allowed to edit guest accounts created by anyone in the same sponsor user group.
    –Own Account—Sponsors are allowed to edit only the guest accounts they created.

  • NAM and "unprotected identity pattern" not working as expected

    Hi,
    I'm trying to test such 802.1x wired environment:
    windows xp sp3 as supplicant
    windows NPS as radius server
    2960 as authenticator
    latest anyconnect (3.1.01065) + nam and standalone profile editor
    I have a question:
    Could someone explain me the difference between protected identity pattern and unprotected identity pattern (set in nam profile editor)? As I understand documentation PEAP-MSCHAPv2 is a tunneled method and it uses unprotected identity pattern to protect user's identity during phase 0. But if I use any fake identity here (anonymous, anonymous@[domain], etc) access is rejected (Access-Reject in switch debugs). I have to use exacly the same pattern in
    unprotected identity pattern as in protected identity pattern ([username] or [username]@[domain]) to gain access, regardless of authenticaton mode (same in machine only, user only authentication)
    I would be grateful for any clues
    Best regards
    Lukasz

    Ok I've solved it... NAM works fine, problem was with NPS config. If you want unprotected identity pattern to work, just configure authentication methods under "connection request policies" not "network policies".

  • CFWINDOW and a form submit not working as expected

    Hello, everyone.
    I currently have a page that allows certain users the ability to edit content directly, without having to log on to a CMS; the user can click an edit button if they have permission which will open a CFWINDOW that contains the pre-populated form for editing.
    If I open the form directly in a browser (IE7 on WinXP SP3) and click the submit button, all is well.
    However, when I use the EDIT link and open the form in the CFWINDOW, clicking submit will post all form data EXCEPT the input="file"; upon submit, I get an error saying that the field for file doesn't exist.
    Any idea what could be causing this?
    Thanks,
    ^_^
    PS.  If required, I can post some code; but I cannot provide a link as this is on a private internal network that the public does not have access to.

    Here's the code I have, thus far.
    Main webpage (this calls the CFWINDOW):
    <cfoutput>
         <div class="more-info">
         [<a href="javascript:void(0);" onclick="windowModal('Edit_NU','#trim(url.thisNav)#',500,700,'Edit News & Updates - #ucase(url.thisNav)#','edit_nu.cfm?thisNav=#trim(url.thisNav)#',true)">edit</a>]
         </div>
    </cfoutput>
    windowModal function:
    function windowModal(win_name,TID,h,w,t,f,m){
         var windowName = typeof win_name === 'undefined' ? 'CFWindowName' : win_name;
         var thisID = typeof TID === 'undefined' ? 0 : TID;
         var thisHeight = typeof h === 'undefined' ? 400 : h;
         var thisWidth = typeof w === 'undefined' ? 700 : w;
         var thisTitle = typeof t === 'undefined' ? "_" : t;
         var thisDocument = typeof f === 'undefined' ? "faq.cfm?faqID="+thisID+"" : f;
         var thisModal = typeof m === 'undefined' ? true : m;
         ColdFusion.Window.create(windowName,
              thisTitle,
              thisDocument,
              {width:thisWidth,height:thisHeight,center:true,resizable:true,modal:thisModal,draggable:thisModal});
         //ColdFusion 9 bug fix
         ob = ColdFusion.Window.getWindowObject(windowName);
        ob.center();
         ob.body.applyStyles("background-color:#fff");
         ColdFusion.Window.onHide(windowName,destroyWindow);
    function destroyWindow(name){
         ColdFusion.Window.destroy(name,true);     
    edit_nu.cfm
    <cfset client.thisNav = trim(url.thisNav) />
    <iframe src="edit_nu2.cfm" name="NU_update" width="100%"
         marginwidth="0" height="100%" marginheight="0" align="top" scrolling="No" frameborder="0" hspace="0" vspace="0">
    Your browser does not support iFrame and cannot be used for this action.
    </iframe>
    edit_nu2.cfm:
    <cfoutput query="resultset">
    <cfform action="edit_nu2.cfm?nuid=#resultset.NU_ID#&amp;thisNav=#trim(url.thisNav)#" method="post" enctype="multipart/form-data" preloader="no" format="html" onsubmit="return getFileName();">
    <cfswitch expression="#val(resultset.active_ind)#"><cfcase value="1"><cfset variables.yesChecked = 1><cfset variables.noChecked = 0></cfcase><cfcase value="0"><cfset variables.yesChecked = 0><cfset variables.noChecked = 1></cfcase></cfswitch>
    <table width="100%">
         <tr>
              <td style="width:25%; text-align:right; vertical-align:center;">Page & ID: </td>
              <td style="width:75%; text-align:left; vertical-align:top;">#client.thisNav# - #resultset.NU_ID#      Active:<cfinput type="radio" name="active_ind" value="1" checked="#val(variables.yesChecked)#" /> Y <cfinput type="radio" name="active_ind" value="0" checked="#val(variables.noChecked)#" /> N</td>
         </tr>
         <tr>
              <td style="text-align:right; vertical-align:top;">Large HL: </td>
              <td style="text-align:left; vertical-align:top;"><cfinput type="text" name="large_headline" visible="true" style="width:98%;" value="#resultset.NU_large_headline#" maxlength="100" /></td>
         </tr>
         <tr>
              <td style="text-align:right; vertical-align:top;">Small HL: </td>
              <td style="text-align:left; vertical-align:top;"><cfinput type="text" name="small_headline" visible="true" style="width:98%;" value="#resultset.NU_small_headline#" maxlength="50" /></td>
         </tr>
         <tr>
              <td style="text-align:right; vertical-align:top; height:130px;">Image: </td>
              <td style="text-align:left; vertical-align:top;"><cfif isDefined("resultset.NU_large_image") AND len(resultset.NU_large_image) gt 0><cfset variables.imageData = resultset.NU_large_image /><cfset variables.thisWidth = 300 /><cfimage action="writeToBrowser" source="#ToBinary(variables.imageData)#" width="200" /><cfelse>None</cfif></td>
         </tr>
         <tr>
              <td style="text-align:right; vertical-align:top;">Upload/Replace: </td>
              <td style="text-align:left; vertical-align:top;"> </td>
         </tr>
         <tr>
              <td style="text-align:center; vertical-align:top;" colspan="2"><input type="file" name="NU_image" style="width:95%;" /><br /><input type="hidden" name="NU_image_name" /></td>
         </tr>
         <tr>
              <td style="text-align:right; vertical-align:top;">Article: </td>
              <td style="text-align:left; vertical-align:top;"> </td>
         </tr>
         <tr>
              <td style="text-align:center; vertical-align:top;" colspan="2"><cftextarea richtext="yes" name="article_content" tooltip="Content" value="#resultset.NU_article_content#" style="width:97%;" height="350"></cftextarea></td>
         </tr>
         <tr>
              <td style="text-align:right; vertical-align:top;">Inserted: </td>
              <td style="text-align:left; vertical-align:top; font-weight:bold;">#resultset.NU_inserted_by# on #DateFormat(resultset.NU_inserted_dttm,'mm-dd-yyyy')# #TimeFormat(resultset.NU_inserted_dttm,'hh:mm tt')# </td>
         </tr>
         <tr>
              <td style="text-align:right; vertical-align:top;">Last Updated: </td>
              <td style="text-align:left; vertical-align:top; font-weight:bold;">#resultset.NU_updated_by# on #DateFormat(resultset.NU_updated_dttm,'mm-dd-yyyy')# #TimeFormat(resultset.NU_updated_dttm,'hh:mm tt')# </td>
         </tr>
         <tr>
              <td colspan="2" height="*" style="text-align:center; vertical-align:top;"><cfinput type="submit" name="submitBtn" value="Update"></td>
         </tr>
    </table>
    </cfform>
    </cfoutput>
    I've got the form inside an iFrame, already.  If I open edit_nu2.cfm directly in a browser, it works with no problem.  But opening it in the JS created CFWINDOW prevents the contents of the input type="file" from being recognized.
    ^_^

  • My appstore n camera icon has gone..anyone can help me..i already try to go setting and restriction but did not works..

    My appstore n camera icon has gone..anyone can help me..i already try to go setting and restriction but did not works..
    I also cannot update ios..how to solve this problem..?

    Your going to have to perform a restore.

  • Silverlight 5 WebBrowser Control - Is the SL5 WebBrowser control is set to work in IE7 mode only? I have a 3rd party web site i'm hosting and now they will not work with IE 7 Compatibility mode. Looks like this control can't detect I'm setup for IE 9.

    Silverlight 5 WebBrowser Control - Is the SL5 WebBrowser control is set to work in IE7 mode only? I have a 3rd party web site I'm hosting and now they will not work with IE 7 Compatibility mode. Looks like this control can't detect I'm setup for IE 9. I'm
    running IE 11 with registry hack for IE 9. I think the SL5 webbrowser control is set to work only in IE 7. can some one verify this or tell me how to set the WebBrowser control up to run either IE8, 9, 10 or 11? I have same issue with machines running IE 8
    and above. This Silverlight 5 application is running out of browser with the elevated privileges (hack) and at test certificates install in proper stores. This application has been running for 2.5 years. Vender switch on some changes a couple days ago that
    broke this application. Help!!

    Hi,
    It seems there is nothing to do with IE mode.
    Please make sure your link still can be accessed.
    The WebBrowser displays HTML content in applications running in a Silverlight 4 or later out-of-browser applications or in Silverlight 5 in-browser trusted applications only.
    For more infromation,please check link below:
    http://msdn.microsoft.com/en-us/library/system.windows.controls.webbrowser(v=vs.95).aspx
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • HT201269 I am trying to remove the backup encrypt for my Iphone 4 but the itunes ask for the password and  basically I have not set any password before ...!!! Please note that I entered the password for my apple account and also it did not work, how i can

    I am trying to remove the backup encrypt for my Iphone 4 but the itunes ask for the password and  basically I have not set any password before ...!!! Please note that I entered the password for my apple account and also it did not work, how i can reset it?

    You can't reset it.  If you don't konw the password then you can't use that backup

  • Does not open default site.Needs retry in favorites. Back and forward arrows do not work

    Facebook is the defaulkt address but, when I open Firefox thw scrren is blank (bar are present, though). This happens after last review
    In addition, back and forward arrows do not work (this has always happened since Firefox 4 beta)

    * First to prevent interferences between current and Beta versions, use a specific [[Managing profiles|profile]] for Firefox 4.0 Beta. In your new Beta profile, you can recover all your customizations from your 3.6 profile. See [[Recovering important data from an old profile]].
    * Then, if it is not fixed, see [[Back and forward or other toolbar items are missing]].

  • XMLP 5.6.2 - Parameters -  Both Multi-Select and All-Select  Do Not Work

    Both Multi-Select and All-Select Do Not Work.
    What's up with this behavior?
    And when might it be fixed?
    BG...

    The Multi-Select is now working, not sure what I did wrong earlier. However the "Can select all" option when building the parameter does not work as advertised, though I was able to get around that as well.
    Create a Data Model
    select LAST_NAME, FIRST_NAME from SOME_TABLE where SOME_COLUMN =:SOME_VALUE
    OR
    select LAST_NAME, FIRST_NAME from SOME_TABLE where SOME_COLUMN in (:SOME_VALUE)
    Create a LOV
    Name = LOV_SOME_COLUMN
    Type = SQL Query
    select distinct SOME_TABLE.SOME_COLUMN as SOME_COLUMN from SCHEMA.TABLE
    Create a Parameter
    Identifier = PARM_SOME_COLUMN
    Data Type = String
    Default Value = NULL
    Parameter Type = Menu
    Display Label = LOV_SOME_COLUMN
    List Of Value = LOV_SOME_COLUMN
    Option
    Multiple Selection - Checked
    Can select all - Checked
    Refresh other parameters on change - Checked
    Then test your report. Select "All" from the LOV and click view. Result - No Rows Returned.
    Selecting a "Single" or "Multiple Values" values from the LOV does work.
    The way I am getting around the problem is to uncheck the "Can select all" and then manually select all the values in the LOV in order to get the "All".
    BG...

  • "backspace", "g" and "h" keys are not working.

    hello,
    my laptop is HP 450 and windows 7.it is one years old. i haven't spilled anyting on it or damaed it in anyway i can think of.
    suddenly the "backspace" , "g" and " h " keys are not working. 
    please help me, because i have to complete my university assignment as soon as possible.
    tank you,
    shehara

    Hi,
    While this could be a hardware issue, it's always worth trying the following.
    Open windows Control Panel, open Device Manager, expand Keyboards, right click the entry 'Standard PS/2 Keyboard' and select Uninstall.
    Shutdown the notebook.
    Then unplug the AC Adapter and then remove the battery.  Hold down the Power button for 30 seconds.  Re-insert the battery and plug in the AC Adapter.
    Tap away at the esc key as you start the notebook to launch the Start-up Menu and then select f10 to enter the bios menu.  Press f9 to load the defaults ( this is sometimes f5, but the menu at the bottom will show the correct key ), use the arrow keys to select 'Yes' and hit enter.  Press f10 to save the setting and again use the arrow keys to select 'Yes' and hit enter.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Project Server 2010 - Project Permissions - Users and Groups filter is not working

    Hi,
    While giving permissions from project center ribbon on a project - Users and Groups filter is not working, we are not able to filter any user.
    I am not sure why this error is occurring  i tried giving permissions by opening the project  but still the same filtering is not happening. Below is the screen shot
    We have installed Service Pack 2 and June 2014 CU recently will this effect ?
    Can any one throw some light on this??
    Geeth If you feel that the answer which i gave you is Helpful please select it as Answer/helpful.

    Hi Geetha,
    Which IE version are you using? First I'd try to add the URL to the compatibility mode sites, then to the trusted sites (if it is not done already). Then I'd try to set the default browser as IE8 or 9 (pressing F12, developer tool).
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Purchase Order Goods Receipt quantity tolerance setting not working.

    Team,
    We are using the IS-Oil solution, ECC 6.0 REL 605 SP LEVEL 009 .
    The issue that I have is as follows:
    Purchase Order Goods Receipt quantity tolerance setting not working, I had set up a 10% tolerance on QTY received in the GR process via the PIR and also the Purchase Value Key in the  material master and also changed the message to a warning in OMCQ for message number M0722.
    I  had performed a similar configuration and master data maintenance on a different NON IS-OIL client install and it worked fine.
    I believe it is the IS-OIL component in the Inventory update portion of the GR process that is causing the error.
    I have searched for OSS notes, however they mention that there is no solution.
    Setting the PO line item as Unlimited will not be best practice for the business and will not be used.
    Has anyone come across this issue? and how was it resolved, your help and guidance will be greatly appreciated.
    Thanks

    Hello,
    Please check the Tolerance levels in O588 
    Also you can use the BAdI OIB_QCI_ROUND_QTY: A new method, CHECK_TOLERANCE
    Best Regards,
    R.Brahmankar

  • With version 5 of Firefox, if I open more than 1 session, most of the time I cannot see anything in the navigation bar and my back and forward buttons do not work.

    I open 1 session of Firefox 5.0.1 and everything seems to work fine. Then I open a second session of Firefox and most of the time the navigation bar does not show the page that I am on and the back and forward buttons do not work. When this happens, the first session always remains working. I am an internet marketer so I have at least 2 or 3 sessions going at any given time.

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • A very good friend of mine dropped her iphone into water and now it is not working.Her husband recently passed away and text messages from him and from well wishers after his decease are feared lost. Is there any way to retrieve them?

    A very good friend of mine dropped her iphone into water and now it is not working.Her husband recently passed away and text messages from him and from well wishers after his decease are feared lost. Is there any way to retrieve them?
    I suggested contacting Compub in Nassau St as the info is priceless and worth the trouble of trying to regain?
    Any thoughts? The poor lady is very distress

    If she has backed up her iPhone she can replace that iPhone and set up the new iPhone from her backup.
    You can put the iPhone that went into water into a plastic baggie with either new silica gel packets (preferred) or raw rice and let it sit for  4 - 5 days. After that time remove the phone and connect it to power for at least a half hour. While it is still connected to power reset it by holding down the power and hold button, wait for the Apple logo then let go of the buttons. Might take several tries. If it revives immediately back it up.

Maybe you are looking for

  • Wireless HP Office Jet Pro 8500 - Cannot scan to computer

    I am running a HP Office Jet 8500 Wireless and cannot "scan to computer".  When I select "scan to computer", I receive a message (on the printer face) that says "Refer to device documentation to troubleshoot".   I have done everything in the troublsh

  • Some background processes getting killed abruptly

    Hi, We have an E-Biz database and sometimes users complaint that some of the forms/JSP pages are not working fine. When i check the alert log, i find the following error messages which are marked as non critical. Thu Oct 21 06:42:41 2010 Non critical

  • What todo with those who keep on answering basic questions - Your thoughts?

    Hi Experts, I have been active in ABAP Development Forum and usually hit the abuse button around 50 times a day. And most of the cases is for posting queries which are very basic and can be searched in SCN or in any Search engine. Example: The specif

  • Flash Catalyst CS5 FXG Extension for Photoshop CS5

    Hello, I'm having an error message (you do not have the appropriate permissions required to perform the operation..) when i install the FXG extensions for Photoshop CS5. I'd like to use the Round-Trip-Editing function and it asks me to install the FX

  • Photoshop elements 7 and the patch for windows 7

    I have installed the patch on my hp laptop for windows 7 but photoshop elements 7 does not function properly and close the program.  any suggestions?