Solved

lotus script to assign a value to a field on condition

Posted on 2008-10-21
3
721 Views
Last Modified: 2013-12-18
lotus notes  4.6/r5
domino r5


what I need:
I have a field that is a radiobutton - editable   with 2 options...

Off-Site/Desktop | Off-Site/Desktop
On-Site | On-Site


If a person selects   "On-Site"

I need another field("SiteProjectManager_1")  to change a value called   "JIM PARKER"
SiteProjectManager_1 -  a "Text"-computed for display....

I currently already have this in the "Value" for  "SiteProjectManager_1"

@If(ProjectSize = "";@Return("");@Success);
@If(ProjectSize ="20-200" ;"David Thomas";ProjectSize ="501-1000" | ProjectSize ="1001-2500"|ProjectSize = "2500+";"Tom Hobbs";"Dale West")

Thanks
fordraiders







0
Comment
Question by:fordraiders
  • 2
3 Comments
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 22767933
Do you mean that you want a second field to be computed, with a value that depends on the value of your radio button field?

Make the second field a computed field, with formula @If(RadioButtonField="On-Site"; "Jim Parker"; "Lady Penelope")

Set the options in the first field to Refresh fields on keyword change (in the field's Properties box)
0
 
LVL 3

Author Comment

by:fordraiders
ID: 22768124
no the same field:

The first field is :  "WorkRequestType"(radiobutton)   if its value gets changed to "On-Site"

I want the second field :  "SiteProjectManager_1"  changed to "   "Lady Penelope"

but as stated above I already have code in the  "Value" property in "SiteProjectManager_1"
I did not know if what I'm trying to do would interfere with this other code ?

Thanks
fordraiders
0
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 500 total points
ID: 22768202
Ah, okay, get it. The current formula will always overwrite a value you put in it from elsewhere. It may be the easiest way to modify your formula, like this:

@If(WorkRequestType="On-Site"; "Lady Penelope"; ProjectSize = ""; ""; ProjectSize ="20-200" ;"David Thomas";ProjectSize ="501-1000" | ProjectSize ="1001-2500"|ProjectSize = "2500+";"Tom Hobbs";"Dale West")

Check if this is really what you want, because the value will be set to "Lady Penelope" whatever the value of the ProjectSize field.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now