Index: openacs-4/packages/acs-templating/www/doc/guide/wizard-procs-doc.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/guide/wizard-procs-doc.adp,v diff -u -r1.2.2.1 -r1.2.2.2 --- openacs-4/packages/acs-templating/www/doc/guide/wizard-procs-doc.adp 25 Aug 2015 18:02:16 -0000 1.2.2.1 +++ openacs-4/packages/acs-templating/www/doc/guide/wizard-procs-doc.adp 5 Jul 2016 12:14:22 -0000 1.2.2.2 @@ -26,11 +26,11 @@ the wizard
Add the "template::wizard get_current_step" on wizard.tcl. Make -sure that you call any "template::wizard set_param" if needed -before calling get_current_step. get_current_step will redirect to -the wizard -action properly setting all -params value and its other -needed http state vars
Note: the wizard will rewrite the url always. Only self +
Add the "template::wizard get_current_step" on +wizard.tcl. Make sure that you call any "template::wizard +set_param" if needed before calling get_current_step. +get_current_step will redirect to the wizard -action properly +setting all -params value and its other needed http state vars
Note: the wizard will rewrite the url always. Only self submitting forms are preserved. Once the form is finished processing the wizard will take over and rewrite the url.
template::wizard submit myform -buttons {back next} @@ -80,14 +80,14 @@
Use "template::wizard set_param myparam_name" to set it. -Normally you place this in the steps of the wizard where the form -has been processed. A param is normally used when you want to reuse -a value across the steps.
Note: if you are to use "template::wizard set_param" on a wizard -file ex. (wizard.tcl). Make sure to do it before "template::wizard -get_current_step". So when "template::wizard get_current_step" -redirects it will properly set the correct values of the param to -the new value.
+Use "template::wizard set_param myparam_name" to set +it. Normally you place this in the steps of the wizard where the +form has been processed. A param is normally used when you want to +reuse a value across the steps.
Note: if you are to use "template::wizard set_param" +on a wizard file ex. (wizard.tcl). Make sure to do it before +"template::wizard get_current_step". So when +"template::wizard get_current_step" redirects it will +properly set the correct values of the param to the new value.
Note: That visited steps will loose its value when moving from one subwizard to another subwizard in the same level. In order to preserve this you must call "template::wizard -load_last_visited_step -key $yourkey" before "template::wizard -get_current_step", after "get_current_step" call "template::wizard +load_last_visited_step -key $yourkey" before +"template::wizard get_current_step", after +"get_current_step" call "template::wizard save_last_visited_step -key $yourkey"
Also the wizard params name is present across the curent wizards being used, so the developer has to be aware not to use the same names with different purpose. For example on main wizard with have -a param called "name" for the user name. And on on sub wizard we -have the param again called "name" but used for the file name.
+a param called "name" for the user name. And on on sub +wizard we have the param again called "name" but used for +the file name.