473,419 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,419 software developers and data experts.

In memory DataSet or filesystem Dataset?

I have a wizard on a page that will dynamically create a dataset as it goes
along based on user input. When the wizard is done, it will dump all of the
data it collected/created in the wizard to an xml file. Should this be an in
memory version or a dataset or a file based dataset?

Jun 27 '08 #1
4 1183
where are you going to store the dataset between page flips?

-- bruce (sqlwork.com)
"Andy B" wrote:
I have a wizard on a page that will dynamically create a dataset as it goes
along based on user input. When the wizard is done, it will dump all of the
data it collected/created in the wizard to an xml file. Should this be an in
memory version or a dataset or a file based dataset?

Jun 27 '08 #2
What do you mean by page flips? Here is more about the dataset requirements.

The object it represents is a blank/stock contract for service. The admin
can create as many stock contract types as they want or need. A stock
contract would kind of be like the differences between a 1040 tax form and a
1040EZ tax form. They have things that are the same between both of them,
but other things are different. One is a "derivative" of the other. It is
the same way with these "contracts" You have a "ContractBase" which has the
following properties (all contracts must have these): Type, Title, Subtitle,
Glossary (different items in glossary depending on contract type), Sections
(same as glossary), Form header and title, Form footer and signatures. The
properties that would be dynamically required are the form fields. For
example, not all contracts have a Hotel, Transportation or similar fields. I
need to know the best way to handle this type of object, what type of source
to use to create it (class, dataset, xml...) and a basic idea of how to
actually implement it. The creation of these contracts is done with a custom
designed wizard that has a wizard step for each segment of the contract
itself.

Is there any ideas on how to do this? The contract blanks created by the
wizard have to be stored as xml files in app_data folder.
"bruce barker" <br*********@discussions.microsoft.comwrote in message
news:5E**********************************@microsof t.com...
where are you going to store the dataset between page flips?

-- bruce (sqlwork.com)
"Andy B" wrote:
>I have a wizard on a page that will dynamically create a dataset as it
goes
along based on user input. When the wizard is done, it will dump all of
the
data it collected/created in the wizard to an xml file. Should this be an
in
memory version or a dataset or a file based dataset?


Jun 27 '08 #3
web sites are stateless. when the user clicks next in the wizard, a
request is made to the server. this will cause a new instance of the
page class to be created, and the page cycle run. I assume data is
collected at each page of the wizard. for page 2 to have access to page1
data you must store it somewhere (in session, in a database, in file,
etc). this is the first decision you must make.

what you data model looks like depends on many issues. is it dynamic
(can an admin add fields?). is there business logic and rules?

-- bruce (sqlwork.com)

Andy B wrote:
What do you mean by page flips? Here is more about the dataset requirements.

The object it represents is a blank/stock contract for service. The admin
can create as many stock contract types as they want or need. A stock
contract would kind of be like the differences between a 1040 tax form and a
1040EZ tax form. They have things that are the same between both of them,
but other things are different. One is a "derivative" of the other. It is
the same way with these "contracts" You have a "ContractBase" which has the
following properties (all contracts must have these): Type, Title, Subtitle,
Glossary (different items in glossary depending on contract type), Sections
(same as glossary), Form header and title, Form footer and signatures. The
properties that would be dynamically required are the form fields. For
example, not all contracts have a Hotel, Transportation or similar fields. I
need to know the best way to handle this type of object, what type of source
to use to create it (class, dataset, xml...) and a basic idea of how to
actually implement it. The creation of these contracts is done with a custom
designed wizard that has a wizard step for each segment of the contract
itself.

Is there any ideas on how to do this? The contract blanks created by the
wizard have to be stored as xml files in app_data folder.
"bruce barker" <br*********@discussions.microsoft.comwrote in message
news:5E**********************************@microsof t.com...
>where are you going to store the dataset between page flips?

-- bruce (sqlwork.com)
"Andy B" wrote:
>>I have a wizard on a page that will dynamically create a dataset as it
goes
along based on user input. When the wizard is done, it will dump all of
the
data it collected/created in the wizard to an xml file. Should this be an
in
memory version or a dataset or a file based dataset?


Jun 27 '08 #4
It would probably be kept in a session. Seems to be the best and easiest way
to get this part done. It is dynamic. Admin can add fields to the form in a
certain step of the wizard. As far as I know of, there isnt any complicated
business rules. The ones I do have are this:

The contract must have:
- At least the following sections:
1. Main title, sub title (filled in by a later filled in field), Contract
type
2. Glossary with word/definition pairs (this section must have at least 1 of
these).
3. Sections with section title/section text pairs (this section must have at
least 1 of these).
4. Form header/title
5. Form fields (defined by the admin when created).
6. Form footer
7. Signatures.

This must be converted to xml at the end of the wizard and then put inside a
database table.

Any ideas on what type of object to use? class, dataset and stuff like
that)?
"bruce barker" <no****@nospam.comwrote in message
news:u4**************@TK2MSFTNGP05.phx.gbl...
web sites are stateless. when the user clicks next in the wizard, a
request is made to the server. this will cause a new instance of the page
class to be created, and the page cycle run. I assume data is collected at
each page of the wizard. for page 2 to have access to page1 data you must
store it somewhere (in session, in a database, in file, etc). this is the
first decision you must make.

what you data model looks like depends on many issues. is it dynamic (can
an admin add fields?). is there business logic and rules?

-- bruce (sqlwork.com)

Andy B wrote:
>What do you mean by page flips? Here is more about the dataset
requirements.

The object it represents is a blank/stock contract for service. The admin
can create as many stock contract types as they want or need. A stock
contract would kind of be like the differences between a 1040 tax form
and a 1040EZ tax form. They have things that are the same between both of
them, but other things are different. One is a "derivative" of the other.
It is the same way with these "contracts" You have a "ContractBase" which
has the following properties (all contracts must have these): Type,
Title, Subtitle, Glossary (different items in glossary depending on
contract type), Sections (same as glossary), Form header and title, Form
footer and signatures. The properties that would be dynamically required
are the form fields. For example, not all contracts have a Hotel,
Transportation or similar fields. I need to know the best way to handle
this type of object, what type of source to use to create it (class,
dataset, xml...) and a basic idea of how to actually implement it. The
creation of these contracts is done with a custom designed wizard that
has a wizard step for each segment of the contract itself.

Is there any ideas on how to do this? The contract blanks created by the
wizard have to be stored as xml files in app_data folder.
"bruce barker" <br*********@discussions.microsoft.comwrote in message
news:5E**********************************@microso ft.com...
>>where are you going to store the dataset between page flips?

-- bruce (sqlwork.com)
"Andy B" wrote:

I have a wizard on a page that will dynamically create a dataset as it
goes
along based on user input. When the wizard is done, it will dump all of
the
data it collected/created in the wizard to an xml file. Should this be
an in
memory version or a dataset or a file based dataset?

Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: DigitalDragon | last post by:
hi, i would like to use stream I/O functions to open a file from data that i have already stored in memory. eg. char some_text="Test"; int main()
16
by: Justin Lazanowski | last post by:
Cross posting this question on the recommendation of an I have a .NET application that I am developing in C# I am loading information in from a dataset, and then pushing the dataset to a grid,...
3
by: Benny | last post by:
Hi When I load a dataset with data obtained from a db, the dataset is stored in the memory of the client system. AFAIK the size of the dataset (which implicitly mean the number of rows that can be...
7
by: Raj | last post by:
Hi Guys, We are on db2 udb v8.2 64 bit,partitioned (5 nodes) on AIX 5.2 ( intra parllelism is enabled). I have a question, i am trying to find the memory usage on my production machine, we...
4
by: J.C.Rivera | last post by:
Hello... I'm a rookie to c#. So let me see if i can expose properly my situation. I developed a stored procedure in sql server 2000 that allows me to construct my dataset in XML format. the...
0
by: Raj | last post by:
We are on db2 udb v8.2 64 bit,partitioned (5 nodes) on AIX 5.2 ( intra parllelism is enabled). I have a question, i am trying to find the memory usage on my production machine. what is the...
3
by: noridotjabi | last post by:
Say I'm writting a program. In this program for some reason I need to store data somewere were I will be able to access it again. I don't want to store it in a file because then it could be...
5
by: Frank Rizzo | last post by:
Hello, I have a very frustrating issue I've been working on. I have a routine that does the following: 1. Load a large (declared local to the function) DataSet from the database. It contains...
1
by: JD | last post by:
I have a DataGridView with a DataSet as DataSource. The user can update the contents of the DataGridView, and then click on a Save button to save the data to an XML file. When they click on...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.