Why String Search in not working in ADF.?

Hi,
    I've created application in ADF with Search Options. Search Operation is working for all the Integer Values in that page but its not working for String Values.
I dont know why its not able to search String Values.
My AppModule bean Code :
                package model.portfolio.portfolio.am;
import model.portfolio.portfolio.am.common.PortfolioAppModuleAM;
import model.portfolio.portfolio.view.ResourceViewChildObjImpl;
import oracle.jbo.VariableValueManager;
import oracle.jbo.ViewCriteria;
import oracle.jbo.server.ApplicationModuleImpl;
import oracle.jbo.server.ViewLinkImpl;
import oracle.jbo.server.ViewObjectImpl;
public class PortfolioAppModuleAMImpl extends ApplicationModuleImpl implements PortfolioAppModuleAM {
     * This is the default constructor (do not remove).
    public PortfolioAppModuleAMImpl() {
    public void applyVCforGlobalSearchPortfolios(String theString){
        ViewObjectImpl vo = getPortfolio1();
        ViewCriteria vc = vo.getViewCriteria("PortfolioVOCriteria");
        System.out.println("On Criteria");
        vc.resetCriteria();
        VariableValueManager vvm = vc.ensureVariableManager();
        System.out.println("On String");
        vvm.setVariableValue("globalSearchString", theString);
        System.out.println("After String");
        vo.applyViewCriteria(vc,true);
        vo.executeQuery();
*All Getters and Setter of all VO and VLs****
My Query created in View Criteria :
( (UPPER(SHORTNAME) LIKE UPPER( :globalSearchString || '%') ) OR (UPPER(DESCRIPTION) LIKE UPPER( :globalSearchString || '%') ) AND (PROGRAMMES_COUNT = :globalSearchString ) OR (KK_COUNT = :globalSearchString ) OR (KPI_KRA_VALUE = :globalSearchString ) )
One more interesting thing in After Creating the View Criteria If i try to Test this Query, Its giving me error msg as
"Cannot complete query to determine the view attributes.  Either the query is invalid or timeout occurs.  Please revise the query or create the view attributes manually.
"com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':globalSearchString || '%') ) OR (UPPER(QRSLT.DESCRIPTION) LIKE UPPER( :globalSe' at line 1"
I don know why... Can somebody please help me?
Im using Jdev 12C

Binding variables will be different from oracle database and My Sql database.
Oracle database use this (:) for defining bindVariable but in My Sql use this (?)
Try to remove the view criteria which you define in View Object and you can make it programmatically like this:
    ViewObject vo = getPortfolio1();
    ViewCriteria vc = vo.createViewCriteria();
    ViewCriteriaRow vcr = vc.createViewCriteriaRow();
    vcr.setAttribute("Attribute1", value);
    vcr.setAttribute("Attribute2", value);
    vc.add(vcr);
    vo.applyViewCriteria(vc);
    vo.executeQuery();

Similar Messages

  • Why my search suggestion not working in Mail and Finder?

    After upgrade to Lion, I try the "search suggestion" in both Finder and Mail. but it didn't work, can any body tell me why? thank you!
    It should be like this:
    but mine is like this:

    LeesaHeeley wrote:
    When I go to settings/iTunes App Store my Apple ID is not there. When I enter my ID and password it does not save or link to account.
    When fist setting up your new iphone you will be asked to log in with an apple id and password. If this did not happen you can then do as you suggested going to settings to itunes and app store and add your apple id login. This apple id login must have already been created for the iphone to accept it. If this apple id is already created but is not being accepted by your iphone you then should shut down your iphone and restart the device.
    Good luck.

  • Why is my microphone not working and wifi not being able to search for connections.

    somebody please help. why is my microphone not working? i have replaced the charging port connector, and people cant hear me still. and my wifi ,even though its on, it still unable to search for conections even after i have repladed the wifi antenna. what can this be or what parts must i change out inorder to work.

    i appreciate for the response, ummm, ill check the ring on the shield(is it the shield on theupper left side of the iphone 4 that protects all the ribbons?) and actually is backwards with the speake. i have two scenarios. on one iphone4, people can hear me, but when i put it on speaker p hone, they can't hear me. the other iPhone 4, people cant heare either in speaker mode or regular call. i have replaced.the speaker box, i have replaced.the mic/cable connector as well and nothing on either cases. for sure.there is no water damage. what can ot be?

  • RoboHelp 10 WebHelp search feature not working?

    Hi all,
    I am using the Adobe Technical Communication Suite 4 and cannot get RoboHelp 10 to generate a WebHelp product with search capabilities.
    I have created a RoboHelp 10 WebHelp project and imported FrameMaker 11 files.
    Everything seems okay, but when I search in Internet Explorer 10, nothing happens.  I can even be on the same page as a term and enter the term in the box,
    but then nothing happenns. I also tried:  Opera, Firefox, Chrome and Safari browsers and still no results in the WebHelp search results.
    Actually, I get one word by default and that word is:  "null".
    Any idea on what is causing this?  I have a deliverable due soon, and I need to get this search capability working.
    Thanks in advance for your suggestions.
    I am using the latest patch too - RoboHelp 10.0.0.287
    Regards,
    Jim

    Hi Jeff,
    Thanks for the reply.  I am not sure if it is Java, although I did download Java to make sure I had the latest update.  I am running on a Windows 7 64 Bit Dell Laptop with Adobe TCS 4.
    I just saw a different post - but related to this post on the topic and I think it has to do something with the XML files that are created during the normal generation process.
    I have a feeling that there is something wrong with my XML files and the reason I say that is because I can generate one of the sample RoboHelp projects to WebHelp and then use IE 10 to search and the results
    come up right away, but when I do a WebHelp generate on my project the search does not work.
    Here is that related thread:
    http://forums.adobe.com/thread/798369
    Search Error: Failed to initialize database
    Mar 1, 2011 12:33 PM
    That thread dealt with RoboHelp 8 and I am using RoboHelp 10, but I think the problem is probably the same.
    My questions are as follows:
    I have a customer deliverable on Monday with several hundred files and a search mechanism that does not work at all.  Can I copy the search mechanism from the sample project and then put it into my project?
    Are the XML files generic or specific to each project?
    How many XML, Javascript and other RoboHelp type files are used to make the search functionality work?  I was thinking of populating one of those sample files, that has already been started with my files to see if that would get things going in the right direction - with the idea of removing all the sample files from that project and replacing them with my files, but, I have over 400 files, including references to foldout drawings and vendor manuals (baggage files) and it would probably take too much time to make that happen.
    With that said, if you or anyone else has ideas on how I could get this search engine working, I would really, really appreciate it.
    My current file structure is like this:
    Main Project Folder
        !ScreenLayout
        My Project File1
        My Project File2
        My Project File3
        resource
        whdata
        whgdata
        whxdata
        Frnt_Cov.htm
        Frnt_Cov_csh.htm
        Frnt_Cov_rhc.htm
        All RoboHelp graphics, javascripts and .htm files
    There does NOT seem to these folders that are in the sample:
    !Language!
    !SkinSubFolder!
    !SSL!
    The !ScreenLayout! folder is the only one present.  Does this have anything to do with only having MultiScreen HTML5 and WebHelp (Primary Layout) for my project settings?
    Again the most notable difference I see, is between the folders NOT included in my project (!Language!, !SkinSubFolder! and !SSL!).  I am not sure why these folders are not included in WebHelp.
    Thanks for taking the time to read this, as well as for any suggestions that can be offered.  I really need to get the search feature working by tomorrow.
    Regards,
    Jim

  • Why does quicktime does not work on os lio

    why quicktime x does not work on OS Lion

    QuickTime does work under 10.7, however you may want to check that you're opening the newest copy of it by going to your Applications folder and opening it from there.
    If you keep having trouble with opening it, please let us know what error you might be getting. QuickTime X will open with just a menu bar, then you can go to the file menu and choose to open any file you wanted to open, or choose one of the screen or audio recording options.

  • SharePoint foundation 2013 Search is not working

    Hi, Search was working 3 days back, but today its not working. So
    1. I Recreated Search Service Application
    2. Created Content Source and set full crawl.
    3. And service application is associated to the web application also.
    4. All Application pool id are running.
    5. Created Search Site collection, even though search is not working.
    The error message i got was shown below. How to resolve this issue. An help/thoughts.

    Try to use word Home in search
    Do we see site getting crawl in crawl logs
     Navigate to the site for which you want to control the Web Parts in search results.
    Click Site Actions, and then click Site Settings.
    Under Site Administration, click Search and offline availability.
    In the Indexing ASPX Page Content section, under
    This site does not contain fine-grained permissions. Specify the site’s ASPX page indexing behavior , 
    Always index all Web Parts on this site
    http://office.microsoft.com/en-in/sharepoint-server-help/enable-content-to-be-searchable-HA010379092.aspx

  • Search is not working in HCM9.1 , pt8.52 after install

    Hi I just installed HCM9.1 with Peopletools 8.52 on windows xp 32bits with Oracle 11g. This is my first install ever.
    When I login online the search does not work (when i click search on any page that has a search record it just shows that progress gif image but nothing happens.)
    I logged in using PS/PS
    any ideas of what I did wrong during the installation?
    These are the steps I followed.
    1-Installed Oracle11g
    2-Installed web logic
    3-Installed Tuxedo and defined TUX_DIR
    4-Installed Peopletools in C:\pt8.52 and HCM9.1 in c:\hcm9.1 nad Verity
    5-Manualy created a database called HRSD using initHRSD.ora and configured the listner and defined ORACLE_SID , ORACLE_HOME and created the spfile.
    then ran the scripts in the documentation to create namespaces , roles , dbowner etc
    6-configured the application designer
    7-loged into datamover and installed a demo hcm9.1
    8-ran grant.sql
    9-ran pt851u.sql and pt852u.sql.
    10-configured the application server and booted it.
    Created a new domain and configured it and started it. 8 processes start
    11-configured the web server and started the PIA.
    12-loged in successfully but the search does not work
    Edited by: user2003312 on Feb 17, 2012 7:42 AM

    Hi,
    First of all I am very surprised you were able to get so far with the installation, since PeopleTools 8.52 is not certified on 32 bits systems and definitely not on Windows XP.
    However,
    Your are trying to install HCM 9.1 which is delivered with PeopelTools 8.50 and you are installing PeopleTools 8.52 so, you should have run the scripts as defined in chapter Updating PeopleTools System Tables in the installation manual to update your HCM 9.1 to PeopelTools 8.51.
    Did you run these scripts?
    If not please complete these steps as described in the installation manual.
    And I also do not see you mention you have installed any PeopleTools patch. We are currently at 8.52.05. It is common at installations to patch PeopelTools to the last patch level.
    Hakan

  • Why Dynamic Parameter is not working, when i create report using stored procedure ?

    Post Author: Shashi Kant
    CA Forum: General
    Hi all
    Why Dynamic Parameter is not working, when i create report XI using stored procedure ?
    Only i shaw those parameters which i used in my stored procedure, the parameter which i create dynamic using stored procedure
    is not shown to me when i referesh the report for viewing the results.
    I have used the same procedure which i mention below but can not seen the last screen which is shown in this .
    ============================================================================================
    1. Select View > Field Explorer2. Right-click on Parameter Fields and select New from the right-click menu.3. Enter u201CCustomer Nameu201D as the name for your parameter4. Under u201CList of Valuesu201D select u201CDynamicu201D5. Under the Value column, click where is says u201Cclick here to add itemu201D and select Customer Name from the drop-down list. The dialog shown now look like the one shown below in Figure 1. Click OK to return to your report design.
    Dynamic Parameter Setup6. Next, select Report > Select Expert, select the Customer Name field and click OK.7. Using the drop-down list beside select u201CIs Equal Tou201D and using the drop-down list, select your parameter field (it should be the first field). 8. Click OK to return to your report design and see the parameter dialog.The parameter dialog will appear and show you a dynamic list of values that is updated each time your run your report. It couldnu2019t be easier! In our next tutorial, we will be looking at how to use this feature to create cascading parameter fields, where the values are filtered by the preceding selection.
    Dynamic Parameters in Action
    My question is that whether dynamic parameter is working with storedprocedure or not.
    When i added one table and try to fetch records using dyanmic prameters. after that i am not be able to find the dynamic parameter option when i referesh my report.
    One more thing when i try the static parameter for my report, the option i see when i referesh the screen.
    Please reply soon , it's urgent
    Regards
    shashi kant

    Hi Kishore,
    I have tested the issue step by step by following you description, while the first issue works well in my local environment. Based on my research, this can be caused by the lookup expression or it indeed return Male value based on the logic. If you use the
    expression below, it will indeed only return the Male record. So please try to double-check the record in the two datasets and the expression in your environment:
    =lookup(first(Fields!ProgramID.Value,"DataSet1"),Fields!ProgramID.Value,Fields!Gender.Value,"DataSet2")
    As to the second issue, please try to use the following expression:
    =Count(Lookup(fields!ProgramID.value,fields!ProgramID.value,fields!Gender.value,"DataSet2"))
    Besides, if this issue still exist, in order to trouble shoot this issue more efficiently, could you please post both the .rdl  file with all the size properties to us by the following E-mail address?  It is benefit for us to do further analysis.
    E-mail: [email protected]
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Product search is not working in other JSP inj b2c application

    hi,
    I had one requirement that we have to bring product search from header jsp(b2c/navigationbar.inc.jsp) to CategoriesB2C.inc.jsp.
    i had copied all related code from last jsp.but search is not working.
    i had modified only jsp.just guide me do we have to modify any other file or .do class file.
    Thanks in advance.
    Jayesh Talreja

    Hi Jayesh,
    When you copy <td> element of product search from "navigationbar.inc.jsp" to "categoriesB2C.inc.jsp" you also have to copy
    <form> tag and necessary java script function from "navigationbar.inc.jsp" file.
    Read carefully "navigationbar.jsp.inc" file and understand how it is working in it and then copy necessary code from this file to "categoriesB2C.inc.jsp" file
    I tried to post code here but some how it is throwing an error while replying you. Sorry.
    I hope this will help you to resolve your issue.
    Regards.
    eCommerce Developer

  • Why does Acrobat suddenly not work on my Mac (won't open pdf files from a web page), yet I can open them from my iPhone? Everything worked fine yesteray.

    Hello:
    I have a Mac running OS 10.8.5 and I use Acrobat Pro and Acrobat Reader. Today for some reason, any time I try and access a pdf file from a web page, it won't open. I get a blank window. PDF files already on my computer open fine and I can create PDF files from Word docs, but I can't download or view any pdf file from any web page. Strangely, PDF files on web pages open just fine on my iPhone.
    I checked that both my copy of Acrobat Pro and Acrobat Reader are up-to-date. They are.
    I checked that my copy of Firefox is up-to-date. It is. And nothing changed with Firefox within the last 24 hours.
    I am a humble computer end-user. I am baffled as to why this would suddenly not work. I have not changed any settings, etc. Any help or suggestions would be greatly appreciated.

    Thank you.
    I checked your instructions you sent and as far as I can tell all of my settings, etc for Firefox (plugin updates and preferences) are correct but I am having the same problem.
    However, everything works in Safari. I don't have time to attempt to diagnose why Firefox no longer works. I will just switch to Safari.
    Many thanks.
    Charles
    Charles Deister
    (503) 949-5762
    [email protected]<applewebdata://81CB4171-226F-49DF-BD59-A38A7360B3FB/[email protected]>
            PO Box 5032
         Salem, OR 97304
    http://www.pilotstrat.com<http://www.pilotstrat.com/>
    This transmission (including any attachments) may contain confidential information, privileged material, or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

  • Search is not working for subsites

    hello,
    SharePoint search is not working for any of the subsites and it is just working for top level site. I can see that all the subsites is visible in search. Any idea?
    interesting thing is, it is not working just for one site collection subsites. If i do search in subsites of another site collection of the same web application than it is working fine and it is working fine for all ohter web apps too.
    Please help.
    Thanks,

    Hi,
    I agree with Chris, please check following in your sub site: http://site_name/subsite_name
    1. Click on Site Actions -> Site Settings ->Modify All Site Settings
    2. Click on Search visibility.
    3. Check All this web to appear in search results.
    4. Browse to the document library or list  in your sub site.
    5. Click on Settings->Document Library Settings or list settings.
    6. Click on Advance settings.
    7. Check the last item - All items from this document library to appear in search results.
    Hope this helps.
    Rock Wang
    Rock Wang– MSFT

  • Why Oracle 8i is not Working with JDK 1.3

    Why Oracle 8i is not Working with JDK 1.3 by using JDBC.

    try this
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:"somedsn","scott","tiger");
    I am using this for Oracle, it is working for me.
    Uma
    Java Developer
    http://www.globalleafs.com

  • Why does adobe flash not work in my firefox. i have down loaded it several times. it will work in explorer and chrome.

    why does adobe flash not work in my firefox. i have down loaded it several times. it will work in explorer and chrome.

    IE uses a different version of Flash than other browsers use. You need to install the Plugin version of Flash for Firefox.
    1.Download the Flash setup file from here: <br />
    [http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player.exe Adobe Flash - Plugin version]. <br />
    Save it to your Desktop.<br />
    2. Close Firefox using File > Exit <br />
    then check the Task Manager > Processes tab to make sure '''firefox.exe''' is closed, <br />
    {XP: Ctrl+Alt+Del, Vista: Shift+Ctrl+ESC = Processes tab}
    3. Then run the Flash setup file from your Desktop.

  • Why do my panels not work in CC 2014

    I made my own panels in CC but they don't work in CC 2014. I miss them.

    It's the latter. Thank you for answering my question.
    Op 21 jun. 2014, om 09:42 heeft Trevor Dennis <[email protected]> het volgende geschreven:
    Why do my panels not work in CC 2014
    created by Trevor Dennis in Photoshop General Discussion - View the full discussion
    Are you talking about a custom workspace, or actual panels made with Configurator?  If the former, then go Preferences > Sync settings.  If the latter, then those Flash panels no longer work in CC 2014.  Check out any of the multiple threads about Extensions being greyed out.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6481073#6481073
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Photoshop General Discussion by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Why does my iMessage not work even with my apple ID signed in?

    Why does my iMessage not work even with my apple ID signed in?

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457
    Send an iMessage as a Text Message Instead with a Quick Tap & Hold
    http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom
    BTW- Your profile shows you have iOS 6.1.4 installed. The max iOS for an iPad is 6.1.3. iOS 6.1.4 is for iPhones only.

Maybe you are looking for