I use shared actions to make the same LotusScript code execute from several views when a button is clicked. However, the script code executes TWICE when the buttons are clicked on ONCE.Why is that? Of course, the obvious workaround is to put the code in “private” action buttons in each view. Then things work as they should, but maintaining changes naturally deteriorates…
Subject: Shared actions execute twice
I’ve never seen this happen.
If it’s Lotus Script have you tried tracing to see what is happening that might explain it running twice?
Subject: RE: Shared actions execute twice
Yes, there entire code entered in “Sub Click” executes twice, from the beginning to the end.Just as the button is clicked on twice.
Subject: RE: Shared actions execute twice
That is REALLY odd. Is it possible you have two Click Events? Are you including a script library and the same code is in the script library?
If it’s easy enough, I’d suggest create a new empty database, copying the form with the action. Then try it again, just to see. I’m wondering if something is corrupted in your existing DB.