Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Oracle apex Oracle APEX无法通过javascript设置页面项集的会话_Oracle Apex_Oracle Apex 5.1 - Fatal编程技术网

Oracle apex Oracle APEX无法通过javascript设置页面项集的会话

Oracle apex Oracle APEX无法通过javascript设置页面项集的会话,oracle-apex,oracle-apex-5.1,Oracle Apex,Oracle Apex 5.1,在我的javascript中,我正在设置页面项: apex.item("P2_TAB").setValue($tabVal); apex.server.process ( "SAVE_HIDDEN_VALUE_IN_SESSION_STATE", { x01: $tabVal, pageItems: "P2_TAB" }, {dataType: 'text'} ); 设置了P2\u TAB的值,但当我查看会话时,P2\u TAB不显示。在受影响的元素中,我

在我的javascript中,我正在设置页面项:

apex.item("P2_TAB").setValue($tabVal);
apex.server.process ( "SAVE_HIDDEN_VALUE_IN_SESSION_STATE", 
 {
      x01: $tabVal,
      pageItems: "P2_TAB"
  }, 
  {dataType: 'text'} );
设置了
P2\u TAB
的值,但当我查看会话时,P2\u TAB不显示。在受影响的元素中,我选择了项目和P2_选项卡。我做错了什么?

这在这里起作用:

apex.item('P2_TAB').setValue($tabVal);
apex.server.process('DUMMY', {pageItems: '#P2_TAB'}, {dataType: 'text'});
如果您在应用程序中经常这样做,那么创建类似

setValueInSession(itemName, itemValue)

记录的示例包括“#P2_选项卡”上的哈希前缀