[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


Changing value of a field

Posted on 2004-08-02
Medium Priority
Last Modified: 2013-12-18

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!
Question by:barbotte
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
LVL 31

Expert Comment

ID: 11694351
Hi barbotte,

That should work... in a form, add this as an actio button:
FIELD someFieldThatIsAlreadyOnTheForm := "some value";

The field should already be a field added to the form design.  Make sure the name is spelled the same.


Author Comment

ID: 11694472
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...
LVL 19

Assisted Solution

RanjeetRain earned 200 total points
ID: 11694544
Computed fields work differently. The problem is that they DO NOT RETAIN data after having been closed, even if you save it. Because you simply can't save their values. As long as the document is open, you can CHANGE, you can READ the modified value. But all this lasts only as long as the document is open. As soon as you close down and reopen, its value gets reset to what you specified as its DEFAULT VALUE.

That's why a default value is a must for a computed field.
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.


Author Comment

ID: 11694621
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?
LVL 31

Accepted Solution

qwaletee earned 200 total points
ID: 11694829
Use computed when composed.  That saves with teh document.  It does not allow user eidts, it is saved with teh document, and the formula is only ocmputed when the value did not previously exist.  So, when you change the value, the formula won't compute again, and it will retain the value you have changed it to.
LVL 19

Expert Comment

ID: 11694848
Make it "Computed when composed".

Author Comment

ID: 11694895
Thank you!  it works!

I'll double the points to give you each 50 points, thank you for your time and your fast answers!

Author Comment

ID: 11694898
there it is...
LVL 19

Expert Comment

ID: 11694929
The real cool thing is that you know one thing more about Domino developement now :)

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question