Hi,
I have to add a new field to several tables on different NAV installations. Is there a way to add these fields "dynamically" ?
Is it possible to put CAL code "dynamically" behind a table (e.g. on OnInsert()) ?
Thanks in advance,
navvy
navvy
Freelance Developer
0
Comments
There might be work-arounds on a NAV SQL Server setup by writing SLQ code (etc.), but I guess that's not what you are looking for.
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
Right?
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
Did you try it, my sample code? This will create an actual NEW field in Table 4...
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
I disagree with this approach completely. Yes it can be done, but why would you?
You still have to get that code on to the customer database somehow. So you're importing an object regardless. How could writing code to add a field possibly save time over just simply adding the field by hand?
I learned a long time ago that NAV wants you to do things in a certain way. That doesn't mean don't find ways to improve processes, that's what NAV is about, but when it comes to the basics, like adding a field, stick to the usual method.
Because I also have to put CAL code behind the tables (e.g. on OnInsert()), I think I will add the new fields by hand.
navvy
Freelance Developer
:thumbsup: =D>
Does using code to add field require a re-compile of the table?
ERP Consultant (not just Navision) & Navision challenger
Table does not seem to have to be recompiled, the modified time/date/mark however will change.
P.S: I have never used this in real world situation, I just know that this works...