Row Custom Action event

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
digitalphotoworld
User
Posts: 416
Location: Nürnberg/Germany

Row Custom Action event

Post by digitalphotoworld »

I just used the new Row Custom Action event first time and I am very excited about it.

Now I have two questions about:

1) After finishing the event, a success message is created. This contains a phrase in singlequotes. It seems the phrase is the name of the action. How can I change the name for the success message?

2) When the table contains no records, the button/link for the Custom Action displayed, but this makes no sense. How could I avoid this behavior?


Webmaster
User
Posts: 9438

Post by Webmaster »

  1. To set your own success message, add the following codes in "Row_CustomAction" server event:
    $this->setSuccessMessage("<YourMessage>");

  2. Use the "Page_Render" server event to check and unset the custom action button if necessary.


Post Reply