Urgent :How to add more values in the dialog box type field in the form permanently

Hello frens, I have made some fields on my form whose type is dialog box…Now that form is opened from the Notes Client by the users to fill the form. I want to know that later on if tbey want to add some other options in the dialog list how can we do that…I have a dialog box which contain the list of tech used in the project but after some days some new tech will come then that tech should be present in that List. Though I knw that we can other options which are not in the list by adding but it is not permanenetly added in that list …Can anyone tell me how to do this …otherwise they have to do by opening the form in Domino designer and then change the field list…

Please tell me asap it’s very urgent

Subject: Urgent :How to add more values in the dialog box type field in the form permanently

kanishka,

You need to add a text field to your dialog box to allow the users to add the new values (almost mimicking the “Allow values not in list” feature of a listbox)

The formula for the list in the dialog list should then be a combination of your standard values and a lookup for the new values

eg: “Red”:“Blue”:“Green”:@dblookup(…)

Or set up a profile document that holds all the values you want in the list, and allow users to access and change/add to that list

You basically need to maintain your list somewhere other than hardcoding it in the design iof it is going to change

HTH

Mike

Subject: RE: Urgent :How to add more values in the dialog box type field in the form permanently

Thanx for giving me response…yeah I need that user can easily add from the front end new options …As I’m new to Ln so I’m not getting what is this profile document which holds the values we want in the lits n user can easily add the values from thr…coukd u tell me the steps of creating that document n all the necessary steps …Thanx & regards

kanishak

Subject: RE: Urgent :How to add more values in the dialog box type field in the form permanently

  1. Create a form with fields to hold the values you want to store in profile documents. 2. Choose Design - Form Properties and deselect “Include in Menu.”

  2. Save the form.

  3. Do not include the form in any view.

  4. Create a button, action, or agent that uses either the LotusScript NotesDatabase GetProfileDocument method or UIWorkspace.EditProfile, or the Formula language @Command([EditProfileDocument]) to create or access the document.

In Notes, you can create or edit a profile document by using @Command([EditProfileDocument]) or @SetProfileField. In Web applications, use @SetProfileField to create profile documents. Note that @Command([EditProfileDocument]) does not work on the Web.

You can use @SetProfileField and @GetProfileField to set and retrieve field values in profile documents in both Notes and Web applications.

If you prefer scripts to formulas, use LotusScript routines to create and edit profile documents. The EditProfile method of the NotesUIWorkspace class produces the same result as the @Command([EditProfileDocument]) command used in a formula.

To set or retrieve field values for a profile document with a script, use the GetProfileDocument method to access the document. You can then retrieve values from the document or set new ones, just as you would with any document.

Use the IsProfile property for the NotesDocument class to determine if a NotesDocument object is a profile document. Use the NameOfProfile property to retrieve the name of the profile document.

Note You cannot delete a profile document using an @command or @function. Use LotusScript if you must delete a profile document.

Subject: RE: Urgent :How to add more values in the dialog box type field in the form permanently

I agree with all the previously mentioned methods but to make it simple for a newbie… why not make a simple form with one field. You can create a view just for this form and have your users create documents for each entry that should be available in the dialog list and do a dbcolumn to get the list. I usually would make this form and view accessible via a db Role so you can control who can add to the list. Even simpler is to use just one document where the field is multi-value and just keep adding to it… then you can use a dblookup or dbcolumn depending on how you configure the lookup view. You really don’t need to use a profile document for this. I probable would… but for the sake of keeping it simple why bother.

Just a suggestion…

Mark