# Dynamic binding with custom callback function

**URL:** <https://community.br-automation.com/t/dynamic-binding-with-custom-callback-function/12556>\
**Category:** Widget Development Tool Chain\
**Tags:** mapp-view, wdtc-question\
**Created:** [September 7, 2026, 2:11pm UTC](https://community.br-automation.com/t/dynamic-binding-with-custom-callback-function/12556 "2026-09-07T14:11:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![florent.boissadier](https://avatars.discourse-cdn.com/v4/letter/f/FF8800/32.png) [@florent.boissadier](https://community.br-automation.com/u/florent.boissadier)\
**Post date:** [September 7, 2026, 2:11pm UTC](https://community.br-automation.com/t/dynamic-binding-with-custom-callback-function/12556/1 "2026-09-07T14:11:14Z")

</div>

Hi everyone,

I have a question about dynamic binding in WDTC. Here’s my use case:  
I need to fetch information from an OpcUa server, but the number of nodes isn’t known at widget compilation time—all the data is retrieved at runtime.

Currently, I’m using an OpcUa read for each node I gather at runtime, with a time interval to avoid spamming the server. However, these nodes aren’t properties of my widget; they’re only used internally in the widget’s code.

To optimize this, I’d like to use bindings to:

1. Avoid spamming the OpcUa server.
2. Only fetch values when they change.

The issue is that bindings seem to require properties and their getters/setters to be pre-declared.  
Is there a way to pass a custom callback to a dynamic binding? This would allow me to handle the data dynamically without declaring everything upfront.

Thanks for your insights!  
Florent

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/brcommunity/original/1X/a202d64f0f03e22a662ed33fbbca6879f1efb794.jpeg) [@system](https://community.br-automation.com/u/system)\
**Post date:** [September 22, 2026, 2:16pm UTC](https://community.br-automation.com/t/dynamic-binding-with-custom-callback-function/12556/2 "2026-09-22T14:16:54Z")

</div>

Automatically bumped on September 22, 2026, 2:16pm UTC



---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/brcommunity/original/1X/a202d64f0f03e22a662ed33fbbca6879f1efb794.jpeg) [@system](https://community.br-automation.com/u/system)\
**Post date:** [October 7, 2026, 2:20pm UTC](https://community.br-automation.com/t/dynamic-binding-with-custom-callback-function/12556/3 "2026-10-07T14:20:22Z")

</div>

Automatically bumped on October 7, 2026, 2:20pm UTC



---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/brcommunity/original/1X/a202d64f0f03e22a662ed33fbbca6879f1efb794.jpeg) [@system](https://community.br-automation.com/u/system)\
**Post date:** [October 22, 2026, 2:28pm UTC](https://community.br-automation.com/t/dynamic-binding-with-custom-callback-function/12556/4 "2026-10-22T14:28:52Z")

</div>

Automatically bumped on October 22, 2026, 2:28pm UTC



---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/brcommunity/original/1X/a202d64f0f03e22a662ed33fbbca6879f1efb794.jpeg) [@system](https://community.br-automation.com/u/system)\
**Post date:** [November 6, 2026, 2:41pm UTC](https://community.br-automation.com/t/dynamic-binding-with-custom-callback-function/12556/5 "2026-11-06T14:41:17Z")

</div>

Automatically bumped on November 6, 2026, 2:41pm UTC



---

<div class="post-metadata">

**Author:** ![florent.boissadier](https://avatars.discourse-cdn.com/v4/letter/f/FF8800/32.png) [@florent.boissadier](https://community.br-automation.com/u/florent.boissadier)\
**Post date:** [November 6, 2026, 2:51pm UTC](https://community.br-automation.com/t/dynamic-binding-with-custom-callback-function/12556/6 "2026-11-06T14:51:49Z")

</div>

@kovarj any ideas about someone could have an answer about this?

---

<div class="post-metadata">

**Author:** ![kovarj](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/kovarj/32/537_2.png) [@kovarj](https://community.br-automation.com/u/kovarj)\
**Post date:** [November 8, 2026, 11:50am UTC](https://community.br-automation.com/t/dynamic-binding-with-custom-callback-function/12556/7 "2026-11-08T11:50:32Z")

</div>

Lets try to ping @hobi72

---

<div class="post-metadata">

**Author:** ![hobi72](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/hobi72/32/68_2.png) [@hobi72](https://community.br-automation.com/u/hobi72)\
**Post date:** [November 9, 2026, 7:58am UTC](https://community.br-automation.com/t/dynamic-binding-with-custom-callback-function/12556/8 "2026-11-09T07:58:53Z")

</div>

pong …

A dynamic binding, is still a binding. For that reason you need everything, which is also needed for a normal binding - which includes the getters and setters of a property to bind. For this use case there are at least two workarounds:

1. Widgets can be created at runtime, too. So it would be possible to implement a simple widget, which basically has only a (bindable) “value”. At runtime you create as many instances of this widget as child of your widget … then you can bind your data to these widgets. A example which goes in that direction can be found in the WDTC - under “usecases”, there is a widget “DynamicBindings” - check this out!
2. We also support mapp Connect - it is a different technology package, not directly related to the WDTC, but with mapp Connect you have all the OPC-UA functions on a “low level”, which allows you to create real OPC-UA subscriptions, etc. This can also be used within the WDTC.

It might also be worth to look into “MotionPad” … The MotionPad also created dynamic bindings and arranges itself internally.

CHH

---

<div class="post-metadata">

**Author:** ![florent.boissadier](https://avatars.discourse-cdn.com/v4/letter/f/FF8800/32.png) [@florent.boissadier](https://community.br-automation.com/u/florent.boissadier)\
**Post date:** [November 9, 2026, 9:09am UTC](https://community.br-automation.com/t/dynamic-binding-with-custom-callback-function/12556/9 "2026-11-09T09:09:43Z")

</div>

Thank you for the really clear answer as always!!  
I’ll check this out!
