How to set OR filter by using whereClause

Hi all
I want to set OR filter on whereClause
I have to values value1 and value2
now I want to show all records related to value1 and value2

whereClause = whereClause + "And(vac.Name like '"+vacancy+"' or vac.Name in (";>for(int i =0; i < temp.length ; i++)
>{
> //pageContext.putDialogMessage(new >OAException("delimeters "+temp));
> if(i == temp.length-1)
> whereClause = whereClause +"'"+ temp[i] +"')";
> else
> whereClause = whereClause +"'"+ temp[i] +"',";
>}
>whereClause = whereClause + ")AND lower(vac.STATUS) like 'approved' "+
> "AND vac.CREATION_DATE between to_date('"+ StartD >+"','dd-mon-rrrr') AND to_date('"+ EndD + "','dd-mon-rrrr')";
> pageContext.putDialogMessage(new OAException(whereClause));
//vo.setWhereClause(" (FndVacancyName in ("+temp+") OR >FndvacancyName like "+vacancy+") AND ((lower(vac.STATUS) like 'approved') AND (Vac.CREATION_DATE between to_date(" + StartD + ",'dd-mon-rr') AND to_date(" + EndD + ",'dd-mon-rr')) )");
vo.setWhereClause(whereClause);> vo.executeQuery();
but it doesnt work for two or more values

Similar Messages

  • How to set a filter in DTP?

    Dear Gurus,
    I'm trying to load some selective data based on the Sales Order Number from DSrc to a DSO.  I'm trying to set a filter in the DTP.  Can someone please guide me how to set a filter in DTP?
    Thanks & Regards,
    Ashmeel.

    Hi,
    Double Click the DTP. Open the extraction Tab. On this tab you can see Filter Icon click on that. Put the filter as desired in the sales order number. Save and Activate.
    In case the field on which you want to apply the filter is not visible, open the DTP in edit mode click on the FIlter button, now click on change selection button. Here in you can drag the required fields to LHS for them to be visible in filter option.
    Apply required filter value Save & Activate the DTP
    Revert in case of doubt
    Regards
    Raj

  • How to set field type choice using csom (c#)

    I have a field type: Choice (menu to choose from) which is not multichoice. How do I set a value?
    I have found code for multiple choice but it doesn't seem to work for single choice.

    Hi,
    The following code snippet for your reference:
    newListItem["ChoiceFieldName"] = "ChoiceValue";
    newListItem.Update();
    clientContext.Load(newListItem);
    clientContext.ExecuteQuery();
    If you are assigning a Value which is not in the Choice Column, You need to create a choice value then assign it to the item.
    More information is here:
    http://sharepoint.stackexchange.com/questions/124999/how-to-set-field-type-choice-using-csom-c
    Best Regards
    Dennis Guo
    TechNet Community Support

  • I'm new to using iCloud and couldn't find the answer to: how to set my calendar to use the 24 hour clock. Thanks all.

    ?? I'm new to using iCloud and couldn't find the answer to: how to set my calendar to use the 24 hour clock. Thanks all.

    Thanks, David.  i thought i had it set correctly in Preferences in L&R. Being i was wearing my suspenders and belt at the same time i went back to L&R, cleared what was there and re-entered same to include unchecking and rechecking Time Format fgor 24-hour time.   It works now. Thanks again.

  • How to set up Oracle Alerts using Lotus mail

    Hi there
    Anyone there knows how to set up Oracle Alerts using Lotus mail

    Hi All. We are looking to install 64-bit Oracle 11g
    on 64-bit SUSE Linux Version 10 SP1. We would like to
    start up with a 16GB SGA and possibly increase to 50GB. How you calculate you need to start database with 16 GB SGA , and latter need to increase it to 50 GB ?
    Can anyone help us with a list of rpms and
    kernel settings we would need to get started? ThanksCheck following link for rmp and kernel parameters
    http://download.oracle.com/docs/cd/B19306_01/install.102/b15667/pre_install.htm#sthref85
    - Virag Sharma
    http://virag.sharma.googlepages.com
    http://viragsharma.blogspot.com

  • How to set XPoweredByHeaderLevel to NONE using wlst

    How to set XPoweredByHeaderLevel to NONE using wlst (by default the value is SHORT).
    I mean, I have created a domain using wlst.
    Now I want to set XPoweredByHeaderLevel of WebAppContainerMBean to NONE using wlst.
    It will be helpful if a sample python(Jython) script is provided.
    Please help.

    Here is a quick Jython example of how to do what you want:
    #assuming you already have correct imports for wlst module
    #connect to the AdminServer using proper credentials and host information
    wlst.connect(username, password, host_info)
    #extract domain name
    domainName = wlst.domainName
    #start an edit session and navigate to the WebAppContainerMBean
    wlst.edit()
    wlst.cd("/WebAppContainer/" + domainName)
    wlst.startEdit()
    #set the value of the XPoweredByHeaderLevel attribute to "NONE"
    wlst.cmo.setXPoweredByHeaderLevel("NONE")
    #activate the change
    wlst.activate()

  • How to set value in selectOnemenu using binding

    hi all.
    i have bind htmlSelectOneMenu. it contains some value. I want to set or display a value after a process.
    How to change value
    i have tried using setValue method of both binding property and value property of htmlSelectOneMenu.
    Same issue is with InputTextArea. how to set value in it via code(RowSelectionListener of icefaces)

    Balaji wrote:
    hi all.
    i have bind htmlSelectOneMenu. it contains some value. I want to set or display a value after a process.
    How to change value
    i have tried using setValue method of both binding property and value property of htmlSelectOneMenu.
    Same issue is with InputTextArea. how to set value in it via code(RowSelectionListener of icefaces)The html SelectOneMenu is bound to a value of a backing bean. You have to change the value of that backing bean, not the JSF component directly. JSF takes care of updating the model, you shouldn't be touching it unless you know what you are doing.

  • How to set JMS clients to use JVM Invocation layer

    Hi,
    I'm not sure if this JBoss specific (but I'm assuming it's not) so I'll be asking it here. How can I set my JMS clients and Message-Driven Beans to use JVM Invocation layer since the clients and queues will reside in the same JVM.
    Thanks in advance.

    May be that explains why I couldn't successfully integrate ActiveMQ with JBoss. I was using the 3.0 version. I'll try again once I find the time.
    Anyway, do you know how to set JBoss JMS clients and MDBs to use JVM invocation or transport layer instead of UIL2?
    I'm not sure if what I've done is correct But here's what I've done.
    For jvm-il-service.xml, I changed the JNDI reference from "ConnectionFactory" to "JVMILConnectionFactory" since the default service uses "ConnectionFactory". Then I used that reference as my JNDI look up in my JMS client. I'm just not sure how to do this with MDBs. I think I should add an entry in the ejb descriptor file but I need someone to confirm.
    Thanks.

  • How to set swing to support using vrml/external/browser ?

    When doing applets with AWT to call vrml/external/browser.getbrowser, it works. But if update to use swing instead of awt, applets always cannot say: java.lang.NoClassDefFoundError: vrml/external/Browser.
    The html file containing this applet is converted by command : java HTMLConverter **.html .And also using java1.3.1plug-in.
    But if removing java plug-in and add ---ARCHIVE="Swing.jar"---- into **.html source code without using java HTMLConverter. The applet works.
    While, this way can let applet work, but thus, the applet cannot connect to mysql database.
    So, anyone knows how to set up swing in applet when using converted **.html with javaplugin? ???
    Thanks so much!!!!

    Hi David,
    Need more info:
    Version of Crystal Reports are you using?
    Visual Studio version?
    Try with this:
    The following C# code demonstrates the use of the ExportToStream method:
    ReportDocument report = new ReportDocument();
    report.Load("c:\\temp\\test.rpt");
    ExportOptions options = new ExportOptions();
    options.ExportFormatType = ExportFormatType.PortableDocFormat;
    options.FormatOptions = new PdfRtfWordFormatOptions();
    ExportRequestContext req = new ExportRequestContext();
    req.ExportInfo = options;
    Stream s = report.FormatEngine.ExportToStream(req);
    Response.ClearHeaders();
    Response.ClearContent();
    Response.ContentType = "application/pdf";
    s.Seek(0, SeekOrigin.Begin);
    byte[] buffer = new byte[s.Length];
    s.Read(buffer, 0, (int)s.Length);
    Response.BinaryWrite(buffer);
    Response.End();
    Regards,
    Shweta

  • How to set the sampling interval using DAQ device?

    Now I have a capacity sensor and a 24 bit DAQ device (http://www.mccdaq.com/usb-data-acquisition/USB-2404-10.aspx).
    The DAQ device has the maximum sampling rate of 50kS/s . My question is how to set the interval of data collection. For example, if I set the sampling rate to 2000, in continuous sampling mode, I use DAQmx read.vi in a while loop and set the 'number of samples per channel' to 100. I want to plot these data as a function of time by using a XY graph and also save these data. So I add a 'Mean' function to get the average of the 100 samples per each loop (than means, there are 20 data output per second). But when I set the 'number of samples per channel' much smaller (to get more data per second), there are some problems. It seems that the program cannot read so many data and get the average at a higher frequency. I don't know where the problem is. All in all, how to collect data more frequently?Maybe I didn't express my question clearly. I'll upload a simple program later if necessary. Thanks.
    Solved!
    Go to Solution.

    Another question is in continuous mode, NI DAQmx uses Samples per channel to determine the buffer size. But according to the website you specified, it says if the acquisition is continuous (sample mode on the DAQmx Timing.vi is set to Continuous Samples), NI-DAQmx will allocate a buffer according to the following table. And for sample rate between 100 - 10,000 S/s, the buffer size is 10 kS. So if I set the sample rate to be 5000 S/s, and set the Samples per channel to be 20000, then what exactly the buffer size is? 20 kS or 10 kS?
    Thanks.

  • How to set JavaBean in JSP using JavaScript function

    Hello,
    When a user clicks on an item, I want to execute a JavaScript function. Within that function, I want to set specific JavaBeans (<jsp:setProperty... />) within my JSP page.
    Can anyone tell me how to do this or where I can find examples on how to set JavaBeans in a JSP page using JavaScript?
    Thanks.
    Pat

    try this:
    your.jsp
    <html>
    <SCRIPT>function buttonClick()
    {document.compform.submit();}
    </SCRIPT>
    <body>
    <form name=compform method=post action='your.jsp'>
    <%
    //write your code which you want to execute once the button is submitted
    String submit;
    submit=request.getParameter("mysubmit");
    if ((submit != null) && (! submit.equals("")))
    %>
    <input type=hidden name=mysubmit value="submit">
    <input type=button value=add onclick='buttonClick()'>
    </form></body></html>

  • How to set style !important using javascript??

    i can set an items width using js
    page_item.style.width = "400";
    how do i incorporate the "!important" flag in this statement?

    Hi Craig,
    Here's the only blurb I could find on this:
    http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/important.asp
    Notice the "Scripting: N/A" bit at the top.
    I use this site a lot - not because I'm particularly keen on MS/IE but because at the bottom of each entry you get confirmation of whether or not the setting/attribute/etc is standard or not and the pages are kept up to date.
    I have to say that this is only the second time I've come across someone trying to use this. The first time we just decided to leave it. I can see the importance of using it to stop someone overriding styling, but as I mentioned above, it is possible to create an entire script tag using javascript and, therefore, you can override it. Seems silly to me, but there you go!
    It would also be better, in my view, if they had used a better word for this setting - something like java's "final" - as, the first time I saw it I took it to mean "make more bolder" or "highlight it" or somesuch thing.
    Regards
    Andy

  • How to set up several iPads using same apple id for classroom? The 1st one did great and the rest will not load any apps??

    iPad minis donated to a classroom. Teachers are trying to set up several iPads using the same apple id, but the apps will not load on any but the first iPad set up. What to do?

    Can you assign existing devices to a DEP account?  When DEP came out, you could not. 
    "This document offers guidance on some important considerations for getting the most out of your iOS deployment." Covers: Prepare your infrastructure.  Set up devices.  Configure and manage devices.  Deploy apps and content.  Plan for support. 
    https://www.apple.com/ipad/business/docs/iOS_Enterprise_Deployment_Overview_EN_F eb14.pdf
    Quick overview of zero-touch MDM enrollment, DEP
    http://www.apple.com/education/it/dep/
    Consider DEP, Device Enrollment Program. Use VPP, Volume Purchase Program.  Select an MDM, Mobile Device Management.  Read the Google doc below and nsdjoey write up.
    IT Resources -- ios & OS X -- This is a fantastic web page.  I like the education site over the business site.
    View documentation, video tutorials, and web pages to help IT professionals develop and deploy education solutions.
        Education
          http://www.apple.com/education/ipad/resources/
          scroll down after all the pretty picture.  Click on the words "For It".
        business site is:
           http://www.apple.com/lae/ipad/business/#browse-it-resources
          If necessary, scroll down until you see the Browse IT Resources button.  Click on button.
        MDM --  Mobile Device Management  
          For a comparison see this page:
          http://www.enterpriseios.com/wiki/Comparison_MDM_Providers
        VPP -- Volume Purchase Program
          http://www.apple.com/education/it/vpp/
    Joe Rowe's Excellent guides
    IT managers who are new to configurator and managing a cart of ios devices:
          https://docs.google.com/document/d/1SMBgyzONxcx6_FswgkW9XYLpA4oCt_2y1uw9ceMZ9F4/ edit?pli=1
             [ original announcement  -- https://discussions.apple.com/thread/4256735?tstart=0 ]
    Quick help presentation for students:
         https://docs.google.com/presentation/d/18937JdleX2gymtSb8zfbDczV-76BdR2DIfCV9eJi yOE/edit#slide=id.g1b776944_0_224

  • How to set a digital output using a switch on the operator interface?

    Hi, is it possible to set a digital output using a switch on the operator interface?
    Thanks,
    Mike

    Unfortunately, no.  It is on our hit list...
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • How to set printer margins if using a lot of printers in virtual desktops which are deleted each time users logs off

    Hello,
    i am using Firefox version 31. I have a problem with page setup margins. I need to use left
    30mm; right 10mm; top 20mm; bottom 20mm. I am using VMware floating assignemnt linked clones
    virtual desktops. After users log off - machines are deleted and users next time logs on get's brand
    new VDI's. Users gets printers to VDI using login script from Active Directory.
    Option Explicit
    Dim strPrinterUNC, objNetwork
    strPrinterUNC = "\\some_server\printer_number_1"
    Set objNetwork = CreateObject("WScript.Network")
    objNetwork.AddWindowsPrinterConnection strPrinterUNC
    WScript.Sleep (20000)
    objNetwork.SetDefaultPrinter strPrinterUNC
    Set objNetwork = Nothing
    Each user have different logon script, because they use different printers (different printer names e.g. \\some_server\printer_number_2 ; \\some_server\printer_number_3 and etc. Page setup margins in Internet Explorer are ok. But how to make Firefox page setup margins as i need? For other options i have
    used CCK2 Wizard 2.0.4 tool. It worked fine. Maybe i can put some information in C:\Program
    Files\Mozilla Firefox\defaults\pref\autoconfig.js I have some usefull data in it allready. I
    have found info that: "Setting print margins is done in the printer settings". I have a lot of
    printers, so i can not set printer margins individualy for each of them. Now mozilla shows top,
    bottom, right, left each 12.7 mm. What should i do if i have a lot of printers in enterprise
    environment?

    Firefox has a profile folder that has preferences to save this. But the config that would need to be changed is:
    print. save_print_settings = True - (default): Save the print settings after each print job
    Locking that preference: [http://kb.mozillazine.org/Locking_preferences]
    Or done manually:
    #In order to check the margins, we need to go to ''File'' > ''Page Setup''.
    #Once this is done, switch to the ''Margins & Header/Footer'' tab.
    #Check what's set there under ''Margins''.
    The following are the default values for ''Margins'':
    Check these values accordingly and change them if necessary.

Maybe you are looking for

  • Email and SMS alert issues

    My phone is the Blackberry Curve 8530 1. I have two e-mail accounts set up on my phone. One the one, the red * alert symbol always shows up on that email account's folder, but for the other one the red * alert symbol for new messages shows up on the

  • Unable to see Active Directory Groups in the User Profile Database after Profile Import

    ***Major Update - I have finally been able to get the direct attention of the folks responsible for the User Profile Service on the SharePoint Product Team.  Long story short, they have reproduced the error and identified as an actual mistake that ne

  • How to pair new Magic mouse w desktop? Old mouse is dead.

    How do I get my new Magic Mouse to pair w my old 2007 iMac? I don't have the old Mouse; when I bought the new one at the Apple Store they said they'd throw the old one away. So I gave it to them.

  • Best way to move from msjava to sun java

    Hello Java people, We have a web version of a program, attachmate extra, (mainframe emulator), that requires Java 1.5 runtime applet. I have a package set up using the msi from java ready to be pushed with SMS. My goal is to have users using Sun java

  • Drive drawer opens suddenly at startup Leopard Mac OS 10.5

    Hi- running into an odd problem, for a few weeks now- At each startup, even before the login window appears, the drive drawer opens - I'm unable to close it again until after login has complete - therefore, unable to restart from a cd/dvd, for exampl