ComboBox hidden values
ComboBox hidden values
I have a list that contains a user friendly site name and a corresponding OU for active directory, such as "Monument, OU=monument,DC=company,DC=local". I want to only display "Monument" in the combobox but pass the OU info through. Can that be done?David
ComboBox hidden values
I'm no familiar with AD objects, but if it is an object with properties you can use the DisplayMember to select the property to display in the combobox. See the Spotlight on the ComboBox control article for more information. If it is a string, then you will need to manually parse out the information. David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
ComboBox hidden values
Leaving AD out of the equation for now, if I have the text string "Monument,
OU=monument,DC=company,DC=local", can I display the first part and then pass the second part to the script? I've checked out the spotlight article but it wasn't very clear. Is DisplayMember a property of the control or can I only access it programatically?
OU=monument,DC=company,DC=local", can I display the first part and then pass the second part to the script? I've checked out the spotlight article but it wasn't very clear. Is DisplayMember a property of the control or can I only access it programatically?
ComboBox hidden values
DisplayMember is a property of the ComboBox. You can see how it is set by looking at the definition of the Load-ComboBox helper function. David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.