Subscribe Bookmark RSS Feed

Data table subscriptions and data views

Highlighted
matteo_patelmo

Community Trekker

Joined:

Dec 23, 2015

Hello,

I have a table with 2 data views and I'd like to intercept the user closing either one of them. The following code does not work as I 'd like , since both callback functions are only activated when the second data view is closed.  Does anybody have a workaround for this?  Thanks, Matteo

 

adt= new table("a");

wait(0);

bdt=adt<<new data view;

adt<<subscribe("a",on close(print("closea")));

bdt<<subscribe("b",onclose(print("closeb")));