Using AND combined with OR conditions on filterclause

We are writing a PRC portlet to return all documents based on a properties search.We have two properties (names are arbitrary) lets call them prop1 and prop2.I need to construct the following query
Need all cards where ( (prop1=1 or prop1=2 or prop1=3 or prop1=4) AND (prop2="A" or prop2="B") )Can not use (prop1<5)
I believe that a more precise question is How can I construct a query that is and-ded and or-ded.
the interface IPlumtree.Remote.PRC.Search.ISearchFactory allows two methods to be called 1) CreateOrFilterClause2) CreateAndFilterClause How do I return a search that is ORand AND - Is this even doable? I need sample code for the Document Search described above.. Phil Orion | [email protected] | www.orionsmith.com

You can add a clause as a subclause of another clause. So the steps to build this would be:
1. build an OR clause, add the four prop1 conditions to it
2. build another OR clause, add the two prop2 conditions to it
3. build an AND clause, add the two previous clauses to it by calling addClause()
Craig

Similar Messages

  • Can AME used in combination with position heirarchy for purchase requisitions ?

    Hello,
    We are using position heirarchy for purchase requisitions.
    Can we use Approval Management engine in combination with the existing position heirarchy for purchase requisitions for more flexible workflow routing ?
    regards,
    Natalia

    Hi Natalia,
    Have your inquiry been addressed? Please let me know if you need any further assistance in this, otherwise, Please mark the answer as Correct/Helpful in order to leverage the discussion and facilitate correct answer to other members who may confront the same concern of yours.
    Note: Liking the answer will not mark it as Correct/Helpful, you have to open the discussion first to be able to mark it (This is not possible by opening the discussion from your inbox)
    Thanks,

  • Stop Motion using photos + combining with video clips

    We have about 3000 sequenced photos we want to put together into a Stop Motion video. We would also like to add an actual video clip to the beginning and to the end of the Stop Motiuon segment. Can this all be done in Premiere Pro? If so how? If not - what other Creative Cloud programs should we use and how?
    Thanks.

    Why did you ask a new question when you already asked in http://forums.adobe.com/thread/1389086

  • Using numbers as accounting application and combine with ical

    I am facing a slight challenge. I love using quickbooks, but there is no version for Mac in SA. I need to be able to set up numbers in such a way that when I save an ivoice as a pdf, the information on the invoice is saved on a spreadsheet in date order. I also need to have a reminder come up in ical so I can follow up on the invoice. Is it also possible for each invoice to be assigned a number automatically?
    Any feedback would be appreciated.

    I am facing a slight challenge. I love using quickbooks, but there is no version for Mac in SA. I need to be able to set up numbers in such a way that when I save an ivoice as a pdf, the information on the invoice is saved on a spreadsheet in date order. I also need to have a reminder come up in ical so I can follow up on the invoice. Is it also possible for each invoice to be assigned a number automatically?
    Any feedback would be appreciated.

  • How can I use AND's with OR's in the smartlists?

    SO what is the trick in combining OR's and AND's within a smartlist? like
    "(hip/hop OR Rap) AND (My Rating over 3 stars)"
    Is that possible?

    If there are two or more rules, a drop down box will
    appear next to Match rules.
    Change it to Match Any instead of Match All.
    Right, this makes it an OR. So with two rules:
    1. genre equals hip hop
    2. genre equals rap
    and I pick the ANY, then my list will be a combo of both (and yeah statistically speaking could be all of 1 or 2)
    HOWEVER, the next part is where I am stuck - How do I make sure the selections from 1 or 2 are ALL 3 stars or better in rating??
    So with three rules:
    1. genre equals hip hop
    2. genre equals rap
    3. Rating at least 3 stars
    Now with using ANY (aka OR) I could get a 4 star heavy metal song in my list - right? because the above is not the same as
    (1 or 2) and 3 <<-- which is what I really want to do.
    Any ideas how to do that? somewhere a while back I saw a thread talking about some trick that would do that, but I cant find it again. I am not even sure I read it on this site. But anyway - any one know how to make a smartlist to do
    (1 or 2) and 3
    thanks
    Gc

  • Using MAST/VAST with position conditional triggers

    Hi folks! I'm trying to use a MAST file that loads in VAST files to do preroll, midroll, and postroll all from the same XML. Each of these is triggered by a timecode using a property condition looking at position. Essentially, when the currentTime is greater than or equal to a time code, it triggers the ads. Currently the events are firing at the right time, and the VAST files are being loaded and translated correctly, but all three videos are playing after the main content finishes. Can anyone tell me how to remedy this?
    Here are some more clues. The conditions for triggering look something like this:
    <startConditions>
                                            <condition value="20" type="property" operator="GEQ" name="position" />
    </startConditions>
    <endConditions>
                                            <condition type="event" name="OnItemEnd" />
    </endConditions>
    Another clue is that I delved into the MASTPlugin and found in the getInsertionIndex method of MASTProxyElement a comment:
    "if our current child is in the midst of playback, we don't want to interrupt it, so we insert immediately after the current child."
    The playing status is determined by the presence of a time trait with a currentTime or by the presence of a play trait with a play state of PLAYING. Since the position property will only be triggered after the main content is playing, it would seem that content added with a position trigger would always be added to the end of the main content. Is there some easy way to do this using position triggers or something that might be wrong with the XML?
    I am aware of Advertising Plugin which does a great job of this very task, but unfortunately the client wants to use MAST/VAST and uses tracking implemented in the VAST data. Anybody have a solution, or should I start sweet talking the client?

    Wow, I missed this question a long time ago.
    The basics of what I did were to remove any use of SerialElements or ParallelElements from the MASTProxyElement class. I passed in references to the main MediaContainer and MediaPlayer through metadata on the plugin resource and passed those to the MASTProxyElement from the MASTPluginInfo class. Then I gutted the onDocumentProcessed method of MASTProxyElement. That is what executes when it detects an ad needs to play. There I made the most changes making it just create standard media elements rather than messing with Parallel and Serials. I then created a separate MediaContainer and Player solely for the ads. Using a stage reference off of the main MediaContainer, I add my container to the stage, pause and hide the main player, and then listen for the completion of the ad from my separate player. When that is complete, I clean up my ad and tell the main player to show and resume.
    This was a major reworking of the plugin and required a lot of deep diving into the OSMF plugin, along with a few monkey patches to OSMF. The original plugin's support for different versions of VAST and VPAID are incomplete and I had to fix a lot to get a lot of the expanded functionality to work. The plugin codebase is proprietary now, so I cannot share it with the community. However, I am happy to share the general approach I took and to provide a warning about the complexity of the task to anyone attempting to do the same.

  • Need to cancel account that is no longer used and unassociate with msn

    I have not been a Verizon broadband customer for several years, but my e-mail account is still active {edited for privacy}. I am trying to make changes to my hotmail account, but Microsoft will not allow me because an MSN Premium account from Verizon is still associated with that account. How can I close my old Verizon e-mail account?
    I tried using this link to change the msn link, but it seems not to be effective when you click submit:
    https://www.verizon.net/central/vzc.portal?_nfpb=true&_pageLabel=vzcp_switch&frommat=true&txtype=swi...�tchoice=MSN
    Thanks,
    Steve
    Message Edited by KaLin on 04-24-2009 06:06 PM

    Short of calling verizon, I don't think you can delete your account  unless it is a sub-account.  But, you can change the association from MSN to something else.  Go to verizon.net, log into your accout, select my My Account from the top navigation, then click on "Change" next to the Online experience and select something other thatn MSN.
    That should break the link between verizon & msn which would allow you to make the changes to MSN.
    Good luck.

  • I bought macbook pro at cash america used and loaded with windows 7 ultimate by boot camp.My questions is it has mountain lion loaded but original ower has name with password so how can I reload so I can sign on as administrator for downloads and upgrades

    I bought a 13 inch macbook pro9.2 at Cash America with windows 7 Ultimate with boot camp program.
    The Mac op sytem has Mountain Lion installed but the previous ower has his name and password attached to it and can only use as guest.
    My question is how do I get around this to be administrator to reload software so i can use mountain Lion,and not loose the windows op .

    If you reformat the partition that contain Mountain Lion and reinstall Mountain Lion, it should not effect the Windows pratition.
    Have said that I suggest you backup everything you might want to save just in case.
    Allan

  • BI Accelerator used in combination with SAP Business Objects Explorer

    Hi ,
    If you use SAP Netweaver BWA and SAP Business Objects Explorer Blade, do you only get the full benefit with using SAP BO Explorer, or will the same queries ran in BEx 7 Anaylser also benefit from the in memory OLAP processing?
    I'm guessing that the SAP BOE Blade will only benefit SAP BOE.
    It would be great if the current BWA had the ability to in-memory the OLAP part of the processing, as then it might be worth the hassle of getting it installed.
    Thanks,
    Jamie

    Hi
    May be the note : 1384526, could give you an insight.
    Regards, Hyma
    Edited by: Hymavathi Yanamadala on Feb 25, 2010 5:13 AM

  • How can i use GZip combined with NIO?

    Hi All,
    I have a nio client that connects a client (HTTP) and request something. I need my client to Accept-Encoding: gzip - but how will i be able to read the data into my ByteBuffer?
    I don't have a problem reading, cause it's bytes after all, but i will have a problem (i guess) determining when the reading is complete - when it finished. If i'm reading HTTP, for instance, i know i should finish reading after receiving \r\n\r\n. How should i do it for gzip info?
    Thanks,
    Snayit

    When i'm reading the HTTP i receive Content-Length X but actualy is sends the X with Y bytes (i guess it's a key, about to check in the API).
    Is there a way to combine the GZip with NIO?

  • Apple ID  cancel because of no use and interact with normal ID

    I got at my purchase of a new Ipad also the installation of iCloud for the first time.
    It seems they used an other ID than the normal ID I have for my phone etc.
    Now this second ID needs password and Security questions I do not know and
    I do not need this ID at all. So I like just to erase this not known never used
    ID so that I can use iCloud without prolems what is not possible right now.
    I never asked to set up for iCoud a second ID, what does not make sense

    Dear Illas
    Yes i bought it at the apple Store and they helped me to set up all of it.
    Thats why I have this srange  second apple ID  @me.com  and I have
    no idea of password or what so ever. I can just try to guess. But I do
    not need it at all, I like to erase this item and was already 1 hour with
    the customer service at the phone....  but how can I tell them that it is
    my apple ID if I have never set up it, I did let them do.... and I guess
    they gave me a paper with the words and so on, but I do nt have it.
    So I locked me out with my own second ID  :-)  And this goes now for
    3 month like that. If I do not want an ID, it should be possible to erase
    it, as they see, that there is no traffic coming through and no one
    gets an email, if they send one through this ID-email-address. It never
    arrives at my computer, because it is not set up properly (I guess)

  • Using and iPod with 2 different computers

    As a new iPod user, I am looking for some help!
    Currently, I use iTunes and my iPod with an external hard disc, where my entire library is stored, and my laptop. Now, I would like to use this hard disc with a second computer as well.
    Should I move "iTunes Library.itl" and "iTunes Music Library.xml" from "C" (my laptop's hard disc) to my external hard disc, and then chose the manual synchronisation between iTunes and iPod?
    Thanks in advance for the advice!!!
    Podwalker
      Windows XP Pro  

    Hello podwalker,
    Should I move "iTunes Library.itl" and "iTunes
    Music Library.xml" from "C" (my laptop's hard disc)
    to my external hard disc, and then chose the manual
    synchronisation between iTunes and iPod?
    Yes, I believe that would be the thing to do. Be sure
    to set your manual syncronization for both
    computers.
    If you connect your iPod to a new computer (that now
    would have iTunes on it), however, it may display
    "this iPod is connected to another computer, would
    you like to replace the content?". Be sure to click
    on "NO", and not "yes".
    -Kylene
    Thanks iPodnano_1GB!
    Does someone know if I have to create a folder "My music/iTunes" on my external disc and then copy "iTunes Library.itl" and "iTunes Music Library.xml" documents there? How can iTunes know that "iTunes Library.itl" and "iTunes Music Library.xml" are to be found at this new location?
    Is there anything else I should know about this topic?
    Podwalker

  • Video Monitor and Graphics Card- Your using and happy with!

    Wondering what the group is using for LCD monitor/Graphics card pairing for your MacPro.  Interested on those above the 27" Apple Display
    thx

    Okay, I'll bite. I have a Dell 30" 3007WFP LCD with an Acer 22" LCD on each side. The three monitors run off a ATI Radeon HD 5770. The Dell 30" runs off the bigger DVI port and the two Acers run off mini DVI ports.
    I had to buy two ACTIVE mini DVI to DVI adapters to make them work. The regular adapters won't work with three monitors.
    They all play happy together.

  • How do i use and iphone with the ios7 if the phone is completely locked and i dont know the previous owner?

    how do i fix a phone that is completly locked bc of the ios7? i dont know the previous ower? and i dont know if the phone is stollen.

    You don't get it to work. You can not bypass the activation lock. Do you not know who you bought it from? Talk to them. If they can't give you the credentials to unlock it, get your money back. The phone is useless.

  • Sum lost after combine with similar request

    Hi experts
    I've used the 'combine with similar request' option to combine 2 reports that have exactly the same columns.
    The only difference between them is that they're using different filters.
    The combine action is done correctly but the The sum over the years is missing
    When I run the 2 reports separatly for both of them the sum is shown in the report but when I combine them It's missing.
    Any one can explain why??
    Edited by: aharrab_be on Apr 30, 2009 10:32 AM

    hi..
    even in table view, go to fx of particular measure.. and
    below you find option Aggregation Rule, set it to sum and try...
    And it would be nice if you assigned points for correct answer.. ;)

Maybe you are looking for

  • Err 8008 - Cant get it to stop

    Hey all! Having problems downloading Grey's Anatomy season 2. This is happening with many of the shows in this season. I keep getting the err = 8008 messages. If I resume it goes a little further then starts again. I have tried deleting the files for

  • Acroread 8.x CJK input problem

    See also https://bugzilla.novell.com/show_bug.cgi?id=353251 CJK input doesnt work right in the English version of acroead 8.1.1 or the pre-release version 8.1.2. First of all, one needs to set export GTK_IM_MODULE=xim to make acroread react at all to

  • NOKIA 6610i GOTO function is not working

    Hi, I have a 66101 and its having problem of getting reset when go to is pressed (upper Right key) or when selected thru menu. Pls help to resolve this issue.

  • Sessions getting created after tablespace is offline

    Hi all I am facing a situation where if I make SYSAUX tablespace offline, still session count keeps on increasing. Is that something expected? Thanks

  • Probleme bei Excel-Import mit SBO 2007

    Hallo zusammen! Wir haben bei einem gewöhnlichen Stammdatenimport zu den Geschäftspartnern mit Excel folgendes Problem: die Fehlermeldung lautet: interner Fehler --> Zahlwege für Zahlungsassistenten (OPYM) (-2007) aufgetreten. Wenn wir die Zahlwege f