Hi Everyone,
Does somebody know how to update the database columns based on input via a text box?
I have a report where the user enters a value into a text box "title". I want to save this title value into the database.
I want to know where exactly this update code needs to place and how to link it with the "load" button event so that this value can be saved into the database.
$this->src('REPORTS')->query(
DB::table('members_report')
->where('member_id', $this->params["id"])
->update(
['report_title' => $this->params["report_title"] ]
)
);
This code is working fine while I placed it in the setup function of the report for testing.
It would be good to see a working example.