PM-696 Warning al exportar un report table Old version.
Los report tables old version no pueden ser exporttados individualmente, la unica forma en q estos pueden exportarse es dentro del mismo proceso. Se agrego una validacion para q controle este comportamiento no aniadiendo las RT Old version al listado de tablas a exportar. Y otra validacion para que cuando no se tenga nada en el listado de tablas a exportar no se realize dicha exportacion, ya que a pesar de estar vacio aun exportaba.
This commit is contained in:
@@ -139,6 +139,11 @@ Export.submit = function()
|
||||
var rows = Export.targetGrid.getStore();
|
||||
var rowsData = new Array();
|
||||
|
||||
if (rows.getCount() == 0){
|
||||
PMExt.info(_('ID_INFO'), _('ID_PMTABLES_CANT_EXPORT'));
|
||||
return false;
|
||||
}
|
||||
|
||||
for (i=0; i < rows.getCount(); i++) {
|
||||
row = rows.getAt(i);
|
||||
if ( row.data._SCHEMA == false && row.data._DATA == false) {
|
||||
|
||||
@@ -644,14 +644,16 @@ ExportPMTable = function(){
|
||||
var toExportRows = new Array();
|
||||
|
||||
for(var i=0; i<rows.length; i++){
|
||||
toExportRows.push([
|
||||
rows[i].get('ADD_TAB_UID'),
|
||||
rows[i].get('PRO_UID'),
|
||||
rows[i].get('ADD_TAB_NAME'),
|
||||
(rows[i].get('PRO_UID') ? _('ID_REPORT_TABLE'): _('ID_PMTABLE')),
|
||||
true,
|
||||
(rows[i].get('PRO_UID') ? false : true)
|
||||
]);
|
||||
if (rows[i].get('TYPE') == '') {
|
||||
toExportRows.push([
|
||||
rows[i].get('ADD_TAB_UID'),
|
||||
rows[i].get('PRO_UID'),
|
||||
rows[i].get('ADD_TAB_NAME'),
|
||||
(rows[i].get('PRO_UID') ? _('ID_REPORT_TABLE'): _('ID_PMTABLE')),
|
||||
true,
|
||||
(rows[i].get('PRO_UID') ? false : true)
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Export.targetGrid.store.loadData(toExportRows);
|
||||
|
||||
Reference in New Issue
Block a user