Hi everyone,
I want to create a code that permits to refresh a list when we select data from another field of the form.
I have found through the internet this code but i don’t know how to use it in scriptcase:
" sub relationheberzone
DIM ltierheber as Object , ltierzone AS Object
DIM var_tierheber as integer
ltierheber = ThisComponent.DrawPage.Forms.getByName(“Standard”).getByName(“tierheber”)
ltierzone = ThisComponent.DrawPage.Forms.getByName(“Standard”).getByName(“tierzone”)
var_tierheber = ltierheber.SelectedItems(0)
ltierzone.ListSource() = array(“SELECT nom_zones, idzones FROM zones WHERE fk_idhebergement =” & var_tierheber)
ltierzone.refresh
end sub "
I would be grateful if anyone can point me!!!