I create a new form for Supplement Item, then I click the Ok button on that form, the supplement items will be add to the SalesLine like a salesline order, so how to get the SalesId value display on the form to the Class I use for the Ok button on the supplement item form to create a sale line?
Please help me!
Hi, U can take help from calss SalesAutoCreate > setSalesTable(). To fetch the next numberSequence from Stanadard Number Sequence References, We generally use “NumberSeq” class, using its method “newGetNum”. It will return you the next number id.
Take help from this. Similarly, you can create your own number sequences also, and fetch next number id from code. See other methods also for the same purpose.
Hope, it will help you…