AnsweredAssumed Answered

Dynamic results message.

Question asked by bobalfresco on Oct 19, 2015
Latest reply on Dec 21, 2015 by art99trash
I have implemented a custom action following the example by Jeff Potts.
In this implementation, the action is defined in the share-config-custom.xml file.
This included a success message and a failure message.

<action id="the-action" type="javascript" label="Run the action"
   <param name="function">onActionSimpleRepoAction</param>
      <permission allow="true">Write</permission>
   <param name="action">the-action</param>
   <param name="successMessage">message.action-success</param>
   <param name="failureMessage">message.action-failure</param>

Is it possible to provide different messages depending on the situation?
If the action fails, I would like to be able to display a message that gives the
user a specific reason for the failure, not just "action failed".