Searching the forum I came across this thread. I will try to use this advice, but not working.
I'm greenhorn.
I need to save the user to the database who ran the report.
I've created a run button that launches a report.
In "Custom Code" with "Event: onclick" I typed JavaScript:
Code: Select all
nuRunPHP(save_usr_przew_o)
Code: Select all
nuRunQuery("UPDATE zlecenie SET zlc_przewodnik_o = '#USER_NAME#' WHERE zlc_id = '#zlc_id#';");
Code: Select all
nuRunQuery("UPDATE zlecenie SET zlc_przewodnik_o = test WHERE zlc_id = '#zlc_id#';");