Display last line of sales order form

MclarenMclaren Member Posts: 47
Hi Guys,



I have to get the last line of the Sales Order Form through another form by clicking a button. For example If there is 10 items selected in the Sales Line The form have to show the last line. Normally the form shows the first line. But I have to display last line.

Any experts provide me a solution for this.

Comments

  • HenningThHenningTh Member Posts: 59
    Mclaren wrote:
    Hi Guys,

    I have to get the last line of the Sales Order Form through another form by clicking a button. For example If there is 10 items selected in the Sales Line The form have to show the last line. Normally the form shows the first line. But I have to display last line.

    Any experts provide me a solution for this.

    Two ways to do this:
    Set the sorting-order to descending.
    Add a line with SalesLine.FINDLAST (after filter is set).
Sign In or Register to comment.