Florin M.
Florin M.

Reputation: 2169

Lotus Notes - <Computed text> issue

I have an editable field called Number. This field value changes to "" every time a button is clicked.

So, I want to display its value using a < Computed Text > using as default value Number.

Is there any chance after the button was clicked, the < Computed Text > to display the 'old' value from the field Number?

Thanks!

Upvotes: 0

Views: 664

Answers (3)

Frantisek Kossuth
Frantisek Kossuth

Reputation: 3524

Use computed for display field with formula:

@If( @IsDocBeingLoaded; Number; @ThisValue )

That way it will show value of Number field since opening.

Upvotes: 0

Ken Pespisa
Ken Pespisa

Reputation: 22284

Yes. You just need to store that old value somewhere before you clear it:

Field OldValue := Number;

And then retrieve it later:

Number := OldValue;
@Command([ViewRefreshFields]);

Upvotes: 2

pstr
pstr

Reputation: 384

As I've understood you need to use Help Description and Field Hint in field properties instead of your combination of computed text and event handlers.

Upvotes: 0

Related Questions