RE: CHECKKEY="no" in last survey page

"Palmius Joel" <[email protected]> Thu, 7 Apr 2005 12:37:37 +0200
Newsgroups gmane.comp.apache.mod-survey.general
Message-ID <[email protected]>
The reason is that the key is the unique identifier and all records, no matter if in AutoData or DBI needs to have this. The format and existence of this key thus needs to be checked at the time when data is written to disk. In a multi-page survey this is done in the last page. Thus you cannot say in the last page that you don't want the key checked there. You get a stupid error "key not defined in submit", this could be more informative. Possibly, we could do a parse check so you can't have CHECKKEY="no" in the same page as a SEQUENCE. If this is specified write an error message like "Key must be checked in last page because of submit, checkkey no not allowed".

CHECKKEY="no" cannot have any function in the last page anyway, because once you have submitted that page and not got an error, the data have been written to disk. You cannot go back to change it after that. 

  // Joel




-----Original Message-----
From: [email protected] on behalf of bugant
Sent: Thu 07.04.2005 12:07
To: [email protected]
Subject: Re: survey-discussion-list: CHECKKEY="no" in last survey page
 
Palmius Joel wrote:
> I have looked a bit at this, and I admit things are not entirely clear.
> However, having thought a bit it I am not sure I understand your problem.

I think the question was:
Can I do something like this:
* A two-page survey
* CHECKKEY="no" in the first page
* CHECKKEY="no" in the lastpage

I think you can't. The last page needs to have CHECKKEY="yes" otherwise
you'll get an error. I'm not sure about the reason of this. I can look
for it.

stay tuned,
bugant.
Skickat av bugant <[email protected]>
till survey-discussion


Skickat av "Palmius Joel" <[email protected]>
till survey-discussion