Regarding Dialog Box

I Created a form and using the same in a dialogbox.i have a field where in i select names and if large no of values are selected the field containing these values moves down.Becoz of this fields below get hidden.

is there any way by which we can view all the fields also and fill in as many values?

i have set my parameters as autohorzfit and autovertfit.

In dialog boz we dont even have scroll bar so that user can go down and see the remaining fields.

let me know on this.

Subject: Regarding Dialog Box

Perhaps instead of using a dialogbox to edit existing names you should be using ws.PickListStrings or ws.Prompt to add names.

Subject: RE: Regarding Dialog Box

well the idea of taking the picklist and making the field as dynamic does help in doin multiple selection without making the fields below them invisible.

but its not user freindly as in case user needs to deselect anybody from the list it becomes all the more difficult as you cannot search the person in huge list.

is there any way by which we can get a scroll bar in the form in dialog box prompt becoz of which we can hae the same dialog list selection but wat ever fields have gone down we can see by using a scroll bar.

please let me know.

cheers

sangeeta

Subject: RE: Regarding Dialog Box

If all the dialogbox is doing is adding & removing names then the simplest thing to do is not use a dialogbox at all. I would split the job into two hotspots. The Add… hotspot pulls up a picklist of names. The Remove… hotspot displays a notesuiworkspace.Prompt(OkCancelListMult) where the list of values is the names currently selected. Here the user sees only those existing values so removing names quickly is not problem.

It is possible to use a dialogbox to do all this but to stay within the 15k limit on fields requires some very sophisticated Lotusscript.

Subject: RE: Regarding Dialog Box

HiLet me tell u what exactly i am doing.I have a form wherein i have a notify button,on the click of which a dialog box is prompted.which has 3-4 fields containing sent to,copy to,subject and message.

Now these send to fields is a dialog list field for which the values are selected from a view.

Now wat is happening is the moment i select say 20 people in my field the fields below go down and become invisible and since there is no scroll bar i am not able to move down and fill things or see those things.

Now following your idea i put a text field and made it dynamic height type and kept a picklist button.

its solves the purpose but has two drawbacks first lots of people inside and u dnt know how to delete it properly.and secondly i need to put to picklist buttons for send to and copy to.

but may b thts ok…

let me kno anything else on this…

Cheers

Moksh 17

Subject: RE: Regarding Dialog Box

I would hide the Names fields and use a Listbox to display their values. Make the listbox fixed height & width. The listbox will supply its own scrollbar. Use a separate hotspot to pull up the name prompt, using ws.prompt or ws.pickliststrings or whichever way you want to choose names. The hotspot adds the selected names to the Names field, then refreshes the form. Be sure to check ‘refresh values on document refresh’ on your listbox.

Using a listbox gives you the option of letting the user remove names simply by clicking on the value. If you are in R5 you can add the following JavaScript to the listbox’s onChange event:

document.forms[0].hiddenbutton.click()

then add a hidden button to the form, call it hiddenbutton (type in the name on the last tab of the properties sheet, this makes it visible to JavaScript)

The hidden button uses fieldgettext to see which value the user has selected in the listbox, then goes off to the (hidden) Names field, removes that value, and refreshes the form. This is exactly the same thing your Remove hotspot does, or you could dispense with the Remove hotspot entirely though that would be a little counter-intuitive.