Dear all!
I thought it was a quite simple question, but studying
class.custumfields_widget.inc.php (and most of the related files) didn’t
direct me towards the answer:
How can I pre-select a value in a select-field that is created via
etemplate::empty_cell. For example, assume a select box with the
following values:
$sel_options = array(‘key1’ => ‘val1’, ‘key2’ => ‘val2’);
$mycell =
etemplate::empty_cell(‘select’,‘foo’,array(‘sel_options’=>$sel_options));
How can I (pre-)select ‘key2’?
Furthermore, is there any documentation regarding the attributes-array
passed to empty_cell? Or any hint where to look it up? … well …
might be the file where all the single widgets are processed, I guess…
I’m quite new to this list, so it may have been asked before: Is there
any plan to rewrite the etemplate stuff to a more object oriented
approach instead of using an array and a bunch of referenced variables?
Thanks in advance,
Patrick
–
RUBION - Ruhr-Universität Bochum
Universitätsstraße 150, NI 06/265
D-44780 Bochum, Germany
Fon: +49 234 32 24245 Fax: +49 234 32 14215
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers