REM "Get Document Unigue ID for document which stores the next order
number";
uid := @Select (1;
@DbColumn("Notes":"NoCache";"":"";"OrderNumber";1));
REM "retrieve the next order number";
n := @GetDocField(uid; "NextOrdNumber");
REM "increment the next order number";
temp := n + 1;
REM "store the next order number back into the order number document";
@SetDocField(UID; "NextOrdNumber"; temp);
REM "return the next order number";
REM "@Return(n)";
Any idea why it doesn't seem to work? The field is assigned the value
from the @GetDocField statement, but the variable "n" is never set and
the rest of the formula never gets executed. It seems that execution
stops right after the @GetDocField statement. No matter what I do I
can't seem to get the @SetDocField part to do it's job.
Help!!! This is critical for the application im developing.
I'd prefer and email response if possible.
Thanks,
Joann Melnik
jme...@lucent.com
Before we start, we need to know which version of Notes you are using.
Is it Notes 4.x or Notes 3.x? The answers may be quite different.
Notes 4.x has scripting capability and so you can do a lot without
using formulas (@functions) which are difficult to write and debug.
We will look into your question and will get back to you soon but let us know
what Notes version you are using.
Jerry and the Notes team at Lerman Associates
Westford, MA (The town that brings the world Lotus Notes!)
--->>> Up to Warp 3 with OS/2
> We will look into your question and will get back to you soon but let us know
> what Notes version you are using.
>
> Jerry and the Notes team at Lerman Associates
> Westford, MA (The town that brings the world Lotus Notes!)
>
> --->>> Up to Warp 3 with OS/2
Sorry-- I should have included that in my original message. I'm using
Notes 4.x (4.11a i think) on an NT Server.
joann melnik
jme...@lucent.com
The problem appears with the statements after that. For whatever reason,
n is never getting assigned the value of the @GetDocField function. It
appears to immediately return that value as the value for the order
number field without executing the rest the statements in the formula.
I verified this with @Prompt statements after every key statement in
the formula.
I can't figure out what is going on .
joann melnik
jme...@lucent.com
In a calculated field of form:
FIELD DocID := @DocumentUniqueID;
In Your formula:
REM "Get Document Unigue ID for document which stores the next order number";
uid := @Select (1; @DbColumn("":"NoCache";"";"OrderNumber";"DocID"));
REM "retrieve the next order number";
n := @GetDocField(uid; "NextOrdNumber");
.....
Bye.
Emanuele Sandri.