Hi all.
I have developed a custom module that uses the massaction model of invoices. All works fine except for a minor inconvenient that I do not know if it is due to a bug or a missunderstanding of what you can and cannot do inside the doMassAction hook function.
In my doMassAction function, after doing the standard checks, I send (echo or print) html and javascript code back. But this makes the page where the mass action is executing to lose format: characters become greater as if the font size were changed. It does not matter if you send a whole book of code or you send a humble
<div>Hello!</div>
As soon as you send out a single byte, the screen format changes. This makes the confirm button go below the selected action text box. Apart from that no other visual sign can be noticed so, though this is no big deal, it disturbs me quite a lot.
Then my question is: can additional text be generated and included in the page from inside a doMassAction function or not?
Thanks for your help.
Kind regards
Miguel.