Add action to view (notes API)

I have empty database with 1 view and 1 shared action.

I would like to write code which can add action to the view (I mean to action bar of the view). I need to do it automatically.

I tried to do it via DXL, but it does not work correct with views that contains shared action.

So I decided to look for another way…

Any ideas?

p.s. is it possible to do it via Notes APi?

Subject: add action to view (notes API)

Yes it can be done using the C API.

You have to create an action bar and add the actions you want.

Please note that you have to close and reopen the application after you have modified your view. There are not C API functions to refresh the view design (or better there is no documentation on this function).