Hello, everyone!
Is it possible to add a custom property to a Properties window for an object in visual studio? Particularly for D365FO object.
Thank you!
*This post is locked for comments
Announcements
Hello, everyone!
Is it possible to add a custom property to a Properties window for an object in visual studio? Particularly for D365FO object.
Thank you!
*This post is locked for comments
Please do not use table IDs in any way. Both Andre and Martin explained the table IDs are not tied to your code. It is VERY LIKELY that the table IDs on your dev box are different than your sandbox and yet different in production as well. The point is you cannot depend on a table ID since they are only in the database, and can/will be different in every database.
Also, SQLDictionary is not the place to get table IDs anymore. Yes, it's there and should be accurate, but it is no longer the main repository for IDs.
HI Eugene,
Like Martin said before, this is not possible. The development meta data is completely separated from the database. Maybe another workaround for you:
- Open Dynamics 365
- Change the URL with mi=SysTableBrowser&TableName=SQLDictionary
- Then filter on fieldid with value 0 (Result: you only have table headers)
- The column tabid has the table Id per environment.
Hello, Andre!
Sorry, if I described my problem not properly. I meant adding an ID property (for tables only) to the Properties window in Visual Studio. It was useful feature in ax2012. My thought is to get working with tables in ax7 half-step easier. I don't want to write a job to find table id. I want to see it in properties, or in last case, to click on my AddIn and see TableId in massage window.
Now I know how to get table ID using AddIn. But how to make an extension for standard Properties window? I know that you can create custom properties for .Net objects, like WPF forms. (example is here: https://msdn.microsoft.com/en-us/library/bb165403.aspx) But how can I do similar thing for every table in AX7 - is my question.
You may think about it, like about an investigation task.
If you are interested, and if I'll solve this problem, I'll describe what I did here.
Thank you!
I wonder why you first did provided examples "like Label, Extends or DeveloperDocumentation" and now you are talking about table IDs.
Like Martin said, it has no use in Visual Studio. Within an application you can use commands like tablenum() when required.
Try to get along with all new changes and technology. Don't get left behind in the past.
This is nostalgia, not a business requirement. Also note that table IDs aren't used in the same way as in AX 2012, as I tried to explain, so what you did with table IDs in old versions may be meaningless in AX 7.
My motivation here is that Table Id property was in ax2012. It was useful. Now I would like to add such property to AX7.
Maybe there is some dll which can operate properties window...
I don't share your optimism. Are you aware of the fact that Table ID isn't included in metadata? It's assigned only on DB synchronization and held in database. It also means that two developers can see different IDs for the same table and it may have yet another ID in production. Therefore I wonder why you want to see table ID there in the first place.
If you really need it, you could create a VS extension to find table ID on demand, instead of trying to integrate it to properties.
Hello, Martin!
I would like to add a property to a table. My property will show TableId. I think it could be possible through Addins or Extensions.
It depends on what kind of object you mean.
In most case, the answer is no. You can't add custom properties to tables, for example.
I'm aware of just one placem where it's possible: you can define custom properties for extensible controls.
Note that you can use tags to add some metadata without the need for custom properties.
Hello, Andre!
The purpose of the Custom Property should be the same as the standard ones - to change parameters of an object.
Here I'm talking about the property window in Visual Studio. I need to add a new property (like Label, Extends or DeveloperDocumentation).
I think there should be some C# library.
But I don't really know where to start my search from.
Thank you!
Mohamed Amine Mahmoudi
100
Super User 2025 Season 1
Community Member
50
shanawaz davood basha
6