Modeless dialogue and update

Hi all

I have created a modeless dialogue which works so far but I have the problem that properties like
var file = data.func.sourcetab.selected_files(0);
var file = data.func.sourcetab.path;
are not updated when the dialogue is open and switch between folder in (the same) lister. Can someone provide with a short example or point me into the right direction?

Thanks in advance

Call sourcetab.update when you want a new snapshot of the tab's state.

Thanks. I thought it would be something easy that like that ... but have not found Update() in the manual. But ned to double check.

Cheers