Manage Learn to apply best practices and optimize your operations.

How Solve Problems With Computed For Display Fields In Script?

How solve problems with Computed for display fields in script? sometimes the
values of computed for display fields will not be available for script. why
so? if u access the filed values using front end classes (i.e
uidocument.fieldgettext("filedname")) there won't be any problem. if u access
using back end u can access provided if u avoid some statements.
using front end u can access computed for display field values.
field - is a compute for display field
dim uiws as new notesuiworkspace.
dim uidoc as notesuidocumnet
set uiws = uiws.currentdocumnet
val = uidoc.fieldgettext("Filed")

but if u convert it to back end then there will be a problem.
for this script no problem.

dim uiws as new notesuiworkspace.
dim uidoc as notesuidocumne
dim doc as notesdocumentt
set uiws = uiws.currentdocumnet
dim doc = uidoc.document
val = doc.filed(0)

if u put refresh document in between then u can't access the field value..

dim uiws as new notesuiworkspace.
dim uidoc as notesuidocumne
dim doc as notesdocumentt
set uiws = uiws.currentdocumnet
call uidoc.refresh
dim doc = uidoc.document
val = doc.filed(0)

so one should not use refresh method in this type of script statements.

this is the way one can access computed for dispaly fieldvalues from back end..

Dig Deeper on Domino Resources - Part 5

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close