Is there a way to call an RPG program to start before a grid is even launched?
What I have in mind is that I need to build a file for an Extjs app to query every time an app is invoked.
Does Valence come with any facility to allow that to happen?
Or should I just do that in my javascript code?
Thanks.
What I have in mind is that I need to build a file for an Extjs app to query every time an app is invoked.
Does Valence come with any facility to allow that to happen?
Or should I just do that in my javascript code?
Thanks.
PHP Code:
launch: function() {
// Call to CELS400 to preload work file
// Note: change initialView = false in Controller.Main
Valence.util.Helper.msg('Processing', 'Building data...');
Ext.Ajax.request({
url: '/valence/vvcall.pgm',
params: {
pgm: 'CX0067',
action: 'preLoad'
},
success: function(response) {
var r = Ext.decode(response.responseText);
r.rec = app.encodeProperties(r.rec);
if (r.success) {
Ext.create('CX0067.view.Main');
}
}
});
Comment