I have a list that is being shown using a block. The list has a filterscreen created. This all works fine. List displays, filters etc.
I try to add a button to the screen using crm.addButton and I get a javascript response of button added but button is never added to screen. That's problem number one.
Problem number two is even if I get the button to add how to I call the ExportToFile functionality that is built into system screens.
I tried building a .net page that showed the list since I can then build my own button to export BUT then I couldn't provide filtering capability. At least not by trying to add a filterscreen as an entrygroup. That always threw exceptions.
I tried building a.net page that inherited from ListPage. This let the filtering work BUT not in a way that I needed.
So I came back to the build screens, lists, runblocks all in the UI. but now I can't get this custom block to add buttons. Even if I go to a system list that just doesn't have the exporttofile, if I add the button to export to file it and tell the button to call javascript action ExportToFile it just logs me out of the CRM.
Any help or ideas is appreciated.