While selecting a SalesLine want to do an action....?

Hi All,

I want to perfom an action when i am selecting a new record in SalesLine Form. can you tell me where can i write code…?

Thanks in Advance…[:)]

One way is to override the create() method …

If you want to have some default values when you create a new sales order line - then override the initValue() method…

Hi Kranthi,

Thanks for Reply, Let me clearly tell you…

I have a form like SalesLines in Header & ProdTable in Footer (as SalesOrders and SalesLines)

now after selecting a SalesLine in Header want to get all the related Production orders in Footer.

Relation is SalesLine.SalesId == ProdTable.InventRefID

This is the requirement…

Thanks in advance

You can use DynaLink for that

Add this code to the executeQuery() of ProdTable data source before super()…

Query q;

QueryBuildDataSource qb;

;

q = new Query();

qb = q.addDataSource(tablenum(ProdTable));

qb.addDynalink(fieldnum(ProdTable,InventRefTransId),SalesLIne,fieldnum(SalesLine,InventTransId));

this.query(q);