Hi,
I have an RadDropDownList filled with some record of a table (ttSoc) using DataSource and bounded functionality.
I have a button that lets me add/delete records from this table (ttsoc).
Impossible to update the RadDropDownList
my code:
in the form load I run ChargeCodeSociete('InitBe').
In the click button I run ChargeCodeSociete('affiche').
METHOD PRIVATE VOID BtnSociete_Click( INPUT sender AS System.Object, INPUT e AS System.EventArgs ):
// On instancie la classe
oFrmSociete = NEW frmSociete().
// En attente du retour de la form en mode dialog box
WAIT-FOR oFrmSociete:ShowDialog().
oongDescriptionEtudeGeneral:ChargeCodeSociete('Affiche').
RETURN.
END METHOD.
IN oongDescriptionEtudeGenral FORM
METHOD PUBLIC VOID ChargeCodeSociete( INPUT ipcMode AS CHARACTER ):
CASE ipcMode:
WHEN 'InitBe' THEN DO:
beSociete= NEW fichier.description_etude.be.beSociete().
beSociete:ReadbeSociete(OUTPUT DATASET dsSoc).
//Associer le query du dataset au probadingSource
bsSociete:HANDLE = DATASET dsSoc:HANDLE.
END.
WHEN 'Affiche' THEN DO:
DATASET dsSoc:TOP-NAV-QUERY():QUERY-PREPARE("FOR EACH ttSoc").
DATASET dsSoc:TOP-NAV-QUERY():QUERY-OPEN().
DropDownListCodeSociete: ?????
END.
END CASE.
thank you for your feedback