• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

Update yes/no field

I have a checkbox field that has only one option, "yes".

In either Lotus Script or formula language to use in an agent, how do I

Update the field to yes so that the checkbox shows with an X on records that meet a condition, or,
Clear the feild to remove the X
0
jkee54
Asked:
jkee54
  • 2
  • 2
1 Solution
 
Sjef BosmanGroupware ConsultantCommented:
In formula:
    Field checkbox:= @If(condition; "yes"; "");
    ""
0
 
madheeswarCommented:
Lotus Script:

Dim ws as new notesuiworkspace
dim curdoc as notesdocument

set curdoc=ws.currentdocument.document

curdoc.YourFieldname="Yes"
0
 
Sjef BosmanGroupware ConsultantCommented:
Hi Madheeswar, where's the loop throught the unprocessed documents? And the save? They are automatically included in a formula-agent. Ah, now I see it, you assumed a form with a document... Question says "agent", though... :)
0
 
madheeswarCommented:
Thanks Sjef..

You are correct.

Jkee,
If u want LS, then let me know.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now