Forum Discussion
_anomDiebolt_
11 years agoQrew Elite
The application below contains one table with fields for [Name], [Phone], [Email] and [RSVP]. If you click the button the [RSVP] will change to NO and the report will reload:
Update Clicked Record From Report
https://haversineconsulting.quickbase.com/db/bjdv4942n?a=q&qid=2
Pastie Database
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=347
Note that if the fields you want to change would result in (1) the report displaying stale information, or (2) the record would no longer meet the report criteria you have to reload the page to keep the displayed report consistent with internal state of the table.
The formula for the image onload field [-] has the normal definition and is concatenated with the HTML for the button:
[iol] & "module.js" & [/iol] &
"<a class='Success Vibrant QBU_ChangeRSVP'>" & "Change RSVP" & "</a>"
You don't need to put any onclick handler on the button as you can detect the button was clicked in module.js. The class QBU_ChangeRSVP has no CSS definition associated with it and is only used to easily select the custom buttons that are inserted into the report.
Update Clicked Record From Report
https://haversineconsulting.quickbase.com/db/bjdv4942n?a=q&qid=2
Pastie Database
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=347
Note that if the fields you want to change would result in (1) the report displaying stale information, or (2) the record would no longer meet the report criteria you have to reload the page to keep the displayed report consistent with internal state of the table.
The formula for the image onload field [-] has the normal definition and is concatenated with the HTML for the button:
[iol] & "module.js" & [/iol] &
"<a class='Success Vibrant QBU_ChangeRSVP'>" & "Change RSVP" & "</a>"
You don't need to put any onclick handler on the button as you can detect the button was clicked in module.js. The class QBU_ChangeRSVP has no CSS definition associated with it and is only used to easily select the custom buttons that are inserted into the report.