var x = new htmldb_Get(null, APP_ID, 'APPLICATION_PROCESS=MY_PROCESS', PAGE_ID);
x.GetAsync(function (response) {
console.log(response);
}
Generates this POST:
http://i.stack.imgur.com/meZGg.png
and outputs the response I would expect.
However, executing this (using an ExtJS store which just sends an AJAX request to populate itself with data):
var x = Ext.create('DocumentEditor.store.Nodes');
x.load();
(Store definition: )
Ext.define('DocumentEditor.store.Nodes', {
alias: 'store.Nodes',
extend: 'Ext.data.Store',
requires: [
'DocumentEditor.proxy.Ajax',
'DocumentEditor.model.Node'
],
storeId: 'Nodes',
model: 'DocumentEditor.model.Node',
remoteSort: true,
remoteFilter: true,
remoteGroup: true,
proxy: {
type: 'ajax',
url: '/clms/wwv_flow.show/',
format: 'json',
actionMethods: {
create: 'POST',
read: 'POST',
update: 'POST',
destroy: 'POST'
},
extraParams: {
'p_request': 'APPLICATION_PROCESS=MY_PROCESS',
'p_instance': INSTANCE,
'p_flow_id': FLOW,
'p_flow_step_id': FLOW_STEP
},
noCache: false,
limitParam: 'max',
startParam: 'offset',
sortParam: 'sortorder',
writer: {
type: 'json',
writeAllFields: true
},
reader: {
type: 'json',
root: 'results',
totalProperty: 'count'
}
});
Generates this POST:
http://i.stack.imgur.com/8LAju.png
And I get this response from APEX:
> Error
>
> ERR-7620: Could not determine workspace for application (200).
>
> Expecting p_company or wwv_flow_company cookie to contain security group id of application
> owner.
My question:
How can the first POST respond with a 200: OK, while the second (identical as far as I can tell, and to the exact same URL) responds with 404: Not Found?
Any help would be very much appreciated. We need to be able to use AJAX reliably with our Application Express application.