Editor's Note:
This tip only works for ND6.
Use this simple formula to store the last used settings or values in any field and in any form without formulating the field name.
Code
Use this simple formula to store last used settings or values in any field and in any form without formulating the field name:
In the default value section set the following formula:
@GetProfileField("MyProfilename";
@ThisName; @UserName);
and in the Input Translation section put this formula:
@SetProfileField("MyProfilename";
@ThisName; @ThisValue; @UserName);
REM {Keep here the current value or
set any other required translation formulas
such as @Trim(@ThisValue).};
@ThisValue;
Then any time the user opens a new document or dialog, they will find the last used value as a default value.
Do you have comments on this tip? Let us know.