The scenario:
I have an ApEx page which pulls a record from a table. The record contains an id, the name of the chart (actually a filename) and the code for an image map as an NVARCHAR2 column called image_map.
When I render the page I have an embedded HTML region which pulls the image in using the #WORKSPACE_IMAGES#&P19_IMAGE. substitution as the src for the image.
Each chart has hot spots (defined in the image_map html markup) which point to other charts on the same ApEx page. I need to embed the:
- Application ID (like
&APP_ID.) - Session (like
&APP_SESSION.)
My problem:
When I try to load the &APP_ID as part of the source into the database it pre-parses it and plugs in the value for the ApEx development app (e.g. 4500) instead of the actual target application (118).
Any help would be greatly appreciated.
Ok – I think I’ve left this open long enough… In the event that anyone else is trying to (mis)use apex in a similar way, it seems like the “apex way” is to use dynamic actions (which seem stable from
4.1.x) and then you can do your dynamic replace from there rather than embedding js in the page(s) themselves.This seems to be the most maintainable, so I’ll mark this as the answer – but if someone else has a better idea, I’m open to education!