Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SharePoint > SharePoint Development
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
SharePoint Development Programming and development for SharePoint Portal Server and Windows SharePoint Services
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SharePoint Development section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 13th, 2010, 02:33 AM
Friend of Wrox
Join Date: Jan 2007
Location: durban, Africa, South Africa.
Posts: 115
Thanks: 2
Thanked 0 Times in 0 Posts
Question Web Service Get List ID with VBSCRIPT to filter on for UpdateListItems

Hi, I'm using Web Service with VBScipt

I can no longer go Title to do my filtering. I need to determine the ID to the filtering.
My UpdateListItems Method works when i have Title or ID (which is now unkown), Then I used the FileRef
dates the columns where items are listed
batch = batch + "  <Field Name='ID'>3</Field>"
batch = batch + "  <Field Name='FSObjType'>1</Field>"
batch = batch + "  <Field Name='Vendor'>8888888</Field>"
batch = batch + "  <Field Name='Site'>8888888</Field>"
---Updates document within Library then filter works on FileRef
---but it works only when renaming the document within the folder. 
batch = batch + "  <Field Name='FSObjType'>1</Field>"
batch = batch + "  <Field Name='FileRef'>http://.../Test/temp4.txt</Field>"
batch = batch + "  <Field Name='BaseName'>temp4.txt</Field>"
Please are there any other options i can filter on to get the item on item list level or perhaps the GETID method as last resort

I have started with the GETLISTITEMS Method to return the ID, my filter works & i can see all the values for that specific Item:
batch = "<Query><Where><Eq><FieldRef Name='FileLeafRef'/><Value Type='Folder'>AB Test</Value></Eq></Where></Query>"
wfields = "<viewFields><FieldRef Name='ows_ID'/></viewFields>"
request =  request + "<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'"
request =  request + "            xmlns:xsd='http://www.w3.org/2001/XMLSchema'"
request =  request + "            xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>"
request =  request + "  <soap:Body>"
request =  request + "  <GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'>"
request =  request + "              <listName>" & list & "</listName>"
request =  request + "              <query>" & batch & "</query>"  
request =  request + "              <ViewFields>" & strviewfields & "</ViewFields>" 
request =  request + "  </GetListItems>"
request =  request + "  </soap:Body>"
request =  request + "</soap:Envelope>"
But how do i retrun the 'ows_ID' value & insert to Vbscript Var

Please Assist!

Last edited by ismailc; January 13th, 2010 at 02:35 AM..
Reply With Quote
  #2 (permalink)  
Old January 13th, 2010, 04:32 AM
Friend of Wrox
Join Date: Jan 2007
Location: durban, Africa, South Africa.
Posts: 115
Thanks: 2
Thanked 0 Times in 0 Posts

Please, i need to get the retunring filed "ows_ID" value
in my vbscript wscript.echo .responseText then i see all the values but no clue on getting the "ows_ID" value

Please Help
Reply With Quote
  #3 (permalink)  
Old January 27th, 2010, 08:32 AM
Authorized User
Join Date: Jan 2010
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to elizas
Default Web service get list ID

Generally web applications in SharePoint are created using the out-of-box functionality provided within Central Administration. But because of some client's needs there might be a requirement of creating these web applications within a custom utility solution. This functionality can be achieved programmatically using Microsoft SharePoint APIs. By this, one can easily create a web application & associate a content database to it, register the web application in the IIS server, create an associated application pool and define different credentials for the web aplication.


Mindfire: India's Only Company to be both Apple Premier & Microsoft Gold certified.
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Combobox list filter headworth Visual Studio 2008 1 December 21st, 2009 11:16 AM
List Box Refresh When Invoking Filter RodM Access VBA 0 January 4th, 2009 09:54 AM
Invalid Drop down list ID efactory BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 November 30th, 2008 05:14 PM
UpdateListItems ruso77 Infopath 1 December 25th, 2007 04:40 AM
VBScript to verify if service running in IIS savoym VBScript 0 July 30th, 2003 12:53 PM

All times are GMT -4. The time now is 11:15 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.