>
> 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.