IDEMPIERE-3004 View Column - View Component require SeqNo

This commit is contained in:
Diego Ruiz 2016-01-27 19:12:47 +01:00
parent 949c93b221
commit 87432dd660
3 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,15 @@
SET SQLBLANKLINES ON
SET DEFINE OFF
-- IDEMPIERE-3004: View Column - View Component require SeqNo
-- Jan 25, 2016 4:42:40 PM CET
UPDATE AD_Column SET DefaultValue='@SQL=SELECT COALESCE(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_ViewComponent WHERE AD_Table_ID=@AD_Table_ID@', IsUpdateable='N',Updated=TO_DATE('2016-01-25 16:42:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210567
;
-- Jan 25, 2016 4:49:47 PM CET
UPDATE AD_Field SET SortNo=1.0,Updated=TO_DATE('2016-01-25 16:49:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202233
;
SELECT register_migration_script('201601161701_IDEMPIERE-3004.sql') FROM dual
;

View File

@ -0,0 +1,12 @@
-- IDEMPIERE-3004: View Column - View Component require SeqNo
-- Jan 25, 2016 4:42:40 PM CET
UPDATE AD_Column SET DefaultValue='@SQL=SELECT COALESCE(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_ViewComponent WHERE AD_Table_ID=@AD_Table_ID@', IsUpdateable='N',Updated=TO_TIMESTAMP('2016-01-25 16:42:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210567
;
-- Jan 25, 2016 4:49:47 PM CET
UPDATE AD_Field SET SortNo=1.0,Updated=TO_TIMESTAMP('2016-01-25 16:49:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202233
;
SELECT register_migration_script('201601161701_IDEMPIERE-3004.sql') FROM dual
;

View File

@ -661,6 +661,7 @@ public class MTable extends X_AD_Table
Query query = new Query(getCtx(), MViewComponent.Table_Name, MViewComponent.COLUMNNAME_AD_Table_ID + "=?", get_TrxName());
query.setParameters(getAD_Table_ID());
query.setOrderBy(MViewComponent.COLUMNNAME_SeqNo);
query.setOnlyActiveRecords(true);
List<MTableIndex> list = query.<MTableIndex>list();
@ -698,4 +699,4 @@ public class MTable extends X_AD_Table
tablename.equals("M_AttributeSetInstance"));
}
} // MTable
} // MTable