Options

What happened to no code on forms?

matttraxmatttrax Member Posts: 2,309
edited 2009-03-04 in NAV Three Tier
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.

Comments

  • Options
    ara3nara3n Member Posts: 9,255
    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.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    ta5ta5 Member Posts: 1,164
    By the way: Is all this form code run on the NST -- or is form code run on the client?
    Thomas
  • Options
    ara3nara3n Member Posts: 9,255
    AFAIK On Service tier.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    freddy.dkfreddy.dk Member, Microsoft Employee Posts: 360
    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.
  • Options
    ta5ta5 Member Posts: 1,164
    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

    Thomas
Sign In or Register to comment.