[ic] form profile and &fatal=yes
Stefan Hornburg
racke at linuxia.de
Fri Aug 25 06:31:40 EDT 2006
Kevin Walsh wrote:
> Dan Bergan <dan at berganconsulting.com> wrote:
>
>>Mark Johnson wrote:
>>
>>>You will likely need to split this into two operations. Use
>>>mv_form_profile to do your profile checks first, and then put the
>>>account creation code inside an mv_click. With &fatal in a
>>>mv_form_profile, for a failed profile, the mv_click code will never execute.
>>>
>>>You could, in fact, cut that one profile right between &fatal and the
>>>[if ...] line, putting the top part in the mv_form_profile, and the
>>>bottom part in the mv_click, and that would be logically the proper
>>>division.
>>>
>>
>>One more question -- you say the mv_click code will never execute (with
>>&fatal and a failure)... how about mv_check?
>>
>
> It's the other way around. The mv_click will run before the profile
> is checked. In fact, the mv_click callback code can specify the name
> of the profile to use. The mv_check callback will not be executed if
> a profile is checked and fails.
That isn't correct in this case, because mv_form_profile is checked very
early, before mv_click.
>
> It's very easy to confuse mv_click and mv_check. Someone will no doubt
> followup if I have just done so. The following should make it easier:
>
> http://www.interchange.rtfm.info/icdocs/Form_callback_functions.html
>
Isn't mv_cleanup missing here :-) ?
Bye
Racke
--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team
More information about the interchange-users
mailing list