Notes Ninjas Notes Ninjas
Lotus Notes hints, tips, error messages
Cannot change multivalue display option to Newline

Hint Short Cut: Add this to your code & documentation to help you find this page.
http://www.notesninjas.com/#MultiValueNewLine or http://www.notesninjas.com/A555F9/nn.nsf/ByAlias/MultiValueNewLine


An annoying problem in lotus notes is the fact that when you want to use dialog list field with multiple values you cannot change the display separate valeus with option to newline.





One way around this annoyance is to create a fake button and set the field to be a text field.

In the fake pull down button you can create code that simulates a dialog list.

eg:

@If(@IsDocBeingEdited=0;@Return("");"");

r:=@Prompt([OKCANCELLISTMULT];"Pick members:";"Pick:";
 TeamAMembers;
 @Trim(@Name([Abbreviate];TeamMembers));
FIELD TeamAMembers:=r;
""

The code above allows the user to pick sub team members from a list stored in  the field TeamMembers and store in a field TeamAMembers.

The field next to it will be "TeamAMembers".

You can make the field computed to TeamAMembers or make it editable and default to "".

If you make it computed you can put the Action Hotspot around the field and the button to

make the user interface clickable area bigger.

If you make it computed but prefer to see the field delimiters you can add fake field delimiters.

 

 Jump to:     Notes Tips
    Lotus Notes Index 
  Register for Tips
Previous Lotus Notes Tip 
    Next Lotus Notes Tip
Your company logo here?
Adam Foster
Free Cash Making Web Site
Free Revenue Earning Blog Site
 Free Revenue Earning Newsletter Site   
Free Search Pages Free Web stats
Free Contact Us page
Cheap .com domain names
 Need a website or 
   Lotus Notes
  problem solved?
Adam Foster
man and boy by Tony Parsons
British book of the year 2000. Great book, hard to put down, but I nearly threw it away half way through. You'll know why when you read it.
See at: Amazon.co.uk | Amazon.com |