Solved

LISTBOX in script

Posted on 2004-09-06
5
501 Views
Last Modified: 2013-12-18
I want to create a list of items for selection by the user(eg: Select a field name:(list of field name)). User has to select the filed name from the list.

Can you suggest me what to use either PICKLIST or PROMPT[OKCANCELLIST].If so can you tell me how to use?

Thanks in advance
Purushoth
0
Comment
Question by:priyapurushoth
  • 3
  • 2
5 Comments
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 11988341
And you want it to be a popup-box, and not just a list-field on the form itself? @Picklist is meant to be used to select one or more documents from a view, so that won't work. The @Prompt might be the right way.
0
 

Author Comment

by:priyapurushoth
ID: 11988344
Ok , but what is the exact way of implementation in scripts? Because I tried few syntax and its not working
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 11988843
What did you try? And in what context, e.g. on a form, in a Button, in a Hotspot, in an Action? So code and explanation please...
0
 

Author Comment

by:priyapurushoth
ID: 11989592
I have used in Action and I have used like this
Dim strField as Variant

strField = workspace.Prompt(PROMPT_OKCANCELLIST, "SetField", "Choose the Field Name:","Form:Status:Fax")  where the fields are Form,Status and Fax.

I am not sure if this is right. Correct me if I am wrong in Syntax.
0
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 20 total points
ID: 11989869
Some mistakes:
    dim values(2) as string
    values(0)= "Form"
    values(1)= "Status"
    values(2)= "Fax"
    strField = workspace.Prompt(PROMPT_OKCANCELLIST, "SetField", "Choose the Field Name:","",values)
and you must show the empty default value, the comma cannot be omitted.

If you want to use the constant PROMPT_OKCANCELLIST, then you MUST also use %Include "Lsconst.lss". If you haven't specified Option Declare or Option Explicit in your options section, Notes will fill in a default value for the constant, namely 0. So either use the include, or specify the constant yourself (or just fill in 4 instead of PROMPT_OKCANCELLIST).

Instead of
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Lotus Notes mail can not display in send item after send out 9 347
Lotus Notes - Broken Links report 5 218
Domino not switching to TLS 1.0 4 801
Incorrect reply-to address Lotus 2 37
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
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

840 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