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

Notifications

Announcements

No record found.

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
    237,948 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,827 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 559 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 464 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans