Call initialize() from a UiActionAction


I would like to know if within a type that mixes UIActionAction I can call the initialize() function of another type that mixes UIComponent - aim is to have some data on this component recalculated

I have tried UIMyType.initializa() but getting an error


Did you maybe mean UIViewComponent? UiComponent does not have an initialize method. If you did mean UIViewComponent and initialize is not giving you the behavior you need, there is also refresh and removeComponent/addComponent methods for UIViewComponent.


@marcosordi UIViewComponent.initialize is a member function, so you need to call it on an instance of your type, not on the type itself (or provide the instance as the first argument).


Thanks I used the refresh() and worked fine