Hi Guys, I added a new unmapped field in the Data entity. I need to get the data from user input(excel or XML).
Data : WHS1;WHS2;WHS3.
Entity methods:
public boolean insertEntityDataSource(DataEntityRuntimeContext _entityCtx, DataEntityDataSourceRuntimeContext _dataSourceCtx) { boolean ret; ret = next insertEntityDataSource(_entityCtx, _dataSourceCtx); if (ret && _dataSourceCtx.name() == dataEntityDataSourceStr(MyEntity, MYDataSource) && this.MyField) { this.operation(_dataSourceCtx); } return ret; } public boolean updateEntityDataSource(DataEntityRuntimeContext _entityCtx, DataEntityDataSourceRuntimeContext _dataSourceCtx) { boolean ret; ret = next updateEntityDataSource(_entityCtx, _dataSourceCtx); if (ret && _dataSourceCtx.name() == dataEntityDataSourceStr(MyEntity, MYDataSource) && this.MyField) { this.operation(_dataSourceCtx); } return ret; } private void operation(DataEntityDataSourceRuntimeContext _dataSourceCtx) { MyClass myClass = MyClass::construct(_dataSourceCtx);// my class myClass.getData(this.MyField); }
My custom class:
No comments:
Post a Comment