PAGE PROBLEM
manu90
Member Posts: 8
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?
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?
0
Comments
-
If you need some other information i will happy to give it to you!!!
0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions