Can you lock a xpage document off a value of a field? I see there is a readonly property, but the property will not allow me to validate against a existing field value.
Subject: There appears to be multiple concerns here…
- Bear in mind I don’t use the Design tab, so it may be I don’t understand what’s being said. Given that, it seems to me there are three items presented:
- Document locking in a XPage.
-
This is possible, but it’s ungainly, which means it’s “not perfect”. Then again, locking in Notes client code isn’t perfect, either. Since I haven’t managed to complete a XPages application to deployability I can’t say if locking in a XPage is better or worse than locking in the Notes client.
-
What I (currently) do is lock the XPage in postOpenDocument, then unlock it using AJAX on window close. The code is fairly small. Writing that code took weeks and weeks and weeks of crashes and frustration.
-
Validating against a field.
-
“Locking against a field”.
- I can’t speak to either of the above, especially in light of document locking.
Hope this helps…
Subject: Can you post the Code
David, can you post the code.
Thanks