Modify Page C/AL
boone
Member Posts: 23
Sorry if this seems common-knowledge...but I'm trying to edit the C/AL Code for a custom page, but it won't open. Nothing happens at all when I click the C/AL Code button. Is a developer's license required for this? Am I doing it wrong?
I ask because I changed a custom table's primary key to include 2 fields rather than 1. When I view the table, the data is correct, but when I open the page, I get the following error:
"The primary key definition of Additional Information table has changed. Start your activity again."
Searching previous posts, it looked like I just needed to restart my service, but that didn't correct the problem. When I debug it breaks at the bold line:
Call Sign was the primary key before, but it is now Call Sign + Hired Status...
So, do I need a developer's license to edit a Page's C/AL? Does it sound like I need to add "Hired Status" to the bolded line?
Thanks
I ask because I changed a custom table's primary key to include 2 fields rather than 1. When I view the table, the data is correct, but when I open the page, I get the following error:
"The primary key definition of Additional Information table has changed. Start your activity again."
Searching previous posts, it looked like I just needed to restart my service, but that didn't correct the problem. When I debug it breaks at the bold line:
OnOpenPage()
RESET;
[b] IF NOT GET("Call Sign") THEN BEGIN
[/b] INIT;
INSERT;
END;
Call Sign was the primary key before, but it is now Call Sign + Hired Status...
So, do I need a developer's license to edit a Page's C/AL? Does it sound like I need to add "Hired Status" to the bolded line?
Thanks
0
Answers
-
I figured out my problem, I think. I edited the properties of the Action to open the page to link Call Sign and Hired Status. It's working now. The restarting of the service also worked this time, not sure why it didn't before.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