Skip to main content

Notifications

Announcements

No record found.

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();

}

}

  • Extending public final class EntAssetWorkOrderFullReportContract
    Same happening to me. If you resolve the issue. Just post the solution here.
  • Alex VN Profile Picture
    Alex VN 1,994 on at
    RE: Extending public final class EntAssetWorkOrderFullReportContract

    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,

  • GirishS Profile Picture
    GirishS 27,816 Super User 2024 Season 1 on at
    RE: Extending public final class EntAssetWorkOrderFullReportContract

    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.

  • Martin Dráb Profile Picture
    Martin Dráb 230,433 Most Valuable Professional on at
    RE: Extending public final class EntAssetWorkOrderFullReportContract

    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.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,703 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,433 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans