Manage Learn to apply best practices and optimize your operations.

Check If A New Field Exist On A Document

Check if a new field exist on a document

How often haven't you re-designed your document and the user need to resave it?

Here is some simple script-code to check if the new field exists on the
document.
Option Public
%INCLUDE "lsconst.lss"

Declaration:
Dim temp As Variant
Dim boxType As Long, ans As Integer


Sub:
temp=Evaluate("@IsAvailable(ReportPeriod_1)", Doc)
If temp(0) = 0 Then
ans% = Msgbox ("You must edit/save the current document again because of
new function on document" , boxType& , "Error on Doument")
Exit Sub
End If

Dig Deeper on Domino Resources - Part 3

SearchWindowsServer
Search400
  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/Search400.com community. These cheat ...

SearchDataCenter
SearchContentManagement
Close