web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Extending public final class EntAssetWorkOrderFullReportContract

(0) ShareShare
ReportReport
Posted on by 5

Somehow, system allows me to extended "public final class EntAssetWorkOrderFullReportContract" class to add a new DataMember of my own, and it is compiled good, but the data value was not passed into DP class by contract.parmMyDataMember();

Any idea?

Thank you for your attention

[ExtensionOf(classStr(EntAssetWorkOrderFullReportContract))]
final class EntAssetWorkOrderFullReportContract_Nucor_Extension
{
public boolean wolPostedJournals;

[
DataMemberAttribute(identifierStr(wolPostedJournals)),
SysOperationDisplayOrderAttribute('12'),
SysOperationGroupMemberAttribute('WOLGroup'),
SysOperationLabelAttribute(literalstr("Posted Journal Lines")),
SysOperationHelpTextAttribute(literalstr("Show Posted Journal Lines"))
]
internal boolean parmWolPostedJournals(boolean _wolPostedJournals = wolPostedJournals)
{
wolPostedJournals = _wolPostedJournals;
return wolPostedJournals;
}

}

[ExtensionOf(classStr(EntAssetWorkOrderFullReportDP))]
final class EntAssetWorkOrderFullReportDP_Nucor_Extension
{

public void processReport()
{

EntAssetWorkOrderFullReportContract contract = this.parmDataContract();
wolPostedJournals = contract.parmWolPostedJournals();

next processReport();

}

}

I have the same question (0)
  • Martin Dráb Profile Picture
    238,745 Most Valuable Professional on at

    Your code lost indentation because you pasted it in a wrong way. Please use Insert > Code (in this rich-formatting view) to do that. It'll look this way:

    [ExtensionOf(classStr(EntAssetWorkOrderFullReportContract))]
    final class EntAssetWorkOrderFullReportContract_Nucor_Extension
    {
    	public boolean wolPostedJournals;
    
    	[
    		DataMemberAttribute(identifierStr(wolPostedJournals)),
    		SysOperationDisplayOrderAttribute('12'),
    		SysOperationGroupMemberAttribute('WOLGroup'),
    		SysOperationLabelAttribute(literalstr("Posted Journal Lines")),
    		SysOperationHelpTextAttribute(literalstr("Show Posted Journal Lines"))
    	]
    	internal boolean parmWolPostedJournals(boolean _wolPostedJournals = wolPostedJournals)
    	{
    		wolPostedJournals = _wolPostedJournals;
    		return wolPostedJournals;
    	}
    }
    
    [ExtensionOf(classStr(EntAssetWorkOrderFullReportDP))]
    final class EntAssetWorkOrderFullReportDP_Nucor_Extension
    {
    	public void processReport()
    	{
    		EntAssetWorkOrderFullReportContract contract = this.parmDataContract();
    		wolPostedJournals = contract.parmWolPostedJournals();
    
    		next processReport();
    	}
    }

    Regarding your problem, please use the debugger to find out more about what happens in your code.

  • GirishS Profile Picture
    27,833 Moderator on at

    Hi D365 learner,

    Have you duplicated the standard report and restore the dataset?

    Try doing that and check.

    After that you need to map the newly created ssrs report to menu item or controller class by extending them.

    Thanks,

    Girish S.

  • Alex VN Profile Picture
    1,994 on at

    Hi,

    Strange that you can extend final class. Anyway if your new parm is showing but not have value, try to restore the dataset using that DP so the report and recognize and take the value.

    Regards,

  • Community member Profile Picture
    2 on at
    Same happening to me. If you resolve the issue. Just post the solution here.

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 545 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 408

#3
Adis Profile Picture

Adis 267 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans