Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

RE: Creating a Form in AX 2012

$
0
0

You don't need to create a table.

Just create a form with two fields:

1. Item number - create string field and set EDT ItemId

2. Item sales price - create real field and set EDT SalesPrice, AutoDeclaration = YES, AllowEdit = No

  

3. On Item number field override modified() method and write this code:

public boolean modified()
{
    boolean           ret;

    ret = super();

    ItemSalesPrice.realValue(InventTableModule::find(this.valueStr(), ModuleInventPurchSales::Sales).Price);

    return ret;
}



Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>