Hi, The actual fdatapath to be used was not the one proposed by Nico (see below), but the following:
relation/[EMAIL PROTECTED]'OBJECT_TYPE']/[EMAIL PROTECTED]'FIELD_NAME'] This is because the XML document against which fdatapath attributes are matched, is not in the 'preform' variable, but in the 'data' variable in the same Wizard class. The document in 'preform' is the result of matching the actual loaded wizard data (in 'data') (<action type="load"> in the edit wizards) with the required form data (<form-schema id="SCHEMA_ID">). However, Nico, thanks for pointing me in the right direction. Regards, Ronald Wildenberg. > -----Oorspronkelijk bericht----- > Van: Nico Klasens [mailto:[EMAIL PROTECTED] > Verzonden: woensdag 10 september 2003 19:30 > Aan: [EMAIL PROTECTED] > Onderwerp: RE: fdatapath in edit wizards > > > > > > Hi, > > > > I have a question concerning the fdatapath attribute of > > field elements in the edit wizards. > > > > I have two related nodes (object1 -> related -> object2). > > In the edit wizard for object1 I'd like to see fields > > of object2, not in a list, but directly as an editable > > field. What 'fdatapath' attribute should I use to achieve > > this? > > Quick guess the fdatapath could be <field > fdatapath="list/item/[EMAIL PROTECTED]'FIELDNAME']"/> , but I am > not sure. > > This should work too, I think. > > <form-schema id="edit_object1"> > <title>Object1</title> > <field name="field"/> > > <list role="related" destination="Object2"> > <item> > <field name="field"/> > <!-- not sure if you need the ftype here --> > <field name="field2" ftype="line"/> > </item> > </list> > </form-schema> > > > > > A more fundamental related question: an edit wizard > > retrieves its information from some XML document, loaded > > at runtime. Where can I access this document and view it? > > I don't think you wanna see that! > There is no statement yet which writes the xml to the logfile. The > document is in org.mmbase.applications.editwizard.Wizard in the method > writeHtmlForm(...). The org.w3c.dom.Document is in the > preForm variable. > > Nico Klasens > > ---------------------------------------------------------------------- > Hardware: That part of the computer which you can kick. > >
