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

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 ...

  • HTML cheat sheet

    This is a really cool cheat sheet if you're looking to learn more about HTML. You'll find just about everything you every wanted ...

  • Carol Woodbury: Security

    Carol Woodbury

SearchDataCenter

SearchContentManagement

Close