Hi All,
We are currently upgrading our application from 4.2 to 5.1.2
In 5.1.2 I am facing an issue with a JS function call. Below is my scenario.
I have a button (P75_BUTTON) and a page hidden item (P75_HIDDEN_ITEM - [Default "N"]).
Our process is , when I click the button (URL Target) it calls a JS function ( in .js file [Shared Components --> Application Static Files]).
Which set the P75_ITEM to "Y". Once it's set to "Y" , few processes on the page gets triggered. My JS function in the static file looks like below.
FnThis: function() {
var pageId = $v('pFlowStepId');
$("#P" + pageId + "_HIDDEN_ITEM").attr("value", "Y");
document.forms[0].submit();
$("#P" + pageId + "_HIDDEN_ITEM").attr("value", "");
}
I have set Alerts at each step , changed the Hidden item to Text Field to understand if the value is Set or not.
The button click is initially setting the item value to "Y" but during the refresh it's setting back to "N" which is not firing our page processes.
I separately checked the page processes by firing them on button click (When button Pressed condition) and the processes are working fine. Since the hidden item is not retaining the value "Y" , the processes are not triggered.
This is a custom process and it's working perfectly fine in 4.2.
Please suggest if I missed anything here or any other work arounds.
Versions : 5.1.2 ; 12c
Thank You All in Advance,
Daniel