If you want to delete objects, you can just delete them from the object designer. I hope this ansers you question, because I didn't understand exactly what you wanted.
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
I know that I can delete the object directly in the object designer but if I want to delete the same object in different databases I have to repeat the same delicate operation.
If you see at the help you see that It's possible to use the delete option using a killer object of size 0.
I don't know how to create an object of size 0.
Open the C/SIDE reference guide and search for the word 'killer', which will display the help text for the import worksheet I have no idea how you would create such a killer object.
Open the C/SIDE reference guide and search for the word 'killer', which will display the help text for the import worksheet I have no idea how you would create such a killer object.
Holy crap... 8 years of Navision experience and this is the first time I know about tihs.
Open the C/SIDE reference guide and search for the word 'killer', which will display the help text for the import worksheet I have no idea how you would create such a killer object.
Holy crap... 8 years of Navision experience and this is the first time I know about tihs.
OBJECT Codeunit 50000 Killer Form Creator
{
OBJECT-PROPERTIES
{
Date=13/09/06;
Time=[ 1.36.03];
Modified=Yes;
Version List=;
}
PROPERTIES
{
OnRun=BEGIN
Object.Type := Object.Type::Form;
Object.ID := 50000;
Object.Name := 'Killer Form';
Object.INSERT;
END;
}
CODE
{
VAR
Object@1000000000 : Record 2000000001;
BEGIN
END.
}
}
Import this code as a text file object in a cronus database
Compile Codeunit 50000 and run.
Search Form 50000 and save as a FOB
Delete Form 50000
Create a simple form 50000
Import your FOB
... but it would be more useful to know how to delete objects which are not in the license :roll:
Why do you want that? Are they in your way?
YES, they are
We wrote our own tools for exporting navision objects automatically (for different purposes). It works very well, except when there is an object which is not in the license....
It is all done with SENDKEYS... of course the user has to follow some "rules" like not changing the order of the fields in the object designer, because the tool automatically sets the filters.
but because it is an external application (VB) which 'commands' the client, it is not that easy to read the table in navision. And at the end it is an 'In-house' Application... what means that nobody wants to pay for it
Import this code as a text file object in a cronus database
Compile Codeunit 50000 and run.
Search Form 50000 and save as a FOB
Delete Form 50000
Create a simple form 50000
Import your FOB
Export the object as .txt.
Delete every thing inside it except the start and the end brace.
Import the txt file. The object will get deleted automatically and will not even for a confirmation.
Export the object as .txt.
Delete every thing inside it except the start and the end brace.
Import the txt file. The object will get deleted automatically and will not even for a confirmation.
\:D/
This is nice... why this thread is not in tips&tricks?
This is nice... why this thread is not in tips&tricks?
I was waiting for someone to to note it
BTW : in case you find some other topic in a wrong forum, you can use the report function (the red ! on the right of the post) of the forum.
[Topic moved from Navision forum to Navision Tips & Tricks forum]
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Alternatively, it can be done by browsing to the end of the list of the required type in the object designer until you are on a new record. Enter an ID and a name, and you will have created a 0 size object, which can be exported and which will default to the "Delete" option in the import worksheet while importing.
Note though: as far as I remember, despite being described in the manual, attempts to import/export such ojects used to crash Navision in the earlier versions.
Vytenis Jakas B3 Technologies - Making Technology Serve the People
Comments
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
RIS Plus, LLC
If you see at the help you see that It's possible to use the delete option using a killer object of size 0.
I don't know how to create an object of size 0.
I need create a killer object also but I don´t how to do it. ](*,)
Does anybody know anything about this topic?
Please, it is very important for me.
Thank you.
RIS Plus, LLC
Holy crap... 8 years of Navision experience and this is the first time I know about tihs.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Import this code as a text file object in a cronus database
Compile Codeunit 50000 and run.
Search Form 50000 and save as a FOB
Delete Form 50000
Create a simple form 50000
Import your FOB
Matteo
I still dont understand. :oops:
What happens?
Thomas
When you import the fob with a 0 size object, Import Worksheet suggest "Delete" instead of "Replace" the existing object.
My example show how to create a 0 sized object.
Matteo
... but it would be more useful to know how to delete objects which are not in the license :roll:
Why do you want that? Are they in your way?
Good tip! I did not now that.
It should be in the Tips and Tricks selection.
YES, they are
We wrote our own tools for exporting navision objects automatically (for different purposes). It works very well, except when there is an object which is not in the license....
You cannot delete all standard NAV objects that are not in the license. This wil cause compile errors all over the database.
BTW, your tool sounds intersesting! How have you done this? Care to share the solution?
It is all done with SENDKEYS... of course the user has to follow some "rules" like not changing the order of the fields in the object designer, because the tool automatically sets the filters.
Isn't it possible to check the License Permission table in your routine? This way you might avoid to touch object that are not in the license.
but because it is an external application (VB) which 'commands' the client, it is not that easy to read the table in navision. And at the end it is an 'In-house' Application... what means that nobody wants to pay for it
Thank you!!!
It works. It is perfect.
:?: What would be a practical use of a 0 size object?
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Thanks
Giuseppe
Export the object as .txt.
Delete every thing inside it except the start and the end brace.
Import the txt file. The object will get deleted automatically and will not even for a confirmation.
\:D/
G-Raj
This is nice... why this thread is not in tips&tricks?
BTW : in case you find some other topic in a wrong forum, you can use the report function (the red ! on the right of the post) of the forum.
[Topic moved from Navision forum to Navision Tips & Tricks forum]
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Alternatively, it can be done by browsing to the end of the list of the required type in the object designer until you are on a new record. Enter an ID and a name, and you will have created a 0 size object, which can be exported and which will default to the "Delete" option in the import worksheet while importing.
Note though: as far as I remember, despite being described in the manual, attempts to import/export such ojects used to crash Navision in the earlier versions.
B3 Technologies - Making Technology Serve the People