Home » Miscellaneous » NRS Scripts

Category Archives: NRS Scripts

Clear Search Dialog Script

  1. Create a scripts folder in the installation directory if one does not already exist.
  1. Create a file called search.nrs in the newly created scripts directory.
  1. Using a text editor, copy and paste the following code into the search.nrs file.

 

Sub SearchDlg_OnInitDialog(dlg)

dlg.ClearAll

End Sub

Clear Workspace Search Dialog Script

  1. Create a scripts folder in the installation directory if one does not already exist.
  1. Create a file called wssearch.nrs in the newly created scripts directory.
  1. Using a text editor, copy and paste the following code into the wssearch.nrs file.

 

Option Explicit

Sub WorkspaceSearchCmd_PreOnOk(dlg)

Dim parms ‘As IManProfileSearchParameters

Dim parm ‘As IManProfileSearchParameter

Dim sVal

set parms = dlg.IManFolderSearchParameters

If parms.Contains(3) Then

set parm = parms.ItemByAttribute(3)

sVal = parm.Value

parm.Value = “*” & sVal & “*”

End If

End Sub

Clear the Description Field on Save

Problem:

How do I clear the description field on the Enhanced Save Dialog when a ‘Save As’ is performed.

Solution:

Create a custom .NRS script named FileSave.nrs containing the following information.

NST nrDescription=3

Sub IManFileSaveDlg_OnInitDialog(dlg)
Dim arrReqFields

‘MsgBox “IManFileSaveDlg”
dlg.SetAttributeValueByID nrDescription, “”, 1

arrReqFields = Array(nrDescription)
dlg.RequiredList = arrReqFields

End Sub

Save the FileSave.nrs file to

64-bit OS:

C:\Program Files\Interwoven\WorkSite\Scripts

32-bit OS:

C:\Program Files (x86)\Interwoven\WorkSite\Scripts