Hide fields on printer paged..problems with PDF
24.04.2007
12

I am struggling with a button which copies a record displayed in a rest view to a database table.

The code below is throwing an error: Fatal error: Call to a member function buildSQL_default() on null in /hom.../classes/button.php on line 163

$record = $button->getCurrentRecord();
$data["idp"]=$record["id"];
$data["mas"] = $record["mas"];

Any tips about how to deal with this task?

My example is quite different but what it does is recover from an API Resfull JSON service, and insert all the information on table. For this, do not use the implementation of Phprunner.

https://fhumanes.com/blog/integracion/app-phprunner-cliente-restfull-api/

Was this article helpful?Yes (1)No (0)Thank you for your feedback!

Comments