Quantcast
Channel: Microsoft Dynamics NAV
Viewing all articles
Browse latest Browse all 64865

Forum Post: RE: Getting the specific record of the line items

$
0
0
Hi It seems that you have the action button in the Page - 42 - Sales Order and you want to display the selected lines when you click the action let's name the Action - "Get Selected Lines" to achieve this. 1. Create a function GetSelection in the Page - 46 - "Sales Order Subform" GetSelection(VAR pSalesLine : Record "Sales Line") CurrPage.SETSELECTIONFILTER(pSalesLine); 2. Create a Action " Get Selected Lines " in the Page - 42 - "Sales Order" and write the below code in the action or a function. Get Selected Lines - OnAction() //Delcare a local variable lSalesLine --> Record --> Sales Line CurrPage.SalesLines.PAGE.GetSelection(lSalesLine); IF lSalesLine.FINDSET THEN REPEAT MESSAGE(FORMAT(lSalesLine)); UNTIL lSalesLine.NEXT = 0; Open the Page - 42 - "Sales Order" and select the lines and then click the Action Get Selected Lines " from the Page - 42 - "Sales Order" it should display the selected lines. Hope this is what you need and it works as expected. Thanks

Viewing all articles
Browse latest Browse all 64865

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>