In memory DataSet or filesystem Dataset?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andy B

    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?



  • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

    #2
    RE: In memory DataSet or filesystem Dataset?

    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?
    >
    >
    >
    >

    Comment

    • Andy B

      #3
      Re: In memory DataSet or filesystem Dataset?

      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 "ContractBa se" 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" <brucebarker@di scussions.micro soft.comwrote in message
      news:5EC17D15-598A-4BDF-ABCD-D49601D3F0D6@mi crosoft.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?
      >>
      >>
      >>
      >>

      Comment

      • bruce barker

        #4
        Re: In memory DataSet or filesystem Dataset?

        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 "ContractBa se" 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" <brucebarker@di scussions.micro soft.comwrote in message
        news:5EC17D15-598A-4BDF-ABCD-D49601D3F0D6@mi crosoft.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?
        >>>
        >>>
        >>>
        >>>
        >
        >

        Comment

        • Andy B

          #5
          Re: In memory DataSet or filesystem Dataset?

          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" <nospam@nospam. comwrote in message
          news:u4htIW8uIH A.4260@TK2MSFTN GP05.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 "ContractBa se" 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,
          >Transportati on 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" <brucebarker@di scussions.micro soft.comwrote in message
          >news:5EC17D1 5-598A-4BDF-ABCD-D49601D3F0D6@mi crosoft.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?
          >>>>
          >>>>
          >>>>
          >>>>
          >>

          Comment

          Working...