[OGo-Developer] Retrieving values from post / LSWObjectEditor
Adam Tauno WIlliams
developer@opengroupware.org
Sun, 10 Feb 2008 15:02:48 -0500
I'm working on adding extended attribute support for documents like
described in Bug#1942
<http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=1942>. This
is my first real foray into hacking in the WebUI.
I have added -
...
<#IfExtAttrs>
<#DocEditExtAttrs/>
</#IfExtAttrs>
...
- to SkyProject4DocumentUpload.html, and in
SkyProject4DocumentUpload.wod -
IfExtAttrs: WOConditional {
condition = isExtAttrsDefined;
}
DocEditorExtAttrs: LSWObjectEditor {
labels = labels;
object = uploadData1.extendedAttributes;
attributes = extendedAttributeSpec;
namespace = "http://www.opengroupware.org/properties/ext-attr";
}
- that and the corresponding methods and a touch of init glue in
SkyProject4DocumentUpload.m and I get the additional form fields for
attributes defined in the "OGoExtendedDocAttributes" default. If no
default is defined there are no additional fields. So that works.
But I'm at a complete loss as to where the values get bound when a post
occurs; setExtendedAttributes (in uploadData1, a SkyP4FileUploadData)
does not appear to be called.