Get Sales Id in new form

Hi All,

I am new to Axapta, I have a scenario where I need to retrieve selected Sales Id value in Grid from SalesTable form to another newly created form (this form contains salesTable datasource). I need to display Sales Id value in a String Edit field in other form.

Please help me in this.

Hi Sridhar,

Write the below code in new form → Init method

Public void init()

{

Salestable salestbl;

;

salestbl = element.args.record();

super();


}

Then take the salestable buffer and assign the salesid value into ur stringedit field.

Regards,

Abbas

Thank you Abbas. Its working for me.