Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Best way to save Forms on Server (pending)
Forum Updated to NodeBB v4.3 + New Features

Best way to save Forms on Server (pending)

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hypnomaki
    wrote on 23 Feb 2015, 19:18 last edited by
    #1

    Im currently on a Project where Users are filling in Forms wich then must be saved on a Server. The Problem is that there are many different types of Forms who also can be different the next time you login. At the moment this doenst have to be extremly efficient but flexible, safe and (thats my wish) easy to code ;)

    So I thought about creating QSettings or QMaps for each form -> Convert them to a String and save them to a MySQL Database. So there is a Table for each User and a Row for each filled out Form (ID INT and Formdata as TEXT).

    What do you think about this soloution?
    Are there Anny better / easier / faster / more efficient ways to accomplish what i want?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 23 Feb 2015, 21:27 last edited by
      #2

      Hi,

      What do you mean by save forms on server ? Do your users fill some kind of poll/mcq ? Are you storing only the results ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hypnomaki
        wrote on 24 Feb 2015, 15:29 last edited by
        #3

        The users are creating and configuring orders and fill out things like quantity, color and article specific things.

        Yes the results are the Values that have to be saved, but in case that fields have to be changed i must provide the function to find the right fields.

        So I thought about a Key / Value System (QSettings, Map) or a XML Scheme and Save this on the DataBase.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 24 Feb 2015, 23:25 last edited by
          #4

          So some kind of order editor where they can pick what fields they want to put in ? Are you using a centralized place to retrieve new available fields ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • H Offline
            H Offline
            hypnomaki
            wrote on 25 Feb 2015, 05:43 last edited by
            #5

            No not exactly that, They just choose an Article that includes many Fields). And every Article has some special Fields / Values. When the Program starts it downloads all the information about the Articles / Fields and kepps them. So yes I use a centralized place here. But in this case its a csv file (for the sake of simplicity so those i create the program for can edit their articles "easily"). But the Article list just works like a Template. Users select one and the Software creates a Form from it with many Fields. And when the user closes the Program this fields have to be saved on the Server (It doesnt have to be a Database but i think it makes sense).

            the "only" problem is that every Row could have other "collumns" so a common Table wouldnt work. So I thought about just a ID Collumn and a Text Collumn where I store all the Informations of a Form in one String (QSettings, QMap, CSV, whatevar).

            My Question is if there are "Better" or "more efficient" or "more easily" options i can solve this?

            Sry If i made myself not clear about some things ;)

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 26 Feb 2015, 19:37 last edited by
              #6

              Sounds like you really need to design that at a database level and model your order there first. An order being a set of fields so that you can save it cleanly in the database (and search through if needed)

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              6/6

              26 Feb 2015, 19:37

              • Login

              • Login or register to search.
              6 out of 6
              • First post
                6/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved