duai5344 2010-02-04 22:59
浏览 52
已采纳

如何设计静态/动态调查应用程序?

I'm struggling here a lot really.

I need to prepare a form that is something between static and dynamic.
Basically on the first part of the survey you get a question asking you to select items from the checklist. You select the items and then you are presented with a list of n number of questions.

Now, some facts:

  • the questions and possible answers for those don't change or change so rarely it's irrelevant.
  • 90% if questions have the same possible answers (example below)
  • there's somewhere between 10 and 30 questions

Most questions look like this:

X. This product is high quality stuff.

Possible answers are (only one to be selected, which leaves me with select or radios):

1. Strongly agree  
2. Agree  
3. etc.  // (you know the pattern...)

There is few odd questions that the person filling the form need to answer by writing something into <textarea> or <input type="text">

Now, depending on the how many items were selected in the first question the form is generated like this:

       X. Question:
Item1: <select> for Item1
Item2: <select> for Item2
etc.

or

       X. Question:
Item1: <textarea> for Item1
Item2: <textarea> for Item2
etc.

Also, questions are grouped into parts. All displayed on the same page, but separated visually with each group having it's own header/title.

Now. My first approach was to create several tables in database. Items, QuestionGroups, QuestionTypes, Questions and QuestionOptions (this would store the Agree/Disagree strings).

I feel this is somewhat very troublesome approach for such a simple task. There are no plans in any foreseeable future in modifying the form (will be reused on a regular basis).

The results from this survey will be counted and output to a chart.

Any ideas on easier approach?

  • 写回答

1条回答 默认 最新

  • dox19458 2010-02-04 23:14
    关注

    If you decide to go with the multiple tables etc. design, the following StackOverflow questions may provide ideas and insight

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 java报错:使用mybatis plus查询一个只返回一条数据的sql,却报错返回了1000多条
  • ¥15 Python报错怎么解决
  • ¥15 simulink如何调用DLL文件
  • ¥15 关于用pyqt6的项目开发该怎么把前段后端和业务层分离
  • ¥30 线性代数的问题,我真的忘了线代的知识了
  • ¥15 有谁能够把华为matebook e 高通骁龙850刷成安卓系统,或者安装安卓系统
  • ¥188 需要修改一个工具,懂得汇编的人来。
  • ¥15 livecharts wpf piechart 属性
  • ¥20 数学建模,尽量用matlab回答,论文格式
  • ¥15 昨天挂载了一下u盘,然后拔了