M
Mike
Hi,
I am trying to solve a problem with a DataSet issue I am having. In my app
the user selects certain options and based on those options it goes out to
the db to get data based on those options. This data will be used in
different Business Objects (Business Rules and Reporting). I have decided
to use DataSets as the data container because the data is dyncamic and will
change based on user selections which I could not simulate in a custom
object. Also the reporting engine is designed to use a dataset. Based on
each user selection the app goes to the db and retrieves data at different
times. My question is how I can structure the data retrieved into one
dataset? I was thinking of creating a dataset at design time which would
represent the data that is present no matter what the user selects and then
at retrieval of other data add the new data to the dataset. I really do not
like this option because I would have to loop through the dataset retrieved
and compare it the design time dataset and if the columns does not exist in
the design time dataset then add the new columns and data to the dataset. I
also thought that I could just add each dataset by merging the datasets
together after each retrieval. However, I really rather have a dataset with
one datatable not several. Hope I explained my problem.
Thanks
I am trying to solve a problem with a DataSet issue I am having. In my app
the user selects certain options and based on those options it goes out to
the db to get data based on those options. This data will be used in
different Business Objects (Business Rules and Reporting). I have decided
to use DataSets as the data container because the data is dyncamic and will
change based on user selections which I could not simulate in a custom
object. Also the reporting engine is designed to use a dataset. Based on
each user selection the app goes to the db and retrieves data at different
times. My question is how I can structure the data retrieved into one
dataset? I was thinking of creating a dataset at design time which would
represent the data that is present no matter what the user selects and then
at retrieval of other data add the new data to the dataset. I really do not
like this option because I would have to loop through the dataset retrieved
and compare it the design time dataset and if the columns does not exist in
the design time dataset then add the new columns and data to the dataset. I
also thought that I could just add each dataset by merging the datasets
together after each retrieval. However, I really rather have a dataset with
one datatable not several. Hope I explained my problem.
Thanks