Hi Ehtasham,
In form design you can try to drag field "linenum" from datasource to form design. The return value start from 0(zero) just like what in the table is. Ex: create Line number for invoice *Go to Custiunvocejournal form design *drag field "Linenum" form datasources > Custinvoicetrans to *Designs > Design > Tab > Tabe page:invoicelines > Grid * arrange field you have create (CustInvoiceTrans_LineNum) in the first column *save and compile form design than try to open from menu Tips *before you try to drag from datasource to form design, in order to make easy while you drag, please "open new window" Table custinvoicetrans. Hope this solution can help you. Regards, Tomi _____ From: Axapta-Knowledge-Village@yahoogroups.com [mailto:axapta-knowledge-vill...@yahoogroups.com] On Behalf Of Ehtasham ur Rahman Sent: Wednesday, December 31, 2008 7:49 PM To: Axapta-Knowledge-Village@yahoogroups.com Subject: [Axapta-Knowledge-Village] Urgent Help! [Add "CustomerLineNum" field required!] Hi all! I am new in X++ environment. I need to add customer line number in the lines tab portion of the following sales order inquiry windows: 1.Sales Ledger --> Sales Order --> Inquiry --> Confirmation --> Lines 2.Sales Ledger --> Sales Order --> Inquiry --> Picking List --> Lines 3.Sales Ledger --> Sales Order --> Inquiry --> Delivery Note --> Lines 4.Sales Ledger --> Sales Order --> Inquiry --> Invoice --> Lines I think problem can be solved as described below. If I m wrong then please let me correct. 1- Add field in each form's datasource named "CustomerLineNum", if not. 2- Should also include in Design. 3- Must have a method for each datasource which assign "Saleslink.CustomerLineNum" to each datasource CustomerLineNum field. Please let me tell the exact way to do this. Where should I write the method? And which parameter should passed to method? Looking forward for you people help. And thanx in advance. Thanks, Ehtasham Ur Rahman