C
Caboclo
In a project I am working on I am reading a time sheet and retrieving
that data in a dataset. I want to pick the data I want out of that
dataset and return only the data I want. I have not seen any methods
that let me return the values of particular columns. I can see the
columns, but do not know how to return the values. Here is the method
I am using -
public ReadDataSet Logon()
{
loggedOn = logMeIn(baseUrl);
WebSvcTimeSheet.TimesheetDataSet timeSheetDS;
Guid myUid = resourceSvc.GetCurrentUserUid();
WebSvcAdmin.TimePeriodDataSet timeperiodDS =
adminSvc.ReadPeriods(WebSvcAdmin.PeriodState.Open);
Guid periodUid = timeperiodDS.TimePeriods[0].WPRD_UID;
timeSheetDS = timeSheetSvc.ReadTimesheetByPeriod(myUid,
periodUid, WebSvcTimeSheet.Navigation.Current);
ReadDataSet myDataSet = new ReadDataSet();
// It is in this next line that I don't know how to return the
value of the TS_CACHED_RES_NAMEColumn
myDataSet.name =
(string)timeSheetDS.Headers.TS_CACHED_RES_NAMEColumn.....
loggedOff = logMeOff();
return myDataSet;
}
Any comments or suggestions would be helpful.
Thank you,
Daniel
that data in a dataset. I want to pick the data I want out of that
dataset and return only the data I want. I have not seen any methods
that let me return the values of particular columns. I can see the
columns, but do not know how to return the values. Here is the method
I am using -
public ReadDataSet Logon()
{
loggedOn = logMeIn(baseUrl);
WebSvcTimeSheet.TimesheetDataSet timeSheetDS;
Guid myUid = resourceSvc.GetCurrentUserUid();
WebSvcAdmin.TimePeriodDataSet timeperiodDS =
adminSvc.ReadPeriods(WebSvcAdmin.PeriodState.Open);
Guid periodUid = timeperiodDS.TimePeriods[0].WPRD_UID;
timeSheetDS = timeSheetSvc.ReadTimesheetByPeriod(myUid,
periodUid, WebSvcTimeSheet.Navigation.Current);
ReadDataSet myDataSet = new ReadDataSet();
// It is in this next line that I don't know how to return the
value of the TS_CACHED_RES_NAMEColumn
myDataSet.name =
(string)timeSheetDS.Headers.TS_CACHED_RES_NAMEColumn.....
loggedOff = logMeOff();
return myDataSet;
}
Any comments or suggestions would be helpful.
Thank you,
Daniel