Sie sind auf Seite 1von 1

Comparison of the Two Variants The two available view elements for presenting selected text via dropdown

lists raise the following question: When will which of the two view elements be active, that is, in which situations? If the default values from the Data Dictionary were to be provided, DropDownByKey would be an effective means of establishing a connection between the Data Dictionary and the user interface !or freely definable dropdown lists, however, you should consider various factors that can affect performance !or example, the use of the Drop-DownByIndex view element requires the creation of a context node, the instantiation of context node elements, and the manipulation of the leadselection These steps can adversely affect runtime when the number of selection list entries is high "owever, DropDownByIndex is easier to handle than DropDownByKey If you use DropDownByKey, the change of the attribute info affects all elements of a context node with cardinalities of # n or $ n %ou should therefore have a sound &nowledge of the dependencies involved 'hanges to the context node info are also very complicated and should only be made if you fully understand the potential of their affects !urthermore, because the changes always affect all attributes of all elements of a context node, you should only use the view element DropDownByKey if the number of values in the selection list is very high, changes frequently, and will be influenced dynamically (ote that you can begin with a DropDownByIndex view element and switch to DropDownByKey, but only if the system performance noticeably deteriorates When using dropdown lists in table columns, using the DropDownByIndex view element is inevitable if selection lists with different values are to be displayed for different rows The DropDownByKey view element cannot be used here, because the value set is always valid for all elements of a context node !or a table, this characteristic applies to every row and would therefore result in the same contents being displayed in every row

Das könnte Ihnen auch gefallen