Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>I have created two list boxes.
>
>Code for a button.click() that populates listbox (1)
>
>SELECT User.fuse_refe, User.fuse_name from user where empty(user.fuse_divi) order by User.fuse_refe into cursor arRefeName
>
>this.parent.ltRefeName.columncount = 2
>this.parent.ltRefeName.columnwidths = "32,280,"
>this.parent.ltRefeName.width = 320
>this.parent.ltRefeName.RowSourceType = 6
>this.parent.ltRefeName.RowSource = 'arRefeName'
>this.parent.ltRefeName.controlSource = "arRefeName.fuse_refe"
>this.parent.ltRefeName.BoundColumn = 1
>
>
>
>listbox(1).click which then populates listbox (2)
>
>SELECT DISTINCT User.fuse_divi, User.fuse_name from user where user.fuse_refe = arRefeName.fuse_refe and !empty(user.fuse_divi) order by User.fuse_divi into cursor arDiviName
>
>this.parent.ltDiviName.columncount = 2
>this.parent.ltDiviName.columnwidths = "32,280,"
>this.parent.ltDiviName.width = 320
>this.parent.ltDiviName.RowSourceType = 6
>this.parent.ltDiviName.RowSource = 'arDiviName'
>this.parent.ltDiviName.controlSource = "arDiviName.fuse_divi"
>this.parent.ltDiviName.BoundColumn = 1
>this.parent.ltDiviName.refresh()
>
>
>The problem is I click on listbox (1) and select the seventh item in it. This populates listbox(2). I then click on listbox (2) which then reset the pointer in listbox (1) to line/item one. Any idea's?
>
>TIA
>
>James
James,
If you are looking for a work around, you could save the ListItemId of List 1 and save it to a property. When you select List 2, Reset the Selected() item in list 1 to the saved ListItemId.
-Ed
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement