Changing tables (or datasets and captions of one table) on a screen

I found out, that my beloved CUBA platform has no Messaging or Notifications mechanism. So that i decided to write my own. I think that for my task it should have a email-like interface, so here’s my question:
Could i (and how do i) create a screen, which will change tables as i click buttons?
e.g. i want to see all incoming messages as i click ‘inbox’, and all outgoing messages as i click ‘sent’. or even draft messages as i click some third button.


Yes, you can do it. The only thing you should to do is to set other datasource to your table.

This feature was implemented some time ago: YouTrack.

Best regards,