Q

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
 value…
  Continue = False
 End If
Next

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

This was first published in May 2004

Dig deeper on Lotus Notes Domino Formula Language

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWinIT

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

SearchEnterpriseLinux

SearchVirtualDataCentre.co.UK

Close