[OGo-Users] Default value for Comment field
Gregory Malsack
users@opengroupware.org
Wed, 14 Feb 2007 09:48:50 -0600
HUGE shout out for Adam!!! Thanks mucho!!
This is a much better way then what I did, however the additional fields
do not show up printview of the calendar event. Can you show me how that
might be done?
Thanks again,
Greg=20
-----Original Message-----
From: users-admin@opengroupware.org
[mailto:users-admin@opengroupware.org] On Behalf Of Adam Tauno Williams
Sent: Wednesday, February 14, 2007 7:34 AM
To: users@opengroupware.org
Subject: RE: [OGo-Users] Default value for Comment field
> Thanks for all your help and pointing me in the right direction. Here=20
> is what I have figured out and seems to be working:
> <var:component className=3D"SkyTextEditor"
> const:name=3D"aptcomment"
> text =3D "comment"
> rows =3D
> "session.userDefaults.scheduler_editor_comment_rows"
> columns =3D
> "session.userDefaults.scheduler_editor_comment_columns"
> const:wrap=3D"physical" />
> <script language=3D"JavaScript">
> document.editform.aptcomment.value =3D =
> 'enter something here\nAnd something goes here\nAnd here\nAnd lastly=20
> here';
> </script>
I don't know what you are ultimately trying to accomplish; but if you
want to catch some extra bits of information for schedular events the
WebUI supports using properties as extended attributes. You can set
these just like extended attributes for contacts/enterprises, but via
the OGoExtendedAptAttributes default.
http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=3D1673
Like:
Defaults write NSGlobalDomain OGoExtendedAptAttributes '(
{key =3D "email"; label =3D "E-Mail"; type =3D 3;},
{ key =3D "caseNumber"; label =3D "Case#"; } ,
{ key =3D"billable"; label =3D "Billable"; type =3D 2; }, );'