barbotte
asked on
Changing value of a field
Hi!
I started learning Notes Designer last week, and I didn't see Lotus Script at all!
I only saw Forms, Views, Framesets and stuff like Hide-when, Roles and some basics formulas like @Command( [FileSave] ); or @Name([CN];@UserName);
The only thing I can't find out is simply to change the value of a field on FileSave, for example...
I tried this on an action button, just before the @Command( [FileSave] ); :
FIELD filedName := "a string";
But it doesn't work!
I started learning Notes Designer last week, and I didn't see Lotus Script at all!
I only saw Forms, Views, Framesets and stuff like Hide-when, Roles and some basics formulas like @Command( [FileSave] ); or @Name([CN];@UserName);
The only thing I can't find out is simply to change the value of a field on FileSave, for example...
I tried this on an action button, just before the @Command( [FileSave] ); :
FIELD filedName := "a string";
But it doesn't work!
ASKER
Well, the value a the field is computed, maybe that could be the problem??
But I simply cannot put this field as Editable... Still, I must be able to change the value, so...
But I simply cannot put this field as Editable... Still, I must be able to change the value, so...
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I've put a defaut value... But as it's a kind of "status" field (initial, open, assigned...) I don't want the people to change the value, and I want it computed only if some others fields are completed or if data is entered somewhere...
What would be the solution then, if I want a non-editable field which could still change value?
What would be the solution then, if I want a non-editable field which could still change value?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Make it "Computed when composed".
ASKER
Thank you! it works!
I'll double the points to give you each 50 points, thank you for your time and your fast answers!
I'll double the points to give you each 50 points, thank you for your time and your fast answers!
ASKER
there it is...
The real cool thing is that you know one thing more about Domino developement now :)
That should work... in a form, add this as an actio button:
FIELD someFieldThatIsAlreadyOnTh
@Command([FileSave])
The field should already be a field added to the form design. Make sure the name is spelled the same.
Cheers!