Hi,
one way to use a second table is to instantiate an other so_sql object
for that table, eg:
$this->options = new so_sql(‘my_app’,‘egw_my_options’);
Then you can query the options, eg. with
$sel_options[‘options’] =
$this->options->query_list(‘opt_label’,‘opt_id’,array(‘opt_type’=>$type));
Of cause you can also use the egw_db object direct.
Ralf
n.a.j schrieb:
hi all,
i already posted this into the german section, but no answeres yet.
i’m a noob at eGroupWare. But i code PHP for over 10 Years now.
the following problem occured by doing some tutorials for etemplate at
egroupware.
i followed the tutorials given by ralf (thanks a lot for these). by
extending the application used in this tutorial a run into some trouble.
for example:
there is a tmplate with 2 selctboxes. one is filled via the BO object
by using:
var $types = array(
‘key’ => ‘value’
);
and assign the array at the UI class:
$sel_options = array(
‘type’ => $this->types,
);
that works fine. no big deal. but the second selectbox (named:
storage) should be filled via a db table.
the problem now is, how to create e.g. a second SO object with another
table than the maintable of the application connected to fill the
array at the BO layer?
maybe i just need a hint !?
thanks a lot in advance
Jan
This SF.Net email is sponsored by the Moblin Your Move Developer’s challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers
–
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
cell +49 (0) 170 7815917
mailto: rb@stylite.de
www.stylite.de
www.egroupware.org
Geschäftsführer Andre Keller, Nigel John Vickers,
Gudrun K. Müller und Ralf Becker
Registergericht Kaiserslautern HRB 12087
This SF.Net email is sponsored by the Moblin Your Move Developer’s challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers