从APEX中的动态操作获取所选行(extjs网格)

从APEX中的动态操作获取所选行(extjs网格),extjs,grid,oracle-apex,Extjs,Grid,Oracle Apex,我有一个apex网格插件,它写在ExtJS上。它已触发“选择行”并成功获取一个选择行。我想在apex动态操作中从网格中获取选定的行。 我怎么做 我不知道extjs,我要求写更多的细节。谢谢 网格的一部分: Ext.apex.TableGrid = function(table, config){ config = config || {}; // apply config, and a default config Ext.apply(this, config, { xtype: "grid"

我有一个apex网格插件,它写在ExtJS上。它已触发“选择行”并成功获取一个选择行。我想在apex动态操作中从网格中获取选定的行。 我怎么做

我不知道extjs,我要求写更多的细节。谢谢

网格的一部分:

Ext.apex.TableGrid = function(table, config){
config = config || {};

// apply config, and a default config
Ext.apply(this, config, {
xtype: "grid",
frame: "true",
autoHeight: true,
autoWidth: true,
collapseFirst: false,
iconCls: 'icon-grid',
loadMask: true,
stripeRows: true,
titleCollapse: true,
frame: true,
multiSelect: true,
cls: "pplab-grid",
listeners: {
  rowclick: function( g, ri, e ){
      $( '#'+config.pluginRegionId ).trigger( "rowclickpplabexttabgrid", { 
        grid: g,
        rowIndex: ri,
        record: g.getStore().getAt( ri )
      } )
  },
  rowdblclick: function( g, ri, e ){
      $( '#'+config.pluginRegionId ).trigger( "rowdblclickpplabexttabgrid", { 
        grid: g,
        rowIndex: ri,
        record: g.getStore().getAt( ri )
      } )
  }  
}
});

var g = this,
fields = config.fields || [], 
cols = config.columns || [],
tableContainer = Ext.get( "report_" + this.regionId + "_catch" ),
emptyTxt = "";

table = Ext.get(table);

if ( !table ) { 
emptyTxt = tableContainer.dom.innerHTML;
tableContainer.dom.innerHTML = "";

table = tableContainer.createChild( {
  tag: "table",
  id: table
} ).set( { empty: true } );
};

var ct = table.insertSibling({
id: this.id || Ext.id()
});

 Ext.apply(this, {
'ds': ds,
'cm': cm,
'sm': new Ext.grid.RowSelectionModel( {
  singleSelect: false,
  listeners: {
    rowselect: function( sm, ri, rc ){
      $( '#'+config.pluginRegionId ).trigger( "rowselectpplabexttabgrid", { 
        grid: sm.grid,
        rowIndex: ri,
        record: rc
      } );
    }
  }
} ),
bbar: paging,
viewConfig: { 
  emptyText: emptyTxt,
  deferEmptyText: false
}
});

....

您的意思是要扩展此功能,以便用户可以单击某一行,然后将其添加到选定行的集合中,或将其从选定行的集合中删除?是的。在我想要在动态操作顶点中获取所选行之后,用户选择网格中的行。似乎rowclickpplabexttabgrid需要添加到数组中,而rowdblclickpplabexttabgrid需要从数组中删除。你的触发码能用吗?