Employee Poratal : - Navision error (10500):

EknathPPawar
Member Posts: 34
I have created a Card Web Part to save records to a table as below
TableName : DateFilter Details
1. StartDate Datatype - Date
2. Description Code - 50
When i use the insert command the record shown is refreshed. When i use the save command I get the Error Navision error (10500): RECORDREF variable not initialized.
I have made the changes in Code unit - 6822 - EP Insert Head Data Mgt. by copying the InsertCustomer Function and by making the necessary changes.
========= start of code =======
InsertrReportDate(GUID : Text[50];VAR HeadRecordRef : RecordRef)
HeadRecordRef.OPEN(DATABASE::ReportdateFilter,FALSE);
HeadRecordRef.INIT;
HeadRecordRef.INSERT(TRUE);
// Build Records to Create the Filter for Answer (Filter for HEAD)
HeadFieldRef := HeadRecordRef.FIELD(ReportDate.FIELDNO(Description));
tmpCustNo := HeadFieldRef.VALUE;
EPSupportFunctions.CreateTempHeadFilterTable(ReportDate.FIELDNO(Description),tmpCustNo,GUID);
// Build Records to Create the Key for Answer (Filter for HEAD)
EPSupportFunctions.CreateTempHeadFilterKeys(ReportDate.FIELDNO(Description),GUID);
========= END of code =======
Please guide me in this matter.
Regards
Eknath Pawar.
TableName : DateFilter Details
1. StartDate Datatype - Date
2. Description Code - 50
When i use the insert command the record shown is refreshed. When i use the save command I get the Error Navision error (10500): RECORDREF variable not initialized.
I have made the changes in Code unit - 6822 - EP Insert Head Data Mgt. by copying the InsertCustomer Function and by making the necessary changes.
========= start of code =======
InsertrReportDate(GUID : Text[50];VAR HeadRecordRef : RecordRef)
HeadRecordRef.OPEN(DATABASE::ReportdateFilter,FALSE);
HeadRecordRef.INIT;
HeadRecordRef.INSERT(TRUE);
// Build Records to Create the Filter for Answer (Filter for HEAD)
HeadFieldRef := HeadRecordRef.FIELD(ReportDate.FIELDNO(Description));
tmpCustNo := HeadFieldRef.VALUE;
EPSupportFunctions.CreateTempHeadFilterTable(ReportDate.FIELDNO(Description),tmpCustNo,GUID);
// Build Records to Create the Key for Answer (Filter for HEAD)
EPSupportFunctions.CreateTempHeadFilterKeys(ReportDate.FIELDNO(Description),GUID);
========= END of code =======
Please guide me in this matter.
Regards
Eknath Pawar.
0
Answers
-
Hi,
there are multiple Codeunits:-
InsertHead which means that this codeunit will be used when you insert a new record through a card or from the head section of a header-line web part
-
InsertLine which means that this codeunit will be used when you insert a new record through a list or from the line section of a header-line web part
-
ModifyHead which means that this codeunit will be used when you modify a record from card / head area
-
ModifyLine which means that this codeunit will be used when you modify a record from list / line area
-
DeleteHead which means that this codeunit will be used when you delete a record from card / head area
-
DeleteLine which means that this codeunit will be used when you delete a record from list / line area
Therefore you have also to modify the ModifyHead codeunit for your table. Then the save should work.
HTH,
Rainer0 -
Dear Rainer,
I have done the changes in the necessary code units and its works.
Thanks,
Regards
Eknath Pawar.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