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
Post a Comment