...answers when you need them
866-430-8274    1-617-715-9605
  • Free Version
  • Contact Us
  • Login

Checkbox Forums

Register | Help
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    geggolds Guest

    Default What table(s) hold the survey question text

    I know that survey answers are stored in the RESPONSE and RESPONSEANSWERS tables (by ItemID). Now I need to find where the question text for each item is stored. Clues anyone?

  2. #2
    ncushing is offline Administrator
    Join Date
    Mar 2007
    Location
    Prezza Technologies
    Posts
    207

    Default

    Hello,

    The text of the question, and all texts in Checkbox, can be found in the ckbx_Text table. The textID in the table will vary depending on the type of item, but it will always end in /[ItemID]/text. So, if you want to find the text for item 2000, try searching for the value for the field TextValue in the ckbx_Text table where the TextID ends in '/2000/text'.

    -Noah

  3. #3
    geggolds Guest

    Default

    Thanks Noah.

    Prezza's gotta be kidding on that one. That scheme makes it "impossible" to engage ckbx_text in a JOIN based on ItemID. That's nuts.

    Have you ever had to JOIN to this table? If so, what did you do? The only solutions I can think of involve stored procs or temp tables.

    Greg

  4. #4
    ncushing is offline Administrator
    Join Date
    Mar 2007
    Location
    Prezza Technologies
    Posts
    207

    Default

    We don't join on that table. Since survey items and their configuration are self-contained and because the item infrastructure supports user/3rd party items, it is up to each item to maintain it's own text and other configuration. As a result, Checkbox core code can't assume that an item's text is maintained in that text table, though the out-of-the-box items do store that data in the table.

    In Checkbox, all text is accessed through a Text Provider object with a text identifer and language code, so the database is queried for specific text strings rather than joins against item id. The text provider also has optimizations, such as caching, to improve performance.

    A secondary reason text exists in this table is to support import and export of text data from the sytem for translation purposes. The table contains all application text, not just text for survey questions.

    Thank you.

  5. #5
    pwiesner is offline Administrator
    Join Date
    Mar 2007
    Posts
    382

    Default

    If you could explain in more detail what you are trying to accomplish we may be able to provide a suggestion on how to do it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Feedback

SEO by vBSEO 3.5.0