+ Start a Discussion

Creating multiple records in a wizard

Hi, I am trying to create a multipe stage wizard that creates a master record and related child records as well as non child records. The scenario I cannot work out is that depending on the input in the wizard's 1st page would like to control the number of occurences for the next page. eg. in the first page we enter detail of an aircraft and in that we set number of engines to 2 or 3, so according ot the number of engines we would like the input wizard page for the engine to repeat 2 or 3 accordingly. Any ideas and workouts for this will be highly appreciated

Thanks in advance
Create the pages that share same Controller so that you can use one page's variables in another.For more infromation, you can check check out Chapter 5—Building Wizards With Visualforce in http://www.developerforce.com/guides/Visualforce_in_Practice.pdf. It deals with same usecase as yours