What about form triggers with 5 Version

ajaybabuCh
Member Posts: 208
Hi
Does Navision 5 version support all the form triggers as we have some business logic in form triggers in present and previous versions.
regards
ajay
Does Navision 5 version support all the form triggers as we have some business logic in form triggers in present and previous versions.
regards
ajay
Ajay
0
Comments
-
5.0 will support it but 5.1, I don't know. MS has recommened to move the code to Codeunts.
I've always recomment to write your code at the table triggers. So it's still early to move your code to tables and codeunits.0 -
[Topic moved from Navision to Upcoming version 5.0 (AKA Dynamics NAV) forum]0
-
If version 5 doesn't support all the triggers of navision present version
What about the addons that already developed and the customizations
for the customers having some business logic in the formsAjay0 -
well with any addons and new versions you have to change the code to work with new version.0
-
First of all, that's what the beta program is for ... to be assisted in upgrading the ISV solution.
Furthermore, it seems logical to me that there will be form triggers for design reasons (conditional formatting,...). For now, you can make sure to minimize the amount of code you write behind forms.0 -
can give me some idea on what is Beta programmingAjay0
-
ajaybabuCh wrote:can give me some idea on what is Beta programming
For us it means:
- Having an ISV solution that will be upgraded with the assistence of Microsoft;
- Having training by Microsoft;
- Being prepared for the launch;
- Having a client that gets attention in the Media0 -
ajaybabuCh wrote:If version 5 doesn't support all the triggers of navision present version
What about the addons that already developed and the customizations
for the customers having some business logic in the forms
Since the release of the Windows version of Navision, they have been pounding into developers that coding on Forms should only be used for formating data, and should never be used to modify the database. (Yes I know even their own programmers have not listened some time).
If you have code in forms that should not be there, now is the time ot start restructuring and making it work the right way. If we were to have code on forms that triggers database changes, then what would be the purpose of a thin client. In my opinion, the thin client is a presentation tool, and thats all. All processing should happen on the business logic server.David Singleton0 -
You can still code on forms in 5.00
-
But what IS the purpose of having a thin client anyway? Did anybody ask for it? An alternative thin client for those who are obsessed by keying in orders in netcafes might be occiasionally nice but it shouldn't be considered a paradigm change.
This whole thin-thing is nothing but the MVC concept (Model-View-Controller separation). And this is a useful thing for some purposes - especially in those cases long-term maintenance is important - but not for all cases, it's clearly not a one-size-fits-all solution. Rich clients, strongly interconnected, non-layered business logic and presentation has it's uses (think of PHP), mainly when you need to do quick-and-dirty things, or rapid prototyping, or when the expected behaviour is not that of a database application, so you have to make it not look and feel like one, or when you want your customizations have a minimum footprint etc. etc.0 -
In other words, when this MVC concept fails, it fails because from a developers viewpoint a user interface might be just a "presentation tool" or a "layer", but from the user's viewpoint, that's the WHOLE application itself!0
-
:shock: I'm surprised by this question...
It's not so much the thin client bit that is most important, it's taking the business logic away from the clients onto scalable server machines. Cutting down network traffic, speeding up transactions, things like that.0 -
DenSter wrote::shock: I'm surprised by this question...
It's not so much the thin client bit that is most important, it's taking the business logic away from the clients onto scalable server machines. Cutting down network traffic, speeding up transactions, things like that.
=D> exactly.
And putting business logic on the presentation layer ruins this.David Singleton0 -
Mbad wrote:You can still code on forms in 5.0
But will you write business logic here ... I think not.
Will you be able to access the database by code ... I think it shouldn't be possible.
For having the client as thin as possible, we should not have business logic on forms.
I still do have one question with that. Will NAV still have huge code after the OnValidate-trigger (probably it will) ... so after validation, we're going to have quite a lot network traffic after all ... making the client not as thin as we want it to be ... . This is something I wonder what the answer of MS will be. :-k0 -
Waldo wrote:Mbad wrote:You can still code on forms in 5.0
But will you write business logic here ... I think not.
Will you be able to access the database by code ... I think it shouldn't be possible.
For having the client as thin as possible, we should not have business logic on forms.
I still do have one question with that. Will NAV still have huge code after the OnValidate-trigger (probably it will) ... so after validation, we're going to have quite a lot network traffic after all ... making the client not as thin as we want it to be ... . This is something I wonder what the answer of MS will be. :-k
I have more doubts about speed over the internet.
The first layer will have to wait a lot before the response comes of the 2nd layer after running the onvalidate-trigger.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
If the presentation layer were only to be used for display purposes, I would be surprised if we still had a Validate trigger on the form.0
-
Well,
I guess the field still has to be validated. The validation itself will be done by service tier, but the call-to-validate needs to be done. This doesn't need to be a heavy call over the internet ... but it has te be done. If this generates much trafic over the network is a question where only Microsoft has the answer for at the moment.0 -
DenSter wrote:If the presentation layer were only to be used for display purposes, I would be surprised if we still had a Validate trigger on the form.
Or to take it a level further, IF we have a validate trigger at the form level, then what would be the purpose of the thin layer.
All processing commands should be sent back to the 2nd layer, and processed there. The Client layer should be thought of more as an "intelligent Navision customized Citrix type client.David Singleton0 -
Waldo wrote:... but it has te be done.0
-
-
Sorry, but I think it all is just just wishful thinking. I think the most important rule of not only ERP, but IT in general is to prepare for the worst possible case. Like, prepare for the case when it turns out that you grossly misunderstood requirements, you are three days before go-live, you have to make huge changes in no time and for free and the company owner is an ex-KGB mafia boss meaningfully playing with a machine gun. Not that it would happen frequently
but you must leave the option open to manage such cases. "Shit happens" is the typical characteristic of IT in general. Granted, most of the time you are more interested in long-time maintanability, network load, interchangeable presentation options (client, web, report, Excel) et cetera, et cetera - but taking away the option to be as quick as possible at those times when it does not really count how dirty it is is clearly suicidal.
0 -
In classical Model - View - Controller (3-tier, if you prefer this term) systems forms (the View) only do basic validation like data type, field length, regex-matches (f.e. a phone number format) and so on. Sometimes, a field can validate based upon a value of another field on the same form, like in MS CRM. But in those systems table relations etc. are generally not checked until the form is saved/posted/OK-d. This is one of the reasons why MVC tends to be quite clumsy for many applications.
Basically, in the long run, if Navision embraces the MVC paradigm it will mean that it will be reduced to the role of a truly and ERP/CRM/whatever system, meaning that it will be used only for the original sense business software are usually used: entering data, largely based on table relations / foreign keys and practically nothing else. Meaning that all those current "not really ERP" applications like f.e. product configurators will have to be moved outside, to C# programs. Which will mean that Navision will move upwards on the market, to the higher end of the medium business market, for those companies who do have an IT strategy, are interested in platform/architecture questions, and are able to pay the costs of it, and it will be less feasible to implement at small ones. Probably it also means more focus for add-ons and less focus for customizations which I consider suicidal but we'll see. The interesting thing is that because as SAP B1 turned out to be an utter horrible crap, there is basically nothing popular out there for the low end of the market and will be even less when NAV 5.1 is out. Because even the cost increase just due to the more complicated installation of the server - probably alongside with Reporting Services - will repel smaller companies by itself, not counting the other costs.0 -
I've heard from Microsoft that it will b epossible to use code in forms since it will be Pages which will be made from codes + forms.
I don't know which triggers will be in the Forms (eventually the pages)
Merry X/mas t y'll! :shock:0 -
Are there any official specification/policy/best practice documents on this matter? If so, does anyone have a link?0
-
Waldo wrote:Patience is a virtue
BTW : it is not out of topic, because the saying serves for awaiting the 5.1Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Miklos Hollender wrote:In classical Model - View - Controller (3-tier, if you prefer this term) systems forms (the View) only do basic validation like data type, field length, regex-matches (f.e. a phone number format) and so on. Sometimes, a field can validate based upon a value of another field on the same form, like in MS CRM. But in those systems table relations etc. are generally not checked until the form is saved/posted/OK-d. This is one of the reasons why MVC tends to be quite clumsy for many applications.
Basically, in the long run, if Navision embraces the MVC paradigm it will mean that it will be reduced to the role of a truly and ERP/CRM/whatever system, meaning that it will be used only for the original sense business software are usually used: entering data, largely based on table relations / foreign keys and practically nothing else. Meaning that all those current "not really ERP" applications like f.e. product configurators will have to be moved outside, to C# programs. Which will mean that Navision will move upwards on the market, to the higher end of the medium business market, for those companies who do have an IT strategy, are interested in platform/architecture questions, and are able to pay the costs of it, and it will be less feasible to implement at small ones. Probably it also means more focus for add-ons and less focus for customizations which I consider suicidal but we'll see. The interesting thing is that because as SAP B1 turned out to be an utter horrible crap, there is basically nothing popular out there for the low end of the market and will be even less when NAV 5.1 is out. Because even the cost increase just due to the more complicated installation of the server - probably alongside with Reporting Services - will repel smaller companies by itself, not counting the other costs.
Hi
Good point, you got there.
It all seems a "bit" driven by the technology.
Hope we can find enough customers with enough money.
What is the main strength of "Old style Navision" ?
If the strength of "Old style Navision" is gone with 6.0, will it
still sell as good as today ?
90% of Navision customers give a dam if it's 3 tier or 2 tier.
3 tier will only sell at the right price.
BR Per0
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
- 322 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