views:

810

answers:

1

Hey all,

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?

Thanks in advance, Matt

A: 

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

Tony Andrews
Works great! Need to use the onClick attribute instead of the href attribute in my case though. Thanks!
Sonny Boy