I am creating a simple DB (totaly blank) for a client - a few tables with codeunits etc - nothing related to navision Financials and would like to “get the used to [^]” using Navision instead of maybe Microsoft Access or a Delphi solution. Anyway, is there some way of making a default object run when the database is opened? I know that the codeunit “Application Management” normally would handle this - but since my DB is blank is there any other way? I am using Version 3.60…[:)]
Why not simply import codeunit ApplicationManagement and modify it to startup your own default object ? Also there are other important Functions in the codeunit, i’m sure you’re also gonna need…
My licence permissions do not allow me to import that codeunit. no 1. I thought about modifying this codeunit and changing the User setup table to open a different form as a menu but this is not what I wanted to do origninally as I don’t really want all the extra tables and codeunits etc in this DB… I thought that there might be another way of doing it. Does this mean that Navision uses Codeunit 1 as its first “reference” when it starts?
quote:
Originally posted by NicBartie
My licence permissions do not allow me to import that codeunit. no 1.
Did you export/import CU 1 as a text file or a fob? Importing a fob should be possible even if your licence does not allow you to read, modify or create the object in question manually. However, for importing a text file, you need the appropriate licence permission.
The easiest solution, is to Open a 3.60 Cronus database, then go into Codeunit 1 and delete EVERYTHING. Then export the empty object, and import it into your database. (As Heinz says, it must be as an FOB). Now when you have the object in your database you don’t get all the error messages with missing objects. Also once you have CU 1 in the database, you can now use text import to overwrite it. NOTE: Don’t forget though, that on opening a database, Navision will run the Function that has the ID=1 (Globals, Functions, Properties, ID=1). If you don’t do that you will spend a LOT of time with the debugger to find it.
follow as below. 1.Delete all data and objects except code unit 1 and make a back up 2.Import all your customised in to the back that has code unit1.“application management”; Cheers Jaganath Reddy
quote:
Originally posted by David Singleton [NOTE: Don’t forget though, that on opening a database, Navision will run the Function that has the ID=1 (Globals, Functions, Properties, ID=1). If you don’t do that you will spend a LOT of time with the debugger to find it.
Thanks… Seems that I exported as text first. Did not check “Save As Type”. Anyway… I got it to work [:D]. Thanks for the Tip… ID=1 for the first function in CDU 1. Database is now how I wanted it! Thanks all [;)]