Helle Everyone
I am new to Valence and just created a DAshboard which has 3 panels
Initialy when it's loaded I get the data from my rpg program
It's loading a specific record set by default if parameter is blank
Once I select a value on drop down I would like to reload with new values from database matching this selection
How do I do that
Here is a portion of my current ext js code
Thanks in advance.
Ext.onReady(function() {
// The data store containing the list of entities
var ent_list = Ext.create('Ext.data.Store', {
fields: ['abbr', 'name'],
data : [
{"abbr":"TCNY ", "name":"NY Billing"},
{"abbr":"T911", "name":"NY 911/EMS"},
{"abbr":"TCMD", "name":"Maryland"},
{"abbr":"TCPA", "name":"Pittsburg"},
{"abbr":"TCML", "name":"Paoli"},
{"abbr":"LUT ", "name":"B/A Lutheran"},
{"abbr":"RID ", "name":"B/A Riddle"}
]
});
// });
var tool_bar = Ext.create('Ext.toolbar.Toolbar', {
//renderTo: document.body,
width : 1350,
title : 'Transcare Dashboard',
items: [
{
text: 'Transcare Daily Dashboard -----> '
},
{
xtype: 'combo',
store: ent_list,
displayField: 'name',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
emptyText: 'Select Entity',
name: 'EntList',
itemid: 'EntList',
selectOnFocus: true,
width: 135,
listeners : {
scope : this,
select : function(cmp, recs){
var entity = recs[0].get('abbr');
}
}
}
]
});
// Define a model for EPCR Status panel
Ext.define('epcr_m', {
extend: 'Ext.data.Model',
fields: ['CATEGORY', 'TCALLORIG', 'TCALLPREB','TQAPROCES', 'TCLMSXFER', 'TCLMSHOLD']
});
// Define data store items for EPCR Status Panel
var dsCustomers = new Ext.data.Store({
model : 'epcr_m',
autoLoad : true,
proxy : {
type : 'ajax',
url : 'vvcall.pgm',
extraParams: {
pgm: 'CLMSDASH2',
action: 'getEPCRSts',
field: 'entity'
},
reader : {
type : 'json',
root : 'EPCRSTATUS'
}
},
listeners : {
beforeload : function() {
this.getProxy().extraParams.entity = comboWindow.down('#EntList').getValue();
}
}
});
Look like my program is not being called
I am new to Valence and just created a DAshboard which has 3 panels
Initialy when it's loaded I get the data from my rpg program
It's loading a specific record set by default if parameter is blank
Once I select a value on drop down I would like to reload with new values from database matching this selection
How do I do that
Here is a portion of my current ext js code
Thanks in advance.
Ext.onReady(function() {
// The data store containing the list of entities
var ent_list = Ext.create('Ext.data.Store', {
fields: ['abbr', 'name'],
data : [
{"abbr":"TCNY ", "name":"NY Billing"},
{"abbr":"T911", "name":"NY 911/EMS"},
{"abbr":"TCMD", "name":"Maryland"},
{"abbr":"TCPA", "name":"Pittsburg"},
{"abbr":"TCML", "name":"Paoli"},
{"abbr":"LUT ", "name":"B/A Lutheran"},
{"abbr":"RID ", "name":"B/A Riddle"}
]
});
// });
var tool_bar = Ext.create('Ext.toolbar.Toolbar', {
//renderTo: document.body,
width : 1350,
title : 'Transcare Dashboard',
items: [
{
text: 'Transcare Daily Dashboard -----> '
},
{
xtype: 'combo',
store: ent_list,
displayField: 'name',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
emptyText: 'Select Entity',
name: 'EntList',
itemid: 'EntList',
selectOnFocus: true,
width: 135,
listeners : {
scope : this,
select : function(cmp, recs){
var entity = recs[0].get('abbr');
}
}
}
]
});
// Define a model for EPCR Status panel
Ext.define('epcr_m', {
extend: 'Ext.data.Model',
fields: ['CATEGORY', 'TCALLORIG', 'TCALLPREB','TQAPROCES', 'TCLMSXFER', 'TCLMSHOLD']
});
// Define data store items for EPCR Status Panel
var dsCustomers = new Ext.data.Store({
model : 'epcr_m',
autoLoad : true,
proxy : {
type : 'ajax',
url : 'vvcall.pgm',
extraParams: {
pgm: 'CLMSDASH2',
action: 'getEPCRSts',
field: 'entity'
},
reader : {
type : 'json',
root : 'EPCRSTATUS'
}
},
listeners : {
beforeload : function() {
this.getProxy().extraParams.entity = comboWindow.down('#EntList').getValue();
}
}
});
Look like my program is not being called
Comment