Consultor Eletrônico



Kbase P140120: Adding items to Combo-box with LIST-ITEM-PAIRS is slow
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   1/8/2010
Status: Verified

SYMPTOM(s):

Adding items to Combo-box with LIST-ITEM-PAIRS is slow

Combo-box with LIST-ITEM-PAIRS option takes longer to populate

Using ADD-LAST or full list causes combo-box to populate slowly when using LIST-ITEM-PAIRS option

Problem occurs when adding one item at a time

Problem occurs when adding full list at once by setting the LIST-ITEMS-PAIRS attribute

FACT(s) (Environment):

LIST-ITEM-PAIRS option is enabled
SORT option is enabled
ADD-LAST is used to add individual items to the combo-box
LIST-ITEMS-PAIRS attribute is used to add all items to the combo-box
Combo-box populates faster without LIST-ITEM-PAIRS option
OpenEdge 10.1C
OpenEdge 10.2A
All Supported Operating Systems

CAUSE:

Bug# OE00180337

CAUSE:

ADD-LAST() is slow on LIST-ITEM-PAIRS combo-boxes because it queries every item in the list to figure out where the added item ended up in the sort order. This is unnecessary on an unsorted list, since the item will always be added to the end of the list in that case.

FIX:

Upgrade to OpenEdge 10.2B or later