Expand my Community achievements bar.

Dynamically changing form binding

Avatar

Level 1

Hi,

I would like to dynamically change the binding variable (bind.ref) of a subform during runtime based on a "change event" triggered by a single/multiple selection in a list box, contained in a different subform.

List box A is part of subform A, during completion of the form, the user selects one or more entries from list box A and triggers a "change event". Based on this event a table, part of subform B, is filled with entries that depend on the users selection in the list box. The rows in this table are determined by the "bind.ref" value of subform B. That means, dependent on the list box selection "bind.ref" will be assigned with a different array, that is also constructed at runtime.

Before asking for hints to a possible solution, I would like to know whether it is possible in general to change the binding of a subform dynamically (so not in the "initialize event" as in Daniel's case), based on a "change event" triggered by a list box selection?

Regards,

Franz

2 Replies

Avatar

Level 10

Hi,

bindings connot be changed at runtime.

Avatar

Level 1

Hi radzmar,

Thanks for the reply, much appreciated.

I also found out more on that topic under another adobe forum post:

http://forums.adobe.com/message/3607404#3607404

So, yes it seems the binding of for instance a list box can't be modified once it's set.

I finally solved my issue by making subforms 'hidden' or 'visible' dependent on the items selected in a list box. This worked reasonably well.

Cheers,

Franz