Form wizard component save data

2008-09-29 Thread mcphisto
Hi all, I'm installing this component on my application to have a multi-page form. Everything work, but I really don't know how to save data in the database. The problem is that I can't find the session variables saved during the steps. The other thing I don't understand is if I need to create a

Re: Form wizard component save data

2008-09-29 Thread [EMAIL PROTECTED]
If you are referring to the component by jaredhoyt then yes the tutorial can be a little fuzzy on some points. It works great, though. Just make sure you read both pages of the article and the comments and any fuzzy bits should be taken care of. You have to create a receipt method (i.e. a place

Re: Form wizard component save data

2008-09-29 Thread mcphisto
My problem is that this form, divided in more pages, saves its data all in a unique table. So, if I save data in DB at each step, at the end I have 3 new entries with 3 steps. On 29 Set, 13:07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: If you are referring to the component by jaredhoyt then

Re: Form wizard component save data

2008-09-29 Thread [EMAIL PROTECTED]
That is sort of the problem I had. The component does not to my knowledge handle this at the moment. I modified it to merge the data from each step so that each step would contain the data from all steps. On the last step (or in beforeReceipt) I can then finally save the end-result. I was in

Re: Form wizard component save data

2008-09-29 Thread [EMAIL PROTECTED]
I just noticed that the component restes the wizard before sending you to the receipt. How I am supposed to show a receipt for a transaction I no linger have access to, I don't know. There is apparently also an afterComplete() action that the component looks for just before resetting. I guess

Re: Form wizard component save data

2008-09-29 Thread mcphisto
I find it strange that this wizard looses its varibales/data during the steps. If it would be like this, you shouldn't see data when you go back to a previous step. You shuold loose everything. If you move your debug value to 3, you're able to see data in your session. So I could see that in

Re: Form wizard component save data

2008-09-29 Thread [EMAIL PROTECTED]
I wasn't clear enough. It does not loose the data. It just won't provide the controller with the data since it expects each step to be totally isolated from previous ones. The session-storage is really only designed to populate the form-fields of each step should you wish choose to go backwards.