Hi everyone!
I have a problem with a certain action formula and a form.
The code of a button (in a view, works on a selected document) is:
val:=@Prompt([OkCancelEdit]; “”; “Enter value”;0);
@SetField(“VALUE”;val); 'Or: FIELD VALUE=…
@Command([ViewRefreshFields]);
@Command([Compose];“CALLFORM”);
CALLFORM form inherits values from an underlying document.
The problem is: CALLFORM properly displays all the fields of selected document EXCEPT the newly entered “VALUE” field.
Is there any way to overcome this?
Thanks in advance,
Dmitry.
Subject: @SetField fails - ?
Use @Command([FileSave]) in your formula. Like so:
val:=@Prompt([OkCancelEdit]; “”; “Enter value”;0);
@SetField(“VALUE”;val);
@Command([FileSave]);
@Command([ViewRefreshFields]);
@Command([Compose];“CALLFORM”);
Subject: Re:Re:@SetField fails - ?
Unfortunately, this didn’t work…
It does save the changes in a VALUE field, but! this is not displayed in the newly created document…
Subject: RE: Re:Re:@SetField fails - ?
It works on my client. Are you sure you have inheritance enabled on the CALLFORM ? Does the inhetiting field have a formula that refers to the VALUE field on the main document ?
Subject: Re:Re:Re:Re:@SetField fails - ?
Yes and yes.
I’ve rewritten this action in LotusScript, it works, but it’s so-o-o-o cumbersome…
I’ll try @Formula again. Thanks for your answer, anyway.
Subject: RE: Re:Re:Re:Re:@SetField fails - ?
It might work to use @UpdateFormulaContext before the compose.