What happened to no code on forms?
matttrax
Member Posts: 2,309
Still playing around with NAV2009 and trying to get a feel for all the changes.
I thought we weren't supposed to put code on forms anymore Or that we could only call a codeunit from a form or something. Otherwise it wouldn't work in the RTC. Yet on the customer card (and I'm sure many other forms), what do I see, but code to perform various tasks.
I know it's always been advised to put your code on tables and in codeunits, but I thought this was a requirement now. Did this change? Or did I (as usual) not have a full understanding of what was going on.
I thought we weren't supposed to put code on forms anymore Or that we could only call a codeunit from a form or something. Otherwise it wouldn't work in the RTC. Yet on the customer card (and I'm sure many other forms), what do I see, but code to perform various tasks.
I know it's always been advised to put your code on tables and in codeunits, but I thought this was a requirement now. Did this change? Or did I (as usual) not have a full understanding of what was going on.
0
Comments
-
You can have code on the forms. Take a look at customer page and you'll see the triggers.
There are a couple of triggers that are not supported on pages but everything else should work.0 -
By the way: Is all this form code run on the NST -- or is form code run on the client?
Thomas0 -
AFAIK On Service tier.0
-
On the service tier.
The Service Tier has a server version of the form - the Client is only rendering the form.
The only code you can have running on the Client in 2009 RTC is Client Side COM automation or OCX'es.Freddy Kristiansen
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.0 -
freddy.dk wrote:On the service tier.
The Service Tier has a server version of the form - the Client is only rendering the form.
The only code you can have running on the Client in 2009 RTC is Client Side COM automation or OCX'es.
Very useful information!
Thanks a ton
Thomas0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 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
