Weird behaviour on Page vs. Form

zeon
Member Posts: 130
I am posting this issue, as I am out of ideas regarding some strange behaviour I see on a Page.
So, the problem is seen when I enter a new Sales Line.
When I enter Type=Item and then enter a Item No. the line remains blank and no item no. is seen in the "No." field. The line is simply not inserted. When I do exactly the same in the Classic client it behaves as expected and the line created with the Item No.
So, I thought it could be some customizations to P46 Sales Order Subform vs F46. I have then imported the standard versions of these objects. Restarted the NST just to be sure, but the problem remains.
I have checked T37 Sales Line for "IF ISSERVICETIER" code.
We have made some customizations to the Sales Price Mgmt CU7000. I have though found out that the problem only occurs in some cases if some specific conditions is fulfilled in the code. Still I would expect it to behave the same for the Page and the Form, as this code has nothing to do the either the form or the page.
I have added some debug messages to the code after returning from CU7000 in T37 (FindSalesPrice....) and added debug messages to the Page as well. I can see the SalesLine has values in Item No., but again after the code completes the line is blank and not inserted.
This problem is regarding NAV 2009 R2, build 33750, so debugging NAV2009 is a pain :thumbsdown:
Any ideas what I could look for or how I could go on searching for the error...?
So, the problem is seen when I enter a new Sales Line.
When I enter Type=Item and then enter a Item No. the line remains blank and no item no. is seen in the "No." field. The line is simply not inserted. When I do exactly the same in the Classic client it behaves as expected and the line created with the Item No.
So, I thought it could be some customizations to P46 Sales Order Subform vs F46. I have then imported the standard versions of these objects. Restarted the NST just to be sure, but the problem remains.
I have checked T37 Sales Line for "IF ISSERVICETIER" code.
We have made some customizations to the Sales Price Mgmt CU7000. I have though found out that the problem only occurs in some cases if some specific conditions is fulfilled in the code. Still I would expect it to behave the same for the Page and the Form, as this code has nothing to do the either the form or the page.
I have added some debug messages to the code after returning from CU7000 in T37 (FindSalesPrice....) and added debug messages to the Page as well. I can see the SalesLine has values in Item No., but again after the code completes the line is blank and not inserted.
This problem is regarding NAV 2009 R2, build 33750, so debugging NAV2009 is a pain :thumbsdown:
Any ideas what I could look for or how I could go on searching for the error...?
0
Comments
-
Have you opened table 37 in object designer and filtered for the document type and number? Perhaps it's being added, but the link properties of your subpage to your card page is missing something, or perhaps no line no. is being assigned due to the code that's inserted? To make debugging in 2009 easier (sigh....I hate that version!), try inserting a simple Message statement that will return the key of the record (Doc Type, Doc No., Line No.) when a record is inserted at the bottom of your OnInsert trigger. Then you'll at least know if it's added. If it's added - it's your page. Oh - check the "AutoSplitKey" property of your subpage too. It should be "YES". There's just a lot of things that could cause this behavior.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions