Discussions
Categories
- 196.9K All Categories
- 2.2K Data
- 239 Big Data Appliance
- 1.9K Data Science
- 450.4K Databases
- 221.7K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 550 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 546 SQLcl
- 4K SQL Developer Data Modeler
- 187K SQL & PL/SQL
- 21.3K SQL Developer
- 295.9K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.6K Development Tools
- 107 DevOps
- 3.1K QA/Testing
- 646K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 155 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 18 Java Essentials
- 160 Java 8 Questions
- 86K Java Programming
- 80 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 442 LiveLabs
- 38 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 232 Portuguese
BUG In using Substitution Strings inside Faceted Search button actions

Hi.
firstly I do not know where is the place to confirm about possible bugs in Apex so I decided to write here
I've created my first faceted search. I've added two buttons on each CARD (2 columns presentation). Between button actions I have a subtitle action (maybe it's important to inform).
One of the button is primary, one secondary. Both of them are connected with redirect to URL and javascript:apex.confirm is call. Both of them I've created with &MSG_CONFIRM. declaration of the question text. so it looks like that:
javascript:apex.confirm(&MSG_CONFIRM., {request: 'XXX' ...
Only one action works. On Chrome console I see an error about missing ")", but I'm sure string is correct. Especially that when I delete one of the button, other works correctly (that one with didn't work before).
Of course - I can not use substitution strings, just write it inside - then it works correctly, but I like to use substitution strings ;). Maybe U heard about that kind of issue or maybe someone did the same and didnt have hat kind of problem?
PS MSG_Confirm has some Polish special characters
Best Answer
-
Please update your community profile with a recognisable username instead of "User_ZL2Y6".
Both of them I've created with &MSG_CONFIRM. declaration of the question text. so it looks like that:
javascript:apex.confirm(&MSG_CONFIRM., {request: 'XXX' ...
What type of component is MSG_CONFIRM? When, where, and how is its value set?
It is a bug, but in your code, not APEX.
&MSG_CONFIRM.
is a lexical substitution string, not a variable. It must be enclosed in quotes and JavaScript escape filtered to produce valid JavaScript syntax:javascript:apex.confirm('&MSG_CONFIRM!JS.', {request: 'XXX' ...
Answers
-
Please update your community profile with a recognisable username instead of "User_ZL2Y6".
Both of them I've created with &MSG_CONFIRM. declaration of the question text. so it looks like that:
javascript:apex.confirm(&MSG_CONFIRM., {request: 'XXX' ...
What type of component is MSG_CONFIRM? When, where, and how is its value set?
It is a bug, but in your code, not APEX.
&MSG_CONFIRM.
is a lexical substitution string, not a variable. It must be enclosed in quotes and JavaScript escape filtered to produce valid JavaScript syntax:javascript:apex.confirm('&MSG_CONFIRM!JS.', {request: 'XXX' ...