I have a handle to the data source, that I know belongs to a document.
The document can be a new document.
I need to know the state: Is it new, open or edit?
Basically I wish to hide/show a button in a custom control, based on the state of the document this custom control is in. The custom control it self has other data sources, so I can't use currentDocument - because this will reflect the data source in the custom control.
If there's a simpler way to solve this problem I'm all ears!
Running on a Domino 8.5.3 FP3 server.
Hope this is clear.
Thanks!
/J