Hallo,
i want to use beforeRender to set an image in combo.
Can i do this?
$options = new ComboConnector($res);
function custom_format($item) {
$land = $item->get_value(“LND_Land”);
$item->set_images($land);
}
$options->event->attach(“beforeRender”, “custom_format”);
$sql1 = “SELECT LND_Laendernummer,LND_Land FROM sta_mitarbeiter_land
ORDER BY LND_Land”;
$options->render_sql($sql1, “LND_Laendernummer”, “LND_Land”);
Hugo