M
manoj
Hi,
Is it possible to fetch ResourceCustomFields table values using
ReadResources(xmlfilter,autoCheckout) method.
I know we can do the same using ReadResource(GUID).
If its is possible using ReadResources method, how we should we define
filter for that...??
i am using the below code, but it is throwing GeneralUnhandledException.
Here webservice is my web service
name(https://(server))/_vti_bin/psi/Resource.asmx)....
webservice.Resource res = new CustomFields.webservice.Resource();
webservice.ResourceDataSet resDataset = new webservice.ResourceDataSet();
res.Url = "https://(servername)/_vti_bin/psi/Resource.asmx";
res.Credentials = System.Net.CredentialCache.DefaultCredentials;
PSLib.Filter filter = new Microsoft.Office.Project.Server.Library.Filter();
filter.FilterTableName = resDataset.ResourceCustomFields.TableName;
filter.Fields.Add(new
PSLib.Filter.Field(resDataset.ResourceCustomFields.TableName,
resDataset.ResourceCustomFields.RES_UIDColumn.ColumnName));
filter.Fields.Add(new
PSLib.Filter.Field(resDataset.ResourceCustomFields.TableName,
resDataset.ResourceCustomFields.CODE_VALUEColumn.ColumnName));
resDataset = res.ReadResources(filter.GetXml(), false);
This last line throws exception...
any sort of help will be appreciated...
thanks..
Is it possible to fetch ResourceCustomFields table values using
ReadResources(xmlfilter,autoCheckout) method.
I know we can do the same using ReadResource(GUID).
If its is possible using ReadResources method, how we should we define
filter for that...??
i am using the below code, but it is throwing GeneralUnhandledException.
Here webservice is my web service
name(https://(server))/_vti_bin/psi/Resource.asmx)....
webservice.Resource res = new CustomFields.webservice.Resource();
webservice.ResourceDataSet resDataset = new webservice.ResourceDataSet();
res.Url = "https://(servername)/_vti_bin/psi/Resource.asmx";
res.Credentials = System.Net.CredentialCache.DefaultCredentials;
PSLib.Filter filter = new Microsoft.Office.Project.Server.Library.Filter();
filter.FilterTableName = resDataset.ResourceCustomFields.TableName;
filter.Fields.Add(new
PSLib.Filter.Field(resDataset.ResourceCustomFields.TableName,
resDataset.ResourceCustomFields.RES_UIDColumn.ColumnName));
filter.Fields.Add(new
PSLib.Filter.Field(resDataset.ResourceCustomFields.TableName,
resDataset.ResourceCustomFields.CODE_VALUEColumn.ColumnName));
resDataset = res.ReadResources(filter.GetXml(), false);
This last line throws exception...
any sort of help will be appreciated...
thanks..