Apply ViewCriteria not added to the request

JDeveloper 11.1.2.2

I have a ViewCriteria which is supposed to be applied to a ViewObject, but I get an error "attempt to define a parameter name that does not intervene in the sql code.  I know that the ViewCriteria is applied, but for some reason, the 'criteria' in the ViewCriteria are not added to the query that is sent to the database.

Here's the method where the error occurs:

public List<SelectItem> getCategorySelectItems()
    {
        categorySelectItems = new ArrayList<SelectItem>();
        
        BindingContainer bindings = ADFUtils.getBindingContainer();
        DCIteratorBinding dcIteratorBinding = (DCIteratorBinding) bindings.get(ITERATOR_NAME_CATEGORY_SITEID_PHASEID);
        MytrainCategoriesVOImpl mytrainCategoriesVO = (MytrainCategoriesVOImpl) dcIteratorBinding.getViewObject();
        
        mytrainCategoriesVO.setbind_SiteId(GuidoUtils.getSelectedSiteId());        
        mytrainCategoriesVO.setbind_PhaseId(selectedPhaseId);
        
        ViewCriteriaManager vcm = mytrainCategoriesVO.getViewCriteriaManager();
        String[] vcs = vcm.getApplyViewCriteriaNames();
        for(String vcname : vcs){
            logger.finer("Applied ViewCriteria: " + vcname);
        }
        
        mytrainCategoriesVO.executeQuery();
        
        while(mytrainCategoriesVO.hasNext())
        {
            MytrainCategoriesVORowImpl mytrainCategoriesVORow = (MytrainCategoriesVORowImpl) mytrainCategoriesVO.next();
            SelectItem newSelectItem = new SelectItem(mytrainCategoriesVORow.getCategoryId(), mytrainCategoriesVORow.getTitle());
            categorySelectItems.add(newSelectItem);
        }
        
        return categorySelectItems;
    }

The debugging part where I write on the getApplyViewCriteriaNames() shows that the criteria of the "site_id" and "phase_id" applies, but does not query SQL that is sent to the server contain the ' where phase_id =: bind_PhaseId "section, even if the query contains the" where site_id =: bind_SiteId "section.

Any ideas why it would apply a ViewCriteria, and not the other, even if the ViewCriteriaManager said that the two criteria are applied?

One problem I have seeIs you do all this in the view controller, while you should do it in the model layer. Depending on how the view criteria is build (ignore nulls, required binding variable) the sql generator fails to messages of where clause.

What might happen is that one of your bind variables are set to null without your knowledge. To be sure that your variables are set correctly, you must save the message to the executeQuery method. an example on how to do this can be found here http://wp.me/pcBZk-2d

Third method exports the query and its parameters.

Timo

Tags: Java

Similar Questions

  • Tried to use iTunes to restore iPhone 5s, but the 17 error happens: "this device is not eligible for the requested build". No problem to enter the mode of recovery, apple server and the internet. Help?

    I tried to use iTunes to restore my iPhone 5s, but the 17 error happens: "this device is not eligible for the requested build". No problem to enter the recovery mode, connection to the apple Server (the software update download was complete) and internet connection. Help? I do an Apple store to restore?

    Error 17 refers to network problems. Take a look at these articles and try the suggestions:

    Solve the iOS update and restore error in iTunes - Apple Support

    Get help with iOS update or restore errors - Apple Support

  • Is it possible to use the getObjectsUnderPoint of a DisplayObject that is not added to the display list?

    My situation:

    I have a DisplayObject (objA) added to the display list and a DisplayObjectContainer (objB) not added to the display list. When objA receives a MouseEvent.CLICK event, is it possible to use the localX and localY to the event of objA to get objects under the same point in objB?

    Sample:

    var objA:Sprite = new Sprite();

    objA.graphics.beginFill (0);

    objA.graphics.drawRect (0, 0, 100, 100);

    objA.graphics.endFill ();

    addChild (objA);

    var objB:Sprite = new Sprite();

    var childA:TextField = new TextField();

    childA.text = "This is the child.";

    objB.addChild (childA);

    objA.addEventListener (MouseEvent.CLICK, handlerClick);

    function handlerClick(e:MouseEvent):void {}

    var pt:Point = new Point (e.localX, e.localY);

    var objs:Array = objB.getObjectsUnderPoint (pt);

    trace (objs. Length);

    }

    so your test/trace environment can deliver it.

    Use the following code, publish your swf file and test the swf file in your standalone player (or publish a html and swf and test it in your browser).

    package {}

    import flash.display.Sprite;

    import flash.events.MouseEvent;

    to import flash.geom.Point;

    import flash.text.TextField;

    SerializableAttribute public class extends Sprite {Main2

    private var _objA:Sprite = new Sprite();

    private var _objB:Sprite = new Sprite();

    private var childA:TextField

    public void Main2() {}

    _objA.name = "a";

    _objA.Graphics.beginFill (0xdddddd);

    _objA.Graphics.drawRect (0, 0, 100, 100);

    _objA.Graphics.endFill ();

    addChild (_objA);

    _objB.name = 'B ';.

    _objB.Graphics.beginFill (0xdd0000);

    _objB.Graphics.drawRect (0, 0, 100, 100);

    _objB.Graphics.endFill ();

    _objA.addEventListener (MouseEvent.CLICK, handlerClick);

    Stéphane = new TextField();

    childA.name = 'tf ';

    _objA.addChild (childA);

    childA.multiline = true;

    }

    private void handlerClick(e:MouseEvent):void {}

    var pt:Point = new Point (e.localX, e.localY);

    var objs:Array = _objB.getObjectsUnderPoint (pt);

    childA.text = "";

    for (var i: int = 0; i

    childA.appendText(objs[i].name+"\n");

    }

    }

    }

    }

  • Photo not added to the quick Collection when you click marker

    Recently I have not been able to add photos to a quick collection, when you click on the marker. The marker provides information, but the photo does not appear in the quick collection. This problem occurred at the same time, I couldn't remove the photos in the quick collection that had been added. I had to remove these photos using the menu system. I've upgraded to the new version of Lightroom 5 yesterday thinking that would solve the problem. I still have the problem so I wonder if this is a setting that I missed. Quick collection markers button is enabled in the display options and the button and change when you click them... The thumbnail of the photo is not added to the quick collection.

    It seems that you no longer have the quick Collection, referred to as a collection of target. Is there a small symbol '+' next to the name of the collection? If this isn't the case, you have another collection in your designated collection list.

    To fix, right-click the name of the quick Collection and click the option "set as target Collection.

  • Ideas re: ' Connect-VIServer: could not connect using the requested protocol "failure

    I know, it's a matter of weakness, but I hit the wall on this one. I've even got desperate enough that bouncing private LuD, and I tried everything we discussed, but I'm still @ deadlocked.

    I developed and tested several scripts that I am finally ready to go with Prod.

    I get this error when I am trying to connect to Vcenter server or host of the cmndline of vitoolkit (and obviously in scripts).

    «Connect-VIServer: could not connect using the requested protocol.»

    I'm runing the vitoolkit FROM the server VCenter, so I wouldn't exepct the local to be a problem connection. I expect calls the ESX servers as questions) (we have several firewalls in the game). But even once, on-site I would not expect a problem.

    I checked my ports of VC and even more precisely called listener in the connect command, but it does not help.

    I tried to watch the ports through various lines of command, but I don't see anything.

    Any suggestions?

    Add - confirm: $false and it won't be quick.

    =====

    Carter Shanklin

    Read the PowerCLI Blog
    [Follow me on Twitter |] http://twitter.com/cshanklin]

  • media center is not AutoSave at the request of programs

    What time for media center of regular program does nothing. need to start manually.

    Hi Webber,

    Thanks for choosing Windows and thank you for providing an opportunity to help you.

    According to the description, it seems that you are having problems with the recording in Windows Media Center.

    Your show might not have been recorded for various reasons. To check the history of recording to find out why the show could not have been saved, follow these steps:

    a: On the start screen, go to TV + movies , clickrecorded tv , click the view in the application and then click on story.

    b: To organize the list, click sort by Date sort by status and sort by title .

    c: Use the arrows on the screen to scroll through the list. The status for each show is listed next to the title of the following: Recorded, not recorded, Deleted, canceled, Preempted, partial or bad Tuner.

    d: For a more detailed explanation on the State of recording the show, click on the title of the show.

    Here are the reasons why a show can't save:

    • There was a conflict with another record with a higher priority. You can see more information about priorities earlier in this topic.

    • A tuner was not available when the show had to register.

    • There is no available disk space and no records could be removed to create more space to record. To learn how to delete records, see management of recorded TV shows: frequently asked questions .

    • There are no offers updated Guide for scheduled recording. Make sure that the latest Guide data is downloaded Windows Media Center. For more information, see troubleshooting problems Guide download .

    • Restrictions that were set by the broadcaster or the creator of prohibited content the show being recorded.

    • The show was previously saved. Windows Media Center does not record a show of a series if she has already recorded or deleted in the last eight weeks.

    • You have reached the limit of how many records are kept for a series. Remove the other records for the series or increase the limit of records how can be kept for a series. To learn how to manage your recordings, seemanagement of recorded TV shows: frequently asked questions .

    • The TV station changed the hourly number or channel for a specific network or the show didn't air.

    • There was no TV signal because the channel was not available, the TV signal has been disconnected or the tuner has been disabled.

    • Your computer is turned off or lost power during the time that the show was scheduled to record. Your computer must be on or standby mode, hibernation or Away to record a program successfully.

    • If you have a set - top box, the infrared (IR) cable may have been disconnected, including preventedWindows Media Center from changing the channel to start the recording.

    For more information, access the link which is mainly used for Windows Vista but that applies both to Windows 7 below.

    A problem of recording TV on your computer

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-recording-TV-on-your-computer

    Answer to us if you are having problems with Windows Media Center or any other issue of Windows, and I'd be happy to help you.

    Good day!

    Hope this information helps.

  • Metadata not added to the page source

    I spent hours to update each dialog box page darned on my site, which has versions of phone, Tablet and desktop.  Each page has its own title (which added to the source code), keywords and description (or are added to the source code.  I found that the metadata did not appear in the source when I began to submit to search engines and was immediately informed that my site has no description of metadata or keywords.  I went to the http://truehdfitness.com/site and seen my source code.  Not a single keyword or an anywhere.on description

    What the devil I'm doing wrong?  I could have created the code of metadata in a Notepad file and made a copy page for versions of html on my site, but I don't want Muse clear every time I do a little change on the site... so, how in the world to get to add keywords and descriptions to the source for pages?

    Thanks for your help!

    Deltombe

    Okay, I don't know what happened, but some of my pages stored metadata and some did not.  Whatever it is, I saw that hand over the information in the page properties box, save the site, and do an ftp transfer (after each page is set) is loading the metadata about the site.  There may be a workaround, but it works.

  • Purchase order number do not go with the request while showing on the form?

    Hi all

    I create a purchase order and save my work. I know, that this base table is po_headers_all
    When I po since the request form, shows. but with the next request, there is no record

    Select * from po_headers_all where po_header_id = 1704;

    Note: po is just save but not submit it for approval.

    Thank you
    Yoann

    Maybe you wondering about the wrong column?

    Try:

    Select * from po_headers_all where segment1 = "1704";

  • Bullet image file not added to the Webhelp folder

    I just updated an older project to my current version of RoboHelp 8. The gif file I use for an image of the ball is not be added to the folder Webhelp when I generate Webhelp.

    The image is correctly listed in the css (style list: url ("Bullet 3.gif")) and in the style of list of RoboHelp (LI + list style: url ("Bullet 3.gif").) It also seems to have been added to the images of the project when I look in the image list on the pod project manager.

    The ball is displayed correctly on the drawing page and when I click on the preview of glasses icon.

    I tried to add the ball to the images on the Image dialog box and re-add the navigation for this style in the Styles dialog box.

    I suspect, there could be a problem in the previous version when the image has been added, not in the project, but a different folder, folder but the file is now in the project folder and I went through it in this place, everywhere wherever I can think of to convince Robohelp to the location of the current file.

    Anyone know how can I get RoboHelp to add this file to the folder of Webhelp?

    Thank you

    John

    Hello

    Maybe it will help if you try to add the Image to the list of files of luggage. Try right click on the file folder of luggage (in view of the traditional project manager) or the project files folder (in the most recent global view) and choose new > file of baggage. Then choose the image that seems to be missing.

    Even if it is already there, it doesn't hurt anything to include it as baggage.

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7 or 8 times now - $24.95!

    Adobe Certified RoboHelp HTML Training

    SorcererStone blog

    RoboHelp EBooks

  • Users blocked in the cloud of GoTo connector, not added to the list of registered

    I use the connector of GoTo cloud for a few months with no problems and today I noticed that eight users are currently standing on the step of cloud connector and not crossing is not to the next step and therefore are not registered for the webinar in GoTo.  I double checked the time configuration and evaluation on the front of the steps, and it is not all errors.  No idea why this happens and the troubleshooting of what I should try? I had to change my password in Eloqua yesterday and also wanted to confirm that it could not cause the connection GoTo to stop working?

    Thank you
    Rachel

    cloudconnector_error.png

    Hi Rachel,

    If you have changed your password in Eloqua, but not in the connector, that would cause.  Just go in the connector and the change of your password as well as members should begin crossing again.

    T.J.

  • Email accounts not added on the Meadow

    This is not an e-mail account that I added on my pre.

    I'm checking emails on my live (formerly hotmail) account. I am able to get on the account, but when I press the email to open it nothing happens. I am able to disconnect, go through the different folders and boxes, but not read the emails. All solutions?

    Hello. Welcome!

    Your problem can be solved in the following thread - there a few parameters to configure manually to Hotmail, as well as a few warnings on the behavior of message.

    http://forums.Palm.com/Palm/board/message?board.ID=webossoftware&message.ID=209

    Let us know if it works.

  • Homepage is CNN. When Firefox is launched, says TAB not FOUND. The requested object does not exist on this server. The link you followed is that is exceeded in

    Cannot get to CNN.com at all. I can get to CNN.com if I use IE. This problem just started. I have already removed/reinstalled Firefox today. He worked for a while and then when I restart/shutdown, the problem is back.

    I called AT & T even if they are not my provider & CSR said someone else had called today and said they had the same problem. AT & T wouldn't let me speak to technical support. I called my provider and they do not help because I could get on the Internet.

    All of a sudden, when I went down to the current provider w / my phone, I restarted my PC (for the umpteenth time) and VOILA! My problem is solved. Someone did something, but I'll never know.

    Thanks for the help.

  • When click on my icon of firefox, I get "404 Not Found. The requested URL was not found on this server"worked fine until yesterday.

    I don't know what other information you give. I can't go to my start page for firefox. Firefox has not been deleted. I downloaded and reinstalled several times and still get the same message when I try to open it.

    The local part (en-US) seems to be missing from the URL:

    The current versions of Firefox use the build-in on: home page to home as shown above, so you can change the home page to this URL.

  • Downloaded CD not added to the title of the artist (iTunes 12.3)

    I recently downloaded a CD.  However, the CD will unite with the other albums by the same artist.  I need to change the information on the CD because he arrived with missing information.  All information fields have the same info (which means the downloaded CD and other content), artist of the album, artist, etc..  How can I fix?

    A little confused by what you mean by downloading a CD. Did you buy the album on iTunes or did you import you a physical CD in iTunes. If you have imported the CD into iTunes, then when you import iTunes contacted a database of third-party called Gracenote that maintains information about the albums. This information can be sometimes inaccurate. To change the information for the right click simply whole album (Ctrl-click) the album icon and click Info. You can change information for the CD it and it will be applied to all the songs on the album. You can also select all the individual pieces at the same time and then edit the information that will apply to selected all the songs. You can change the name of the album, artist, genre, art, etc..

  • Acrobat pro not added to the digital river

    We bought level 1 VIP Acrobat Professional of Digital River and it is not associated with my account for deployment.

    We contacted Digital River and they referred us to you. Can you please help?

    I see that you have acrobat pro level 1 access, please contact Contact Customer Care - cloud creative teams , they will help because there could be a problem in the commissioning.

    I you send another Adobe ID with which you access the VIP by personal email.

    Concerning

    Baudier

Maybe you are looking for