Update db from js

hi all
can anyone help me how to update database from js file (in a report) with filters.

regards

@SOLOSOFT
use
frappe.client.set_value (doctype, name, fieldname, value=None)

Thanks, Sukrut
New Indictranstech pvt.ltd

hi @jsukrut thank you for the answer actually i need it in a script report (custom button) how can i specify the correct row to update.

regards

You can use Button in script report ,on button’s On_Click Event you use frappe.call()

can you please give me an exemple because i craete on but gives global name msgprint is not defined.