Re: How to fix the value for Project Base to Database or File System : WORKAROUND
Helge Hess <[email protected]>
| Newsgroups | gmane.comp.cms.opengroupware.discuss.general |
|---|---|
| Message-ID | <[email protected]> |
On Jan 15, 2004, at 7:01 AM, Jagdeep S. Anand (Kuro Soft Thailand)
wrote:
> In this case I made the following changes
>
> ORIGINAL CONTENT
> //BasePopup : WOPopUpButton {
> // list = projectBases;
> // item = item;
> // string = projectBaseLabel;
> // selection = projectBase;
> // singleSelection = YES;
> //}
>
> CHANGED CONTENT
> BasePopup : WOString {
> value = "1"; // Value changed to 1 -> because viewing the html file
> we
> find
> // Database option corresponds to value 1
> // and the option Filesystem corresponds to value 0.
> }
This is only working because when no projectBases are defined, the
editor will default to the database one. So what you have done is you
removed the selection thing from the page (well, actually you can
remove it completely from the .html file instead of rendering a "1" ;-)
I think what you actually tried to do is something like this:
BasePopup: WOHiddenField {
value = "1";
}
But this won't work out either, because the "value" is constant and
won't be pushed back into the editor component.
regards,
Helge
--
OpenGroupware.org => http://www.opengroupware.org/
--
OpenGroupware.org Discussion [email protected]
http://mail.opengroupware.org/mailman/listinfo/discuss