Lotus notes checkbox

30 pts.
Tags:
Lotus Notes
LotusScript
Hello, I have created on my form, a checkbox field in which I have like like 8 choices. Can I get the choices that are checked somehow in lotus script? I mention that I'm a newbie in lotus script, and i haven't found yet a post about this. Just found this part which I think I get the checkbox field:
Set item= bcdoc.GetFirstItem("p1apChain")
But don't know if it's right, and how to use it forward. Any advice or help would be very helpful :) Thanks in advance :D


Software/Hardware used:
Lotus Notes Developement
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

The item will have the values of the choices that are checked.  It’s the same as any other multi-value field.  The values are basically stored as an array.  So, for example, given your line of code above, you could then get the choices that were selected by referring to

item.values

Or you could assign it to a variable of your own that was Dim’ed as an array, such as

myarray = item.values

You could check to see if the user checked a particular option with

If item.contains( “value you want to test for” )

If you’re using LotusScript, the debugger is your friend.  You can use it to see the value of every variable and field at every step of the code.  This is invaluable at helping you figure out how things are being stored, and where things are going wrong.  HTH.

 

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Sorinnn
    Ok, thanks for your response
    30 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: