Hi all, i'm new here and are about 6 months that i started using Nav (so i'm not very expert).
I create a Page in nav2013 that is structured as follow:
container (main page)
group repeater
fields
part page (page name subform1)
Each row of the main page can have 1 or more row on the subform1.
When I click one row of the main page, all the related rows on the subform1 are displayed.
Then have to select ONE row of the subform1 that represents warehouse receipts and LINK it to the row clicked before on the main page.
To link them i create a PageAction called "Collega" but when i select the row on the subform1 and click the button it returns always the first row....
the code of the buttton starts like this:
SalesShipLine.RESET;
SalesShipLine.SETRANGE("Document No.",ShipmentNo);
Sa lesShipLine.SETRANGE("Line No.",ShipmentLineNo);
IF SalesShipLine.FINDFIRST = TRUE THEN BEGIN
IF CONFIRM(STRSUBSTNO(BText001,SalesShipLine."Nr. Bolla Multiordine Def.",SalesShipLine."Line No.",
"Document No.","Line No."),TRUE) = TRUE THEN
BEGIN
[........]
END;
The problem is that "Document No." is not the one i select but always the first of the list.
I don't know if I gave you enough information, but can you suggest me a way to solve it or tell me when can be the problem?
Comments