Delete object in Import Worksheet

gma
Member Posts: 17
Does anyone know how to create a "killer object" with size 0 and to use that object to delete objects in database with import worksheet?
Thanks
gma
Thanks
gma
0
Comments
-
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!0 -
-
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.0 -
Hi,
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.0 -
gma wrote:If you see at the help you see that It's possible to use the delete option using a killer object of size 0.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)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.
0 -
DenSter wrote: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.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
deadlizard wrote:DenSter wrote: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
MatteoReno Sistemi Navision Developer0 -
Hi Matteo
I still dont understand. :oops:
What happens?
Thomas0 -
ta5 wrote:Hi 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.
MatteoReno Sistemi Navision Developer0 -
Very interesting
... but it would be more useful to know how to delete objects which are not in the license :roll:0 -
wakestar wrote:... 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?0 -
Eto wrote: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
Good tip! I did not now that.
It should be in the Tips and Tricks selection.0 -
Mark Brummel wrote:wakestar wrote:... 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....0 -
Do you mean custom objects or standard NAV objects?
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?0 -
Custom Objects... not Standard NAV Objects
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.0 -
OK, I understand.
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.0 -
theoretically yes,
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 it0 -
Eto wrote:
...
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
Thank you!!!
It works. It is perfect.0 -
Mark Brummel wrote:Eto wrote: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
Good tip! I did not now that.
It should be in the Tips and Tricks selection.
:?: What would be a practical use of a 0 size object?Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
The solution shown by Eto works very well.
Thanks
Giuseppe0 -
Another way for this...
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/Regards,
G-Raj0 -
G-Raj wrote:Another way for this...
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?0 -
Phenno wrote: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]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Eto wrote:deadlizard wrote:DenSter wrote:
BEGIN Object.Type := Object.Type::Form; Object.ID := 50000; Object.Name := 'Killer Form'; Object.INSERT; END;
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 People0
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
- 320 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