Combobox shows first item in list when no data in BO


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.3K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
And does this mean I will have to have code to handle this for every bound SF combobox?



Again, the situation is that I've a bound combobox, with the list being filled via a BO. If the BO the combo is bound to is empy, the first item in the list is selected initially.
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.3K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Is setting the TopMostItem to nothing the same as "unselecting" any item?
StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Ivan is correct... the best way to solve your problem is to set that TopMostItem property to something that makes sense.
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hi Greg.

Just sharing my experience with it ... have you tried playing with the TopMostItem property of the ComboBox? I usually type --- in it.

Cheers.

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.3K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I have a SF combobox that is bound to a field in a BO. If the BO has no data, the first item in the combo box is shown (incorrectly, there is no data in the BO yet). If I hit Add, the combo clears. If I hit undo, it stays clear. How do I ensure that the combo shows nothing when it first shows if the BO is empty?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search