Sorry for this but i´m still have som problem. Follow the link to the old question.
http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/0512637f4978c2c6852573400036e546?OpenDocument
Thanx, it´s work great except when a select more than one doc. It´s only update one of them. I start a agent with this code:
tmp := “dspKeywords”;
dialog:=@PickList( [Custom] ; “” ; tmp ; “Select a city” ; “Please select the city you want to go to.” ; 1 );
@If(dialog = -1; @Return(“”); “”);
FIELD city := city: dialog;
@Command([ToolsRunMacro];“Refresh Selected Document”);
@All;SELECT
@All
The agents preference is Shared/On event/Action menu selection and target is None…
Need some more help here
kind regards
Fredrik
Subject: REPOST - Need help with LS and set field?
I’m afraid you are going to have to rewrite this in lotusscript.
The code will set the current document to the city you select but your agent Refresh Selected Document has no concept of the other documents that have been selected in the view.
You can get the documents selected in the view using the notesuiview class Documents property and then loop through them setting the city. You can get the city using the notesuiworkspace class PickListCollection or PickListStrings methods.