Mattersphere Developers Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Go down
avatar
Heather@FootAnstey
Posts : 57
Join date : 2018-12-19

Search Lists Cancel a button action Empty Search Lists Cancel a button action

Fri 31 Jan 2020 - 11:02
Original post 24/09/2010 Gareth Ahmun (Morgan Cole LLP)

"..I have cloned an existing search list and so have the original buttons along with it e.g. edit. I need to run some checks on the selected item (e.g. is the task a milestone task) and if it is then cancel the action. I have tried setting e.cancel = true on a number of events (CommandButtonClick etc.) and no luck. Any ideas how to cancel these events from firing?.."

Response Richard Annison

"..If a button is wired up to an internal Action (Add, AddFrom, Edit, EditWizard, etc) then that action will run before any script you add runs. You will need to remove the internal action and script the action yourself after performing the check..."
Back to top
Permissions in this forum:
You cannot reply to topics in this forum