Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Bug: IR column headers = JSON.parse error. Occurs when any column has a With/Apply HTML Expression to a T/C that loads a file

Matt MulvaneyApr 11 2025

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:

  1. Create a Template Component plugin called TEST, just select Single and accept the Partial defaults

  2. Add a my_file.js to the Template Component with a console.log('hello world'); line

  3. Ensure that the JavaScript file to load is set to #PLUGIN_FILES#my_file#MIN#.js

  4. Create an IR based on the DUAL table

  5. Set a the HTML Expression of the DUMMY column to:

    {with/}
        MY_FIRST_PLACEHOLDER:=1
        MY_SECOND_PLACEHOLDER:=2
    {apply TEST/}
    
  6. Run the Page

  7. Click on the DUMMY column header

  8. See the JSON.parse error in the Browser Console.

Regards

Matt

Comments
Post Details
Added on Apr 11 2025
4 comments
293 views