form crashes when subform is empty

CobaltSS
Member Posts: 137
Hi,
I have a form based on a copy of table 36, and a subform based on table 37. I'd like the forms to behave like forms 42 and 46. But, when the parent record exists, and no child record exists, the form crashes. I'd rather it just show the empty child table. I've matched the properties of the two sets of forms, and outside of the AutoSplitKey property, I think the 2 sets of forms are set up identically. I'm running a 3.70 back end on a 2009 client, and SQL.
cheers,
I have a form based on a copy of table 36, and a subform based on table 37. I'd like the forms to behave like forms 42 and 46. But, when the parent record exists, and no child record exists, the form crashes. I'd rather it just show the empty child table. I've matched the properties of the two sets of forms, and outside of the AutoSplitKey property, I think the 2 sets of forms are set up identically. I'm running a 3.70 back end on a 2009 client, and SQL.
cheers,
0
Answers
-
What do you mean by crashes? If you hit f3 and enter does it crash then? Or when a customer # is entered? Does it crash then? Let's say you have the header & subform and the sub form has items, if you delete all the items (therfore leaving it blank) does it crash then?
Is there any error message? Happening on all machines? Does anything show in the event log of that machine?
You say "and outside of the AutoSplitKey property" are you saying that property isn't set?0 -
Hi again,
The tables are NORMALLY populated via a dataport. But I did some of the testing asked for. If I open the form, delete the data in the subform, and either move off the parent record and back to the record that had the data deleted, the form crashes. If I manuall create a parent record, and do not create any child record, when I move off the record and back onto it, the form crashes. The error message is consistent: "The Sales Header does not exist, Identification and fields: Document Type: Quote, No. = xx" where xx is the number of the Parent record that I created but has no Sales Lines. I'm also concerned about the fact it's looking for "Quote", when I've specified "Order" as pretty much the only value that can ever be in that field.
I'm developing locally, so I can only test on my machine.
cheers,0 -
Solved, The "Document No." in my child table had not had it's properties updated. When I removed the Table filter condition Document Type=FIELD(Document Type) from the Table Relation property, the form behaved.
Thanks for your time,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