Hallo,
I have a dynamic action which is fired on "Change event". In this action I would like to perform a piece of javascript code
apex.item( "P9_SELECTED_ENUM_ID" ).setValue( "10" );
I would like to set apex session state varaible to value "10" (it's an example only, in real application there will real value set).
After an event is occurred, this dynamic action is processed and an error is immediatelly generated:
RangeError: Maximum call stack size exceeded
#11 https://localhost:4010/i500/libraries/apex/minified/desktop.min.js?v=5.0.0.00.31:17:2884
#10 https://localhost:4010/i500/libraries/apex/minified/desktop.min.js?v=5.0.0.00.31:17:2884 Object.da.doActions()
#9 https://localhost:4010/i500/libraries/apex/minified/desktop.min.js?v=5.0.0.00.31:17:7176 HTMLInputElement.()
#8 https://localhost:4010/i500/libraries/jquery/2.1.3/jquery-2.1.3.min.js?v=5.0.0.00.31:2:2882 Function.n.extend.each()
#7 https://localhost:4010/i500/libraries/jquery/2.1.3/jquery-2.1.3.min.js?v=5.0.0.00.31:2:847 n.fn.n.each()
#6 https://localhost:4010/i500/libraries/apex/minified/desktop.min.js?v=5.0.0.00.31:17:7157 Object.da.actions()
#5 https://localhost:4010/i500/libraries/apex/minified/desktop.min.js?v=5.0.0.00.31:17:623 HTMLInputElement.()
#4 https://localhost:4010/i500/libraries/jquery/2.1.3/jquery-2.1.3.min.js?v=5.0.0.00.31:3:6444 HTMLInputElement.n.event.dispatch()
#3 https://localhost:4010/i500/libraries/jquery/2.1.3/jquery-2.1.3.min.js?v=5.0.0.00.31:3:3219 HTMLInputElement.n.event.add.r.handle()
#2 https://localhost:4010/i500/libraries/jquery/2.1.3/jquery-2.1.3.min.js?v=5.0.0.00.31:3:5552 Object.n.event.trigger()
#1 https://localhost:4010/i500/libraries/jquery/2.1.3/jquery-2.1.3.min.js?v=5.0.0.00.31:3:11520 HTMLInputElement.()
The piece of problmeatic code is copied from original documentation. I have tried to use short syntax with $s and the result has been the same. I have proved if there wasn't any changes in APEX javascript API in 5.0 version and I have found nothing relevant. I have no idea why this error occurs. I use Google Chrome browser.
Is there any othe possibility how to set session state variable from the javascript enviroment? What is the best approach for setting session state variable dynamically without using submit?
Thank for any advice or idea.
Best Regards
Radek BudaĆ