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
Hi Eugene,
Can you elaborate? What would be the purpose? Do you want to create a custom form control?
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.
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, 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.
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.
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...
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.
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.
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.
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.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CP04-islander 10
Harisgillani 4
dserp 4