Trying to utilize JavaScript in Oracle APEX to set the value and session state. See below function that is being called:
function updateItemValue(element) {
$s('P2020_SELECTED', element);
apex.server.process ('MY_PROCESS', {
p_arg_name: 'P2020_SELECTED',
p_arg_value: element
});
}
The display value (Line 2) will be updated, but unfortunately the session state remains unchanged. Upon loading the page in APEX, an error occurs.
Error: SyntaxError: Unexpected token P in JSON at position 0