lotus notes - How to set default values for a LotusScript PickListString using Names -


i have following code on button on notes form

sub click(source button)     dim ws new notesuiworkspace     dim rtn variant     dim thisdoc notesdocument     dim orignames variant     set thisdoc = ws.currentdocument.document     orignames = thisdoc.ccto     rtn = ws.pickliststrings(  picklist_names,true )     if not(isempty( rtn))         thisdoc.ccto = rtn         thisdoc.cctochanged = 1     end if     ws.currentdocument.refresh end sub 

the picklist works fine , sets values field ccto however, need have values in orignames set of default values in picklist , can't see how there.

the pickliststring not utilize pre selected choices. think should use notesuiworkspace.prompt( )

the type prompt_okcancellistmult precise. notes designer has example code.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -