Go Back   CHECKBOX® Online Community > Checkbox® > CHECKBOX® Survey Server 4.x

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-22-2008, 01:27 PM
Junior Member
 
Join Date: Feb 2008
Posts: 2
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?
Reply With Quote
  #2 (permalink)  
Old 02-22-2008, 01:46 PM
Administrator
 
Join Date: Mar 2007
Location: Prezza Technologies
Posts: 187
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
Reply With Quote
  #3 (permalink)  
Old 02-22-2008, 02:21 PM
Junior Member
 
Join Date: Feb 2008
Posts: 2
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
Reply With Quote
  #4 (permalink)  
Old 02-22-2008, 02:34 PM
Administrator
 
Join Date: Mar 2007
Location: Prezza Technologies
Posts: 187
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.
Reply With Quote
  #5 (permalink)  
Old 02-22-2008, 02:37 PM
Senior Member
 
Join Date: Mar 2007
Posts: 181
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 04:49 AM.


SEO by vBSEO 3.2.0