Hi Michael, If you want to populate the initial values from the database, you will have to use the business object. The intake.xml file only defaults to static values, as you expected.
In short, no it won't reset the group OM object fields. I'm not sure exactly how intake does it, but it's something to do with the QueryKey (part of the Retrievable interface). When you call $intake.GroupName.mapTo($omObject)) it doesn't reset the fields if they are already in the current request. Good luck, DAvid -----Original Message----- From: Michael Kunze [mailto:[EMAIL PROTECTED] Sent: Monday February 14, 2005 12:56 AM To: [email protected] Subject: RE: Initial FormValues with Intake > <field name="Name" key="Name" type="String" defaultValue="John Doe" > displayName="Name please *"> > <rule name="required" value="true">Please enter the name</rule> > </field> Hi, thanks for your answer. I should have clearified myself before. I want to build an edit screen (edit person or whatever) for that reason i want to present the form with inital values from the database. I'm almost certain now, that i need to use the BusinessObject. I found an old E-Mail on this list mentioning this. What i'm not sure about is the interaction between the BO and Intake. That E-Mail states that i need to map the group object from intake to an OM layer object in the screen class of my form. But wouldn't that reset the form fields to there initial state (from database) each time the intake form validation fails? Michael -- Michael Kunze http://www.smrealms.de ---------------------------------------------------------------- This message was sent using https://www.datenschleuder.org's IMP --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
