I have a grid containing a combobox on one of the fields.
The combobox needs to allow selection from a list of children of the current record, so I need to somehow pass the current record id as a baseParam.
Hard-coded, this works:
header: 'Selected Child'
,dataIndex: 'selectedchild'
,editor: {
xtype: 'modx-combo'
,renderer: true
,url: Component.config.connectorUrl
,baseParams: {
action: 'mgr/listchildren'
,parent: 3 // if I hard-code the value '3' here, it works. But how do I insert this value dynamically?
}
// other config options removed
}
But I’ve been trying for hours to dynamically grab the ’id’ value from the current record, with no luck.
Any ideas how to approach this?