Hi Team,
Version: APEX 24.2.4
Clicking on an IR Column headers gives a JSON.parse error.
VM529:1 Uncaught SyntaxError: Unexpected non-whitespace character after JSON at position 216 (line 1 column 217)
at JSON.parse (<anonymous>)
at t.<computed>.<computed>._sortWidgetShow (widget.interactiveReport.min.js?v=24.2.4:4:52776)
at t.each.r.<computed> [as _sortWidgetShow] (desktop_all.min.js?v=24.2.4:41:2898)
at Object.success [as callback] (widget.interactiveReport.min.js?v=24.2.4:4:19971)
at desktop_all.min.js?v=24.2.4:21:10832
at s.trigger.L.success (desktop_all.min.js?v=24.2.4:21:10963)
at c (desktop_all.min.js?v=24.2.4:5:28402)
at Object.fireWith [as resolveWith] (desktop_all.min.js?v=24.2.4:5:29150)
at S (desktop_all.min.js?v=24.2.4:5:80183)
at XMLHttpRequest.<anonymous> (desktop_all.min.js?v=24.2.4:5:82651)
This occurs when any column has a With/Apply HTML Expression that references a Template Component that loads a file.
Recreation steps:
-
Create a Template Component plugin called TEST, just select Single and accept the Partial defaults
-
Add a my_file.js to the Template Component with a console.log('hello world'); line
-
Ensure that the JavaScript file to load is set to #PLUGIN_FILES#my_file#MIN#.js
-
Create an IR based on the DUAL table
-
Set a the HTML Expression of the DUMMY column to:
{with/}
MY_FIRST_PLACEHOLDER:=1
MY_SECOND_PLACEHOLDER:=2
{apply TEST/}
-
Run the Page
-
Click on the DUMMY column header
-
See the JSON.parse error in the Browser Console.
Regards
Matt