Announcements
Hi,
Can some one please help me to create Class extension of Data Contract class. i can easily create extension of normal class but when ever i am trying to put annotation of data member attribute compiler give me error.
Hi Martin,
I am also looking for the possibility of adding an extra parameter in standard report.
As per the previous posts, I could infer that its not feasible to add manual parameter in the standard report.
Do we have any other way for this ?
Thanks.
Yes, I know, but I was answering your subsequent question ("its necessary to put [DataMemberAttribute] at the top of the class when we are using this as contract?").
I thought your original question was already addressed by Ievgen; I've made no research on it myself.
Martin, Actually what i want to achieve to create an extension of data contract class for my API service. can you please confirm me is it possible or not? i was following your blog for normal class extension
You declare a class as a data contract by these attributes. If you don't use them, the class isn't a data contract.
But you must use DataContractAttribute, not DataMemberAttribute, at class level.
Can you please confirm me one thing. its necessary to put [DataMemberAttribute] at the top of the class when we are using this as contract in web service D365
Hi Sheikh Sohail Hussain,
As far as I know it is not possible. If you want to extend report to add new parameters you can extend menu item\print management to use new controller class that can use new DP and new contract class (they can be derived from standard if you want).
Please refer for details docs.microsoft.com/.../custom-designs-business-docs
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156