Filtered by View Computed Column in Ax 2009

Inline image 2
Inline image 3
New Method in View
public static server str getCostAmount()
{
    str totalCostAmount;
 
    totalCostAmount = SysComputedColumn::multiply(SysComputedColumn::returnField(tableStr(GV_Computed1),identifierStr(TableGV1_1),fieldStr(GV_Computed1,Price))
    ,SysComputedColumn::returnField(tableStr(GV_Computed1),identifierStr(TableGV1_1),fieldStr(GV_Computed1,Price1)));
 
    return  totalCostAmount;
 
}
 
 
Added a form Run method to add filter
 
public void run()
{
    super();
    GV_Computed1_ds.filter (fieldNum(GV_Computed1,ViewField1),”500″);
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s