RE: What are you trying to do? Alan Jacobs2 3.Aug.15 03:18 PM a Web browser Applications Development All ReleasesAll Platforms
Sorry I wasn't too clear
I have some shared Action buttons. I want to hide or show these in the action bar of a view.
One is to create a new document - so needs to be hidden if the document already exists.
The other is to edit a document - so needs to be hidden if it doesn't already exist.
I have a view with a working selection that shows either nothing or a single document. So I thought I could convert that SELECT statement somehow and use it in the HideWhen.
So the question boils down to - how do you best test to see if a document, that matches certain selection criteria, exists? Best I can come up with is to test for the contents of a field on that document. If the contents are empty or it returns an error then the document doesn't exist.