Select value in a Form (options)

Somehow, I have problems with the options this week. Maybe one of you can help me.
I have a form, this is a select. The individual options are loaded, but not selected.
Sometimes my value is selected and sometimes not.

Please Help me.

Here is an excerpt from the Select.

}, { type: "select", label: "<?PHP echo PERSONENTYP; ?>", name: "idPersonentyp", id: "idPersonentyp", bind: "idPersonentyp", connector: "modules/connector/options_Personentyp.php", options: [{ text: " ", value: "" }] }, {

Formconnector

[code]<?PHP
require_once(“…/…/conf/db.php”);
require_once(“…/…/ext/codebase/connector/form_connector.php”);

$conn=@mysql_connect($db_host,$db_benutzer,$db_passwort);

if (!$conn) {

	logging ('Keine Datenbankverbindung möglich.', 'ERROR','db');
	
}

mysql_select_db($db_datenbank);

$form = new FormConnector($conn);
$form ->render_table("Personen","idPersonen","idPersonentyp,idAbteilung,idKunde,aktiv");

@mysql_close($conn);

?>[/code]

Optionsconnector

[code]<?PHP

require_once("../../conf/db.php");
require_once("../../ext/codebase/connector/options_connector.php");

$conn=@mysql_connect($db_host,$db_benutzer,$db_passwort);

if (!$conn) {

	logging ('Keine Datenbankverbindung möglich.', 'ERROR','db');
	
}

mysql_select_db($db_datenbank);

$options = new SelectOptionsConnector($conn);
$options->render_sql("SELECT idPersonentyp, bezeichnung FROM Personentyp","idPersonentyp","idPersonentyp,bezeichnung");

@mysql_close($conn);

?>[/code]

Hi,
sorry for the delay in answering.
Could you provide sample or maybe url to page with this issue?

By the way, select can be not selected in case if loaded in grid cell value doesn’t exist in combo-list.

Thanks for the help, here is the URL:

###############
###############
###############

Would be nice if we could manage it.

While testing from our side the list is always filled with correct options.
Is there some step which need to be repeated to reconstruct the issue, or it occurs just time-to-time ?

from time to time, at every second or third page of the calling.

Try to change your code in next way, instead of calling

     myform.load("formconnector.php");

you can try use

myform.getCombo("idPersonentyp").attachEvent("onXLE", function(){ myform.load("formconnector.php"); })

in such case loading data in the form will start only after data loaded in combo, and value will be set correctly each time.