Is it possible to use modules in data binding?

I am trying to use a variable defined in the Helpers module for the some data binding like this:

image

I don’t understand whey the Helpers module and the Helpers.shifting_to_moving_item variable are both available and printed before processing the databinding, but the databinding says they are not available:

Does it mean that modules cannot be used in databinding?
Or am I doing something wrong?


The reason why I am using a global value instead of the usual value inside self.item is that all the items are affected in the same way by the same variable.

I want to show/hide some components and set some icons according to the current status of the form. The default status is to show buttons to delete items in the repeating panel, the “select destination” status hides the delete buttons (and other stuff) and changes some other button icons.

I usually set an attribute within the form and bind to that. E.g.

from ... import Helpers

class MyForm(MyFormTemplate):
     def __init__(self, **properties):
        self.helpers = Helpers
3 Likes