Skip to main content

Why is the masterfield copied in to my selection box?

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

When I use the same selection box multiple times the value in the masterfield automatically gets added.  How can I stop this happening?

Resolution:

This is quite a common (and frustrating) problem which a number of users have hit over the years. To correctly populate the selection box with the master field preset you need to do:

    move "Preset" master-field

    delete-list-item sb1 1 item-count

    insert-many-list-items sb1 group-item item-count

    refresh-object sb1

where:

master-field is the Dialog data item containing the selected choice.

sb1 is the object name of the selection box.

group-item is the Dialog data array containing the items to populate the selection box with.

item-count is the number of entries in our selection box.

This ensures that the selection box is cleared out prior to population.

Old KB# 5012