Problem with Query.saveQueryViews() on public views | Andy Straw | 2014-01-06 13:42 |
Status: Closed | ||
As I have experimented with this more, what I'm seeing is that there end up being two views with the same name: one public, and one private. If you go to Manage Views, you see only the public one; if you delete that one, the private one then shows up. Similarly, only one shows up in the View menu, and it seems to be the public one; if you delete it, then the private one shows up. When my code tries to update the view, it always updates the private one. - If there is only a private one, that one gets updated, and everything works fine. - If there is only a public one, it seems to be able to create a private one with the same name. But now there are two views where I really only want one, and on subsequent attempts to update the view... - If there are both a public and a private, I get an error. If I could get public/private info about the view from getQueryViews() and set public/private on the view in setQueryViews() I could always update the single view. Andy |
||