Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Autoselecting list items
I need to be able to add employees to a list using addlistitem as various organizational units are selected. These employees can belong to multiple organizational units, so I'm using employeeID for my ItemID to prevent duplication. So far, it's simple.....
These employees must appear on the list as selected (the user will de-select unwanted employees).
Here's what does NOT work:
SCAN <>
THIS.addlistitem(empID, emplID, 1)
THIS.addlistitem(empName, empID, 2)
THIS.<>.selected(ItemIDToIndex(empID)) = .T.
ENDSCAN
This code does add the employees to the list, but they are not selected.
I can't just follow the SCAN with a loop through the list turning the selected property on - that would un-de-select (ain't english wundermous !) the employees the hapless user had already culled.
According to "The hacker's Guide", the SelectedID property is not reliable (Tamar and Ted have been right on every other thing I've checked)
Any help or suggestions appreciated
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