if I run such code:
Object@1000 : Record 2000000001;
Object.SETRANGE(Type,Object.Type::Form);
Object.SETRANGE(ID,90000);
Object.FINDFIRST;
Object.MARK(TRUE);
Object.Modified := FALSE;
Object.MODIFY;
the Form 90000 will have modified flag set to "No" but won't be marked in object designer. is it possible to mark objects by code? maybe with some additional automation?
I found
this post, the "report to mark all licensed objects" looks like what I'm looking for, but link is dead...
Comments
You will not be able to mark them is the object designer form but you can create a seperate list form of you own. What are you tring to acheive?
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I have a text file with NAV objects. the aim is mark the objects which are in the text file in the object designer. I've done it before through setting modified flag to true, then adding filter Modified = Yes. but now it's not applicable, because I have to save modified state as it was. of course I can set date or time to some unique value and add filter, but it would be nice to use marks.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I have created some reports, which mark objects based on...
... objects in a fob/fbk file
... objects in a txt file (NAV Compare Tool required)
... text files in a folder of your file system
... object list in an Excel Sheet (based on copy/paste from Object Designer or Import Worksheet)
With this reports you can choose, how you want to mark the objects:
- Set Modify flag
- Set Date
- Set Time
- Add a char at the beginning of the Version List
The website is in german but the downloadable objects include DEU and ENU language.
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
Simple function to mark particular object: It's not the best way but it works
Object.RESET;
Object.SETRANGE(Type, Object.Type::Table);
Object.MODIFYALL(Modified, FALSE, TRUE);