I am new to APEX and have been checking how to set the value of an item on button click.
I saw a lot of threads related to that but couldnot find a solution.
I want to set the value of hidden item P22_ADD_VAL to 2.
In the "button attributes" of the button,
onclick="$x("P22_ADD_VAL").value = "2";"
none of them work.
Can you pls tell me wht i am misssing or what is the right way to do it?
you should really use a "Set Value" dynamic action for that, that's much more transparent than using the onclick definition in the button attributes.
Member of the APEX development team
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins