Re: integration with contacts
Joel Palmius <[email protected]> Wed, 7 Dec 2005 15:59:16 +0100 (CET)
| Newsgroups | gmane.comp.apache.mod-survey.general |
|---|---|
| Message-ID | <[email protected]> |
Sorry, I still don't understand. Do you need different questions for
different contacts?
Or maybe the first question being a choice on which contact you are
currently answering for?
In the former case you'd have to write one survey per contact, since each
survey is supposed to be fixed. In the second case you could use an IMPORT
tag to populate the LIST with values from the contact database. Something
like:
<IMPORT DBIDSN="DBI:Pg:dbname=contacts" DBIUSER="somebody" DBITABLE="contacts" VISIBLE="no" >
<ARRAY NAME="contname" FIELD="contact_name" />
<ARRAY NAME="contid" FIELD="contact_id" />
</IMPORT>
<LIST NAME="acontact" CAPTION="Which contact are we talking about?" />
<DBLISTELEMENT CAPTIONARRAY="contname" VALUEARRAY="contid" />
</LIST>
The variable "acontact" submitted with the answers would then point to a
selected contact_id.
// Joel
On Wed, 7 Dec 2005, nik600 wrote:
> no, i'd like to associate each questionnaire with a contact... for example:
>
> i've got 50 contacts and i must compile a questionnaire for each of
> them...how can i associate the questionnarie with the single contacts?
>
> thanks a lot for your fast reply
>
> On 12/7/05, Joel Palmius <[email protected]> wrote:
>> I don't understand what it is you want to do. Do you want specific
>> questions for contacts? Or authentication so you know who answered the
>> questionnaire?
>>
>> If you want to import data from a database into a survey, you can use the
>> IMPORT tag. This is useful to, for example, populate a LIST with names of
>> people or similar.
>>
>> // Joel
>>
>>
>> On Wed, 7 Dec 2005, nik600 wrote:
>>
>>> hi
>>>
>>> i've just installed survey, it's amazing!
>>> i just want to know if it is possible to integrate the questionnaire
>>> with a generic database of contacts?
>>>
>>> i would like to connect each questionnarie with each contacts....
>>>
>>> Skickat av nik600 <[email protected]>
>>> till survey-discussion
>>>
>> Skickat av Joel Palmius <[email protected]>
>> till survey-discussion
>>
>
> Skickat av nik600 <[email protected]>
> till survey-discussion
>
Skickat av Joel Palmius <[email protected]>
till survey-discussion