Camel Query : Calender list : Get Items agains given date that must be greater than and eqaul to start date and greater less than or equal to end date ?

Camel Query : Calender list : Get Items agains given date that must be greater than and eqaul to start date and greater less than or equal to end date ?
A Snap of Employee holiday list
Case : Anne juul Sondergaar is on leave from 05-06-2014 to 07-06-2014
I need a query to check wheither Anne juul is on leave at 06-06-2014 ????
I am using this query that return nothing
SPQueryquery =
newSPQuery();
                            query.Query =
@"<Where>
<And>
<And>
<Leq>
<FieldRef Name='Til' />
<Value Type='DateTime'>"
+ WorkingStartDate.ToString("yyyy-MM-dd")
+ @"</Value>
</Leq>
<Geq>
<FieldRef Name='Fra' />
<Value Type='DateTime'>"
+ WorkingStartDate.ToString("yyyy-MM-dd")
+ @"</Value>
</Geq>
</And>
<Eq>
<FieldRef Name='Medarbejdere' />
<Value Type='Lookup'>"
+ EmployeeName.Trim() +
@"</Value>
</Eq>
</And>
</Where>"
                            query.ViewFields =
" <FieldRef Name='ID' />";
Ahsan Ranjha

Hello,
Download CAML query builder from below location and use it to build your query:
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/f7b36ebc-6142-404a-8b04-9c87de272871/where-can-i-download-the-u2u-caml-query-builder-for-sharepoint-2010may-i-know-the-exact-link?forum=sharepointgeneralprevious
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help

Similar Messages

  • I bought an LG phone and a $35 dollar plan card. Less than a week later it said I was out of time for texts. Apparently it only gave me minutes, not the plan I wanted. Is there any way I can get the plan without paying again?

    I bought an LG phone and a $35 dollar plan card. Less than a week later it said I was out of time for texts. Apparently it only gave me minutes, not the plan I wanted. Is there any way I can get the plan without paying again?

    So you bought a plan and used it all and want another one for free? I understand you thought it had more texts or whatnot but they won't do that since you already used the other plan.
    That's like going to McDonalds and ordering a double cheeseburger, them giving you a double cheeseburger, you eating it and then realizing you wanted a double quarter pounder and expecting them to give it to you free.

  • In my Iphone 5 and I Pad  inbox i get dozens of mysterious messages that I can't delete. They all say  (No Sender) (No Subject) This message has no content  Date: different but all of them way before the internet (late 60's early 70's and some times 2000)

    In my Iphone 5 and I Pad  inbox i get dozens of mysterious messages that I can't delete. They all say
    (No Sender)
    (No Subject)
    This message has no content
    Date: different but all of them way before the internet (late 60's early 70's and some times 2000)
    can't open or delete any of them. These messages are not on my PC
    I have three different accounts but it seems like they are coming from my gmail account
    Thanks for the help
    JC Garza

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPad shuts down, then press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds). Ignore the "Slide to power off"

  • My MacBook Pro gets really hot when I open a video file of any kind and the video starts lagging and the image fades away, also with anything that starts the fan. Is extremely hot on the left upper corner. Is there something I can do about it?

    My MacBook Pro gets really hot when I open a video file of any kind and the video starts lagging and the image fades away, also with anything that starts the fan. Is extremely hot on the left upper corner. Is there something I can do about it?

    You are still under warranty.  Call Apple Care. Make sure you get a case number as all repairs have an additional 90 days of warranty. 
    #1 - You have 14 days from the date of purchase to return your computer with no questions asked.
    #2 - You have 90 days of FREE phone tech support.
    #3 - You have the standard one year Apple warranty.
    #4 - If you've purchased an AppleCare Protection Plan, your warranty last for 3 years.   You can obtain AppleCare anytime up to the first year of the purchase of your computer.
    Take FULL advantage of your warranty.  Posting on a message board should be done as a last resort and if you are out of warranty or Apple Care has expired.

  • Hi I am getting an update failed message (49) when trying to update photoshop after installing and whenever I start photoshop and try to access the file menu it crashes

    Hi I am getting an update failed message (49) when trying to update photoshop after installing and whenever I start photoshop and try to access the file menu it crashes

    Duplicate thread.

  • I started getting messages 3 days ago that my Safari cannot establish a secure connection to Facebook, and it will not open that website. It worked fine for years before this occurred 3 days ago, what can I do to fix it?

    I started getting messages 3 days ago that my Safari cannot establish a secure connection to Facebook, and it will not open that website. It worked fine for years before this occurred 3 days ago, what can I do to fix it?  OS 10.8.3, Safari 6.0.4

    From your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:   Remove All Website Data
    Then delete the cache.
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.
    If nothing above helped, troubleshoot Safari extensions.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.

  • Help  I have installed and reinstalled iTunes but it will not open.  I get an error telling me that windows DEP will not allow the program to run and i can not shut the DEP off for the program.  i need to reset my ipod touch and cant cause of this.

    I have tried to shut off the DEP for the program but it is not allowed.  I can't get to any of my music on my computer because of this.  I use windows vista and was able to use ITunes until the upgrade to 10.2.  now i can't even open the program and it is getting me very upset.  Please someone help me.

    Many thanks.
    That suggests that another application has stashed old QuickTime componentry in your system files.
    So just in case we'll go looking for older QuickTime componentry in the most common locations for it to be stashed.
    First we'll need to change some view settings.
    In your Start menu, open Computer.
    In your Organise menu, select Folder Options.
    In the View tab, make sure that "Show hidden files and folders" is selected, and Hide extensions for known file types is unchecked.
    Click OK.
    Now in Computer, open your C:\ drive (or whichever drive you have your operating system installed on).
    Open the "Windows" folder.
    If you have a 32-bit version of Windows, open the "System32" folder.
    If you have a 64-bit version of Windows, open the "SysWOW64" folder.
    What files and folders can you see in there with QuickTime in the title? (In a standard installation of Quicktime you should be seeing precisely two files... QuickTime.qts and QuickTimeVR.qtx ... and no QuickTime folders whatsoever.)

  • I am trying to upload pictures to website, but get an error message saying that server redirection is not suppoerted. What is this, and why does it happen? I've never had this problem before and it started after Firefox update yesterday.

    Trying to upload pictures to a website, but it doesn't work. After going thru the whole process, I get a message saying; the server attempted to redirect you. Server redirection is not supported. This only happened after I updated Firefox. Never had this problem before.

    Dear Jody..jone5
    Good for you that can't update your iphone because I did it and my iphone dosen't work for example I can't download any app like Wecaht or Twitter..
    Goodluck
    Atousa

  • I get an error message saying that aniweather can't load: position null this started yesterday anyone know how to fix

    am running windows 8 and yesterday evening i started getting this weird error message i uninstalled aniweather and reloaded more of the same tonight i uninstalled mozilla and reinstalled 3rd verse same as the 1st(sorry my sarcasm/humor gets the better of me when things start getting..... annoying)

    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and the cookies from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Just received a replacement ipad and when I connected it to my computer I followed the prompts exactly like the apple tech said. Problem is, I get to a screen prompt that asks me to restore (which he said to click) and now my screen is frozen.

    I just received a replacement iPad and when I connected it to my computer I followed the prompts exactly like the apple tech told me too. When I got to a prompt asking if I wanted to restore the iPad he said to click on it. I did. Now my iPad screen is frozen on the iTunes connect screen and I cannot get out of it.  An iPad shows connected in my iTunes folder, but when I run a diagnostic it says no iPad is detected.
    Any help would be appreciated.
    Thanks

    Personally, I would call Apple back.  However...
    If you're unable to do the Restore, go into Recovery Mode per the instructions here.

  • Need help in query to have all items in sap with PO data on order, date

    Hello Everyone,
    I need some help in writing a query to show all items in sap db to have itemcode, itemname, onhand, sellable(onhand-committed), on order, and the delivery date when that time should be received.  I need to know what items are regular items, which ones are master and components.  For the master I need to have the deliver date of the PO for the component.
    I have written this.
    SELECT DISTINCT TOP (100) PERCENT T1.ItemCode, SUM(T1.Sellable) AS Sellable, T1.OnOrder, MAX(T1.Docduedate) AS DeliveryDate, T1.WhsCode
    FROM         (SELECT     ItemCode, Sellable, OnOrder, '1/1/1900' AS Docduedate, WhsCode
                           FROM          dbo.V_RAZ_StoreInv
                           UNION ALL
                           SELECT     TOP (100) PERCENT ItemCode, '0' AS Sellable, Quantity AS Onorder, DocDueDate, WhsCode
                           FROM         dbo.V_RAZ_OPENPOSDATA
                           ORDER BY ItemCode) AS T1 LEFT OUTER JOIN
                          dbo.V_RAZ_ItemInfo ON T1.ItemCode = dbo.V_RAZ_ItemInfo.ItemCode
    GROUP BY T1.ItemCode, T1.OnOrder, T1.WhsCode, dbo.V_RAZ_ItemInfo.OnHold
    HAVING      (dbo.V_RAZ_ItemInfo.OnHold = 'n')
    ORDER BY T1.ItemCode, T1.WhsCode
    and for the v_raz_openposdata I have the following query
    SELECT     dbo.OPOR.DocNum, dbo.OPOR.DocStatus, dbo.POR1.WhsCode, dbo.POR1.ItemCode, dbo.POR1.Dscription, dbo.POR1.Quantity, dbo.POR1.OpenQty,
                          dbo.POR1.LineStatus, dbo.OPOR.DocDueDate
    FROM         dbo.OPOR LEFT OUTER JOIN
                          dbo.POR1 ON dbo.OPOR.DocEntry = dbo.POR1.DocEntry
    WHERE     (dbo.OPOR.DocStatus = 'O')
    Any help is greatly appreciated. 
    Right now I do get the delivery date for regular items and components but the master sku for the component all of them have 1/1/1900. 
    Thank you

    Thank you for replying Gordon.  I did not remember I had asked this before.  I no longer have access to the other account. 
    What I need on the query is that I want  a list of items with the on order quantity and when we are expecting this order to be received.  The receiving date is based on the PO delivery date.  The trick here is that  I need to Master sku to show the delivery date of the component sku.  In my scenario all components have the same delivery date for the Master sku.  If there are mulitple delivery dates because each warehouse is getting them on a different date then I want to get the delivery date for that warehouse.
    Let me know if this is possible and if yes please guide towards a query for it.
    Thank you.

  • How can i get photoshop again on my computer after I throw it away?

    Hey there, I am Loes from the Netherlands and  I have a question, I tried a lot but it does not work. Hope you can help me..
    I wanted to reset the settings of my photoshop, but this didn't work, so I though maybe if I delete photoshop and then install it again I can start over.
    So I did. But now I cannot find photoshop anymore. I installed creative cloud again and again but creative cloud says photoshop is "up to date". and there is no way to click on it to download it again. Does anyone know were I can get photoshop again?? Hope you can help me. I just started to try 30 days for free but now i cannot use it.
    then if I will have photoshop again I also like to know how I can reset the settings of my brushes.
    Thank you very much!

    CC desktop lists applications as "Up to Date" when not installed

  • I got a virus in my email on my IPAD the date was of the email was from 1969.  It started mutlipling and them wied out all my email accounts it seems to just be locked.  I just get a blank screen in email.  What do I do?

    My IPAD 2 got a virus in my email.  The date of the email was from 1969.  It started mulltipling and just wiped out all my email accounts.  I just get a blank screen in email and it apears to be locked.  What can I do?

    It's not a virus.
    Try turning the account off and on : Settings > Mail, Contacts, Calendars , then tap the account on the right, slide Mail to 'off', exit settings and go back into the Mail app, and then go back to Settings and slide Mail back to 'on'
    If that doesn't work then try closing the Mail app completely : from the home screen (i.e.not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    Also do a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • How can i get more than 1000 items in Custom List Displaying Items?

    http://.....sites/_vti_bin/listdata.svc/AddressBook(List) allows 1000 items Only my AddressBook List, but i have more than 1000 items in my AddressBook list. I want to get items
    from AddressBook list and bind in another place using Autocomplete method like this.
    =======>>>>listurl=http://.....sites/_vti_bin/listdata.svc/AddressBook.
    and my coding in camel like below
    protected void btnpopulatedetails_Click(object sender, EventArgs e)
    SPSite objSite = SPContext.Current.Site;
    SPWeb objWeb = objSite.OpenWeb();
    objWeb.AllowUnsafeUpdates = true;
    SPList list = objWeb.Lists["Address Book"];
    SPQuery query = new SPQuery();
    query.QueryThrottleMode = SPQueryThrottleOption.Override;
    query.Query = "<Where><Eq><FieldRef Name='Title'/><Value Type='Text'>" + txtcustomer.Value + "</Value></Eq></Where>";
    query.RowLimit = 500;
    SPListItemCollection items = list.GetItems(query);
    function fnCustomerSearchBind() {
    if ($("input[id$='txtcustomer']").length != 0) {
    var collcustomer = searchCustomers('', urlTo, fieldto);
    $("input[id$='txtcustomer']").autocomplete({
    source: collcustomer,
    //maxLength:10,
    select: function (event, ui) {
    //debugger;
    event.preventDefault();
    $("input[id$='txtcustomer']").val(ui.item.value);
    $("input[id$='btnpopulatedetails']").click();
    return false;
    minLength: 0,
    function searchCustomers(value, listurl, fieldto) {
    var collcus = new Array();
    var custresults;
    var url =listurl + "?$filter=startswith('" + fieldto + "','" + value + "')";
    //debugger;
    $.ajax({
    cache: true,
    type: "GET",
    async:false,
    dataType: "json",
    url: url,
    success: function (data) {
    custresults = data.d.results;
    //alert(listurl);
    // alert(data.d.results);
    for (var x = 0; x < custresults.length; x++) {
    //alert(custresults[x]['To']);
    collcustList.push(custresults[x]['To']);
    //debugger;
    //debugger;
    return collcustList;
    In my research listurl=http://.....sites/_vti_bin/listdata.svc/AddressBook has 1000 items in 1st Page by default, So how to change 1st Page by default to All Pages through
    code. I think you understand my environment by look above coding, if you don't I am using office 365 sandbox solution. One more thing i know through my research Pages can be change by using Ado.Net Data Service, i tried this one but this one support windows
    server 2008 r2 only but i am using Windows Server 2012 r2. Please help me if you know the answer.

    Hi,
    Here is a blog would be helpful:
    ADO.NET Data Services returns 1000 items
    https://gilleslauwers.wordpress.com/2010/12/08/ado-net-data-services-returns-1000-items/
    Best Regards,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to get items from a list that has more items than the List View Threshold?

    I'm using SharePoints object model and I'm trying to get all or a subset of the items from a SharePoint 2010 list which has many more items than the list view threshold (20,000+) using the SPList.GetItems() method. However no matter what I do the SPQueryThrottledException
    always seems to be thrown and I get no items back.
    I'm sorting based on the ID field, so it is indexed. I've tried setting the RowLimit property on the SPQuery object(had no effect). I tried specifying the RowLimit in the SPQuerys ViewXml property, but that still throws a throttle exception. I tried using the
    ContentIterator as defined here:http://msdn.microsoft.com/en-us/library/microsoft.office.server.utilities.contentiterator.aspx,
    but that still throws the query throttle exception. I tried specifying the RowLimit parameter in the ProcessListItems functions, as suggested by the first comment here:http://tomvangaever.be/blogv2/2011/05/contentiterator-very-large-lists/,
    but it still throws the query throttle exception. I tried using GetDataTable instead, still throws query throttle exception. I can't run this as admin, I can't raise the threshold limit, I can't raise the threshold limit temporarily, I can't override the lists
    throttling(i.e. list.EnableThrottling = false;), and I can't override the SPQuery(query.QueryThrottleMode = SPQueryThrottleOption.Override;). Does anyone know how to get items back in this situation or has anyone succesfully beaten the query throttle exception?
    Thanks.
    My Query:
    <OrderBy>
        <FieldRef Name='ID' Ascending='TRUE' />
    </OrderBy>
    <Where>
        <Geq><FieldRef Name='ID' /><Value Type='Counter'>0</Value></Geq>
    </Where>
    My ViewXml:
    <View>
        <Query>
            <OrderBy><FieldRef Name='ID' Ascending='TRUE' /></OrderBy>
            <Where>
                <Geq><FieldRef Name='ID' /><Value Type='Counter'>0</Value></Geq>
            </Where>
        </Query>
        <RowLimit>2000</RowLimit>
    </View>
    Thanks again.

    I was using code below to work with 700000+ items in the list.
    SPWeb oWebsite = SPContext.Current.Web;
    SPList oList = oWebsite.Lists["MyList"];
    SPQuery oQuery = new SPQuery();
    oQuery.RowLimit = 2000;
    int intIndex = 1;
    do
    SPListItemCollection collListItems = oList.GetItems(oQuery);
    foreach (SPListItem oListItem in collListItems)
    //do something oListItem["Title"].ToString()
    oQuery.ListItemCollectionPosition = collListItems.ListItemCollectionPosition;
    intIndex++;
    } while (oQuery.ListItemCollectionPosition != null);
    Oleg
    Hi Oleg, thanks for replying.
    The problem with the code you have is that your SPQuery object's QueryThrottleMode is set to default. If you run that code as a local admin no throttle limits will be applied, but if you're not admin you will still have the normal throttle limits. In my
    situation it won't be run as a local admin so the code you provided won't work. You can simulate my dilemma by setting the QuerryThrottleMode  property to SPQueryThrottleOption.Strict, and I'm sure you'll start to get SPQueryThrottledException's
    as well on that list of 700000+ items.
    Thanks anyway though

Maybe you are looking for

  • Get Attribute values from a page and procedure exception handling?

    Hi All, I have created new page with two input attributes not based on any VO. This page is created to capture two values and pass these to an AM method upon pressing OK button. The method in AM will call a procedure with two in parameter expecting t

  • Can I set kerning differently in one sentence?

    Can I set kerning differently in one sentence? I have to make it in javascript. help me please. function enterEanCode(){           var EanText= groupRef.textFrames.add();           EanText.textRange.size = 20.74;           EanText.textRange.character

  • JCA connection issue

    Hello, I wrote the SAP example for JCA connection, the problem is that I have an exception on this point: try { <b>client = cgService.getConnection(system_alias, prop);</b> } catch (Exception e) { app.putValue( "error", <b>"Couldn't establish a conne

  • TS5164 itunes tv show help please.

    Have season 9 pass for Criminal Minds.  Watched until recently.  Last two episodes will not play.  Gives a simple error message, no code or anything.  What's up?

  • Query for monthly and QTR change

    Post Author: sugumar CA Forum: General Feedback monthly change= previous month amount - current month amt Quarterly Change= Previous Quarter amt - current quarter amt