Update yes/no field

Posted on 2005-05-04
Last Modified: 2013-12-18
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
Question by:jkee54
    LVL 46

    Accepted Solution

    In formula:
        Field checkbox:= @If(condition; "yes"; "");
    LVL 19

    Expert Comment

    Lotus Script:

    Dim ws as new notesuiworkspace
    dim curdoc as notesdocument

    set curdoc=ws.currentdocument.document

    LVL 46

    Expert Comment

    by:Sjef Bosman
    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... :)
    LVL 19

    Expert Comment

    Thanks Sjef..

    You are correct.

    If u want LS, then let me know.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

      In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
    For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    732 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

    26 Experts available now in Live!

    Get 1:1 Help Now