Problem solve Get help with specific problems with your technologies, process and projects.

The R5 equivalent to !@ThisValue in R6

I'm not able to find any function like !@ThisValue in R5, as this formula is available only in R6. Could you suggest to me any way to achieve this in R5?
@ThisValue is not available in R5. You must just use the field name in the formula, e.g. instead of @If(@ThisValue = ""; @Failure("You must enter a document title."); @Success), you would write @If(Subject = ""; @Failure("You must enter a document title."); @Success).

The nice thing about @ThisValue and @ThisName is that you can write generic formulas that can be used in different fields without modification. This is especially handy where you have a large number of similar fields -– it makes it much easier to make sure that all the fields' formulas are referring to themselves.

For instance, you have fields named xxx1, xxx2, xxx3, etc. in the first column of a table; yyy1, yyy2, yyy3, etc. in the second column; and so on.

Another option in a case like that is to do your input translation or validation using LotusScript in the document's Querysave event. If there are a large number of fields with similar names and the same validation rules, you can use a For loop to iterate through all the table rows.

Set doc = Source.Document
For i = 1 to 15
 Xxx = Fulltrim(doc.GetItemValue
("xxx" & i)(0))
 Yyy = doc. GetItemValue("yyy" & i)(0)
 If xxx <> "" And yyy = "" Then
  Msgbox "You must enter a
  Continue = False
 End If

Do you have comments on this Ask the Expert question and response? Let us know.

Dig Deeper on Lotus Notes Domino Formula Language

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




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