Question

I'm trying to create a template for a button in Oracle APEX but I don't seem to have access to the appropriate substitution strings to make it work. For non-templated buttons APEX seems to insert a handler for the onclick event that calls doSubmit('buttonName') Unfortunately, when I go to create a template the only substitution strings I seem to get access to are #LINK#, #LABEL#, #BUTTON_ATTRIBUTES#, and #BUTTON_ID#. How do I get to the button name in order to make the doSubmit work properly?

Was it helpful?

Solution

Use href="#LINK#". At runtime, Apex replaces this with href="javascript:doSubmit('XXX')" where 'XXX' is the Button Request Value associated with the button.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top