I have a button on a page, and that button opens another page within my application via url. I would like to dynamically alter the url of the button.
I'll explain further.
Lets say I have a button on page 50, and I'm using that button to get to page 100, and to set the value of an item on page 100.
Action is set to "Redirect to URL" and URL looks something like this: f?p=&APP_ID.:100:&APP_SESSION.:::100:P100_ITEM:&P50_VALUE.:
User can change the value of item P50_VALUE on page 50.
If I submit the page before clicking on the button, everything works fine. However, I have to do this without submitting the page, and I can't get the url to refresh, and to reflect the last selected value of P50_VALUE.
Hi. Welcome. You seem to be new. (Hey, I'm a novice myself.) How about replacing your number ID with a more descriptive handle so it's not so impersonal?
And what kind of a system as we talking about. It's possible the solution might differ depending?
- Oracle version
- APEX version -
- Web server architecture
- Browser(s) used -
- Theme(s) used -
- Templates used -
Hmm. I suspect the variable P50_VALUE in the URL is evaluated from the Session State and not from any "working value" just updated by the user. If so, it won't be the new value until the page is submitted. As a novice, I'm often wrong so here is a great opportunity from someone to tell us there is a way to do this.
You are not submitting the page, so you are just throwing away everything done on that page but the P50_VALUE? Right?
I have asked for help from the author of the plugin and this is what he wrote:
Use this action to set an attribute of the button that will have the URL that you want to open. You can use jQuery's "attr" method for this. Then configure the modal action to pick up on the attribute.
There, in case somebody else in the future has the same problem. :)