Results 1 to 1 of 1

Thread: SHPT Caml Query Error

  1. #1
    Senior Member codenamevirus's Avatar
    Join Date
    Jun 2005
    Location
    Faridabad, Haryana, India
    Posts
    298

    Exclamation SHPT Caml Query Error

    Hi

    I use the U2U caml builder for queries and I use the shpt web services to retrieve data from shpt lists.

    I am facing a problem. When I want to get the data from a particular view of the list, I pass the view's guid in the getlistitems method and it returns me the rows belonging to that view only.

    However, when I try getting the data from a view based on a query, the query returns the data from the global view i.e. the all items view rather than from that particular view only, and as a result I get extra rows, what should i do to prevent this?

    For example, I have list called SampleList with 2 columns - StudentName and CourseName.

    In the view "all items" - I have 38 rows (i.e. 38 students, 19 are for course = Englist and 19 for course = MAths)

    and I create view, SampleView - where I have 8 rows only, 4 for englist and 4 for maths.

    Now when I execute the statement - GetListItems(listName, viewName, Query, viewFields, null, queryOptions, null);
    where viewName - SampleView and Query is null - i.e. no filtering.
    I get only 8 rows (which is perfect).

    but when i run the same query for the SampleView and with the query - course = Maths
    the result should give 4 rows from the SampleView but I get the 19 rows from the "all items".

    Where's the error????

    Thanks a lot

    Akshaya
    Last edited by codenamevirus; November 28th, 2008 at 10:28 AM. Reason: giving more information
    CodeNameVirus

Similar Threads

  1. Windows Error Messages
    By cheyenne1212 in forum Miscellaneous Security Discussions
    Replies: 7
    Last Post: February 1st, 2012, 02:51 PM
  2. Help!! Compiler Troubles!!!
    By wolfman1984 in forum Programming Security
    Replies: 2
    Last Post: December 8th, 2007, 07:50 PM
  3. Error Detection Techniques(Parity Bit)
    By w0lverine in forum Other Tutorials Forum
    Replies: 2
    Last Post: December 19th, 2003, 08:58 PM
  4. Windows 98 Error Codes
    By cdkj in forum Tech Humor
    Replies: 7
    Last Post: October 14th, 2003, 12:52 PM
  5. Traceroute: under the hood
    By antihaxor in forum Non-Security Archives
    Replies: 0
    Last Post: January 24th, 2002, 05:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •