Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
NRS script problem
System
Hi,
I have a strange problem using a nrs script with Filesite SP3 to check that
a field is set, and if not display a message when saving a file. It work so far as to check if the field is set and displays the message if not, but the ImanFileSaveDlg does not cancel by setting Dlg.CloseOnOK = False
Context.Add "iManExt.DoOK", False
The procedure continues with the PreOnOK and PostOnOK events and the
Save button is disabled. Canceling out of the Save File dialog then saves the
document.
Appreciate any suggestions.
filesave.nrs
CONST nrCustom3=27
Sub IManFileSaveDlg_OnOK(Dlg)
On Error Resume Next
'Msgbox Dlg.GetAttributeByID(nrCustom3)
If Dlg.GetAttributeByID(nrCustom3) = "" then
Msgbox "You have to fill in Custom3. Please click on Detail"
Dlg.CloseOnOK = False
Context.Add "iManExt.DoOK", False
End if
End Sub
Find more posts tagged with
Comments
There are no comments yet