Selectbox options on eTemplate

Hi,
I’d like to know how could I set the options of a selectbox on eTemplate.
I’m creating some fields there, but I could not put more than one option on selectbox.
How could I do this?

Regards,
Natasha Dias.

You can use the $sel_options parameter of etemplate::exec():

http://www.egroupware.org/egwdoc/nav.html?etemplate/inc/class.etemplate.inc.php.html#exec

An other option is to use $content[‘somename-options’] for selectbox
’somename’. Anyway you have to pass an array with value => label pairs.

I suggest looking in the etemplate documentation of Klaus CodeCorner
tutorial: www.egroupware.org/wiki/code+corner

Ralf

Natasha Dias schrieb:

Hi,
I’d like to know how could I set the options of a selectbox on eTemplate.
I’m creating some fields there, but I could not put more than one option on
selectbox.
How could I do this?

Regards,
Natasha Dias.

–
Ralf Becker
Director Software Development

Stylite GmbH
[open style of IT]

Morschheimer Strasse 15
67292 Kirchheimbolanden

fon +49 (0) 6352 70629-0
fax +49 (0) 6352 70629-30
mailto: rb@stylite.de

www.stylite.de
www.egroupware.org


Geschäftsführer Andre Keller,
Gudrun Müller, Ralf Becker
Registergericht Kaiserslautern HRB 30575
Umsatzsteuer-Id / VAT-Id: DE214280951


Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf


eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers