All,
 
please ignore this message :D Since we've got here little basic MMBase experience, we've decided to keep things a bit simpler. I'll just try it via another way.
 
Regards, Ted
 
----- Original Message -----
From: Ted Vinke
To:    
Sent: Tuesday, May 18, 2004 12:15 PM
Subject: passing object to load in editwizard

Hi all,
 
I've got a Company and a Person builder and ofocurse relevant editwizards.
 
The idea is, that Company can be related to 1 or more Persons and vice versa. That's why from the editwizard of Company new Persons can be added of selected via a <list>, but also from the editwizard of Person new Companies can be added in the same way.
 
The problem is, a Person has to be related to at least one Company so in Person editwizard "minoccurs=1" is inserted to accomplish this. You can understand that when I add a new Company and I immediately want to add Persons to it, I get stuck in the Person editwizard because it needs me to select a Company, else I can't save it. But I'm coming FROM the Company wizard to which this Person has to be related; I can impossible set a Company from Person wizard because the new Company hasn't been inserted yet (which I can only do after I've saved the Person).
 
The work around is, to create Company first, save it, satrt Person wizard and *then* I can select the newly created Company. But that's not what I want, because in the Company editwizard I want to add immediately everything that's relevant for that Company, Persons, NBews, etc.
 
In the Persons wizard there's a load action which normally loads a related Company at startup of the wizard. Is it possible to pass a parameter to the Persons wizard, when I start it from the Company wizard, which disables e.g. the "minoccurs=1" constraint or something?
 
Regards,
Met vriendelijke groet,
Ted Vinke
 
First8 BV
Groenestraat 294
6531 JC Nijmegen
[EMAIL PROTECTED]

Reply via email to