Conditional Processing when there is a onchange event
461615Jul 23 2008 — edited Jul 23 2008Hi all,
This is not urgent, I have found a way to get around this, just want to have a bit more in-depth understanding of ApEx.
In the same region, we have a submit(go) button and a dropdown list. What I want is when user click on the Go button will trigger one process, and when user changes their selections in the dropdown list would fire another process. In the HTML Form Element Attributes, I have entered as: onChange="javascript:confirm_update_tbl()"; as you can see :confirm_update_tbl() is a function for user to confirm submitting the page.
I have created a process which calls my procedure to update several tables behind, since I don’t want this happen when user clicks on the GO button, this needs to be conditional. In condition type, I choose Request is NOT contained within Expression 1, in Expression 1 I just simply typed Go. This works absolutely fine, however I want to know is there any other way I can achieve the same, my solution works on the condition of there is only one dropdown list, if we have two or more and we want to assign each of them with a different process this won’t work. How can I setup a conditional process to specify it only fires when there is a onchange event from a dropdown list. I tried to change the condition type to “Request is contained within Expression 1” and typed my dropdown list ID in the Expression 1 field for example: P1_LIST. This does not work.
Thanks very much for your time and help.
Pete