Hello! Ajax has been covered in depth on this forum ~ I could not find content regarding this issue though..
My objective is to use the ListView Region's Attribute LINK feature to call an ajax PL/SQL on the same page.. so that I can pass the ID attribute of the ListView to the ajax. I use the URL feature to specify the link
The example is here: https:// apex.oracle.com/pls/apex/devbox201902/r/listviewtrouble/departments2
username external1 password problem@Apex2020
The details are as follows:
The page displays a ListView component loaded from DEPT table.
The user selects a listview item
The ListView's Attribute LINK TARGET (Specified as a URL) is activated:
The expected behaviour here is that x01 parameter is passed from page item P3_MESSAGE to the callback ajax1. 'ajax1' is declared on the same page as such:
message := apex_application.g_x01;
Instead, the APEX 20.1 debug log shows that the ajax1 is never called. The JS Syntax error stops the call in its tracks..
[Of course, ultimately I want to use a statement similar to
..but this is not working, hence the roundabout way to use item P3_MESSAGE. ]
[Incidentally, the oracle apex doc for ajax functionality apex.server is super helpful otherwise, I would not have even have got this far. https: //docs.oracle.com/en/database/oracle/application-express/20.1/aexjs/apex.server.html#.process ]
Any insight appreciated :) and once again, the link to App "ListViewTrouble" page 3 is provided above if you would like to take a look.