Dimensions changed from 2009 format to 2012 format
Copy tab form custtable form add to your form and give that “tabname” below
// in form calss decliration copy and past
public class FormRun extends ObjectRun
{
DimensionDefaultingController dimensionDefaultingControllerLine;
}
public class FormRun extends ObjectRun
{
DimensionDefaultingController dimensionDefaultingControllerLine;
}
// in form init copy and past
public void init()
{
super();
public void init()
{
super();
dimensionDefaultingControllerLine= DimensionDefaultingController::constructInTabWithValues(true,true,true,0, this,tabname,”@SYS14926″);
dimensionDefaultingControllerLine.parmAttributeValueSetDataSource(BiddingMainCostSheetTable_ds,fieldstr(BiddingMainCostSheetTable, DimensionDefault));
dimensionDefaultingControllerLine.pageActivated();
}
dimensionDefaultingControllerLine.parmAttributeValueSetDataSource(BiddingMainCostSheetTable_ds,fieldstr(BiddingMainCostSheetTable, DimensionDefault));
dimensionDefaultingControllerLine.pageActivated();
}
Step 3: DataSource
public void delete()
{
;
ttsbegin;
super();
dimensionDefaultingControllerLine.deleted();
ttscommit;
}
{
;
ttsbegin;
super();
dimensionDefaultingControllerLine.deleted();
ttscommit;
}
Step 4: DataSource
public void write()
{
ttsbegin;
dimensionDefaultingControllerLine.writing();
super();
ttscommit;
}
{
ttsbegin;
dimensionDefaultingControllerLine.writing();
super();
ttscommit;
}
Step 5: DataSource
public int active()
{
int ret;
ret = super();
dimensionDefaultingControllerLine.activated();//true);
return ret;
}
{
int ret;
ret = super();
dimensionDefaultingControllerLine.activated();//true);
return ret;
}