I try to update database when click button.
Nothing message "Error" and the weird thing is that yesterday it worked and when I tried again today, the update function did not work.
Script button :
pic = self.getSibling("pic").props.text
rootcause = self.getSibling("rootcause").props.text
countermeasure = self.getSibling("countermeasure").props.text
status = self.getSibling("status").props.value
reponsedate = self.getSibling("responsedate").props.text
defect_name = self.getSibling("defect_name").props.text
system.db.runNamedQuery("Update_Report", {"pic": pic, "rootcause": rootcause, "countermeasure": countermeasure, "status": status, "reponsedate": reponsedate, "defect_name": defect_name})
system.perspective.closePopup('')
Named Query :
And I tried to update data manual from SQL and success
I often have this problem when creating scripts on buttons (whether it's filters or data updates)