SuiteCRM Pull Request Party hosted by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: Alert without disable ajax

Alert without disable ajax 6 months 1 week ago #75530

  • alessandro.marcioni
  • alessandro.marcioni's Avatar
  • Offline
  • Junior Member
  • Posts: 21
  • Thank you received: 1
  • Karma: 0
Hello everybody;
in a recent post (see here) i added an appendErrorMessage in an after_save logichook. It works fine and the message is displayed.
Unfortunately i noticed an issue and i hope someone of you can help me :(

i go to the aos_quotes module and in the list view i set up a filter (that gives me 100 results). Then i click on a record and i enter the detail view of the first record.
So in the top/right i have the count 1 of 100 Previous - Next ..correct?

well, after i created the logichook, when i save a record from the edit view (coming from the filtered list view), the filter become disabled and the 1 of 100 Previous - Next disappears.

I tryed to disable the ajax, but after this, none of alert is shown.
Have you got some advice for me?

Another question: Is it possible in your opinion to insert the appendErrorMessage in the detail view?
Last Edit: 6 months 1 week ago by alessandro.marcioni.
The administrator has disabled public write access.

Alert without disable ajax 5 months 3 weeks ago #75863

  • cherub-chum
  • cherub-chum's Avatar
  • Offline
  • Elite Member
  • SuiteCRM Dev
  • Posts: 252
  • Thank you received: 46
  • Karma: 13
In your module view.detail.php you can add the alert in display function.
 public function display()
      echo '<script type="text/javascript" src="custom/modules/mymodule/custom.js?v' . time() . '"></script>';
      // or add the JS alert only
      echo '<script type="text/javascript"> alert("My Alert");</script>';
Everything seems impossible, until its done.

Skype : cherubchum
Last Edit: 5 months 3 weeks ago by cherub-chum.
The administrator has disabled public write access.
The following user(s) said Thank You: pgr
Time to create page: 0.052 seconds
Powered by Kunena Forum