?
Solved

LISTBOX in script

Posted on 2004-09-06
5
Medium Priority
?
504 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 80 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month9 days, 9 hours left to enroll

762 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