Today I am going to post some common Customizations required for Reports in Axapta:
1) How to change Report Caption at Runtime ?
Create a new display method in the morphx report:
display Name ReportName()
{
return element.design().caption("Caption Modified");
}
Set the Datamethod property of a string control as "ReportName".
2) How To display CompanyName in a Morphx Report ?
display Name companyName()
{
return CompanyInfo::name();
}
3) Company Address in a Report ?
Display Addressing companyAddress()
{
;
return CompanyInfo::find().Address;
}
4)Display Total Number of Pages of a Report ?
display int PageTotal()
{
return element.pagesTotal();
}
5) Page number of the Current Page in a Report
display str 20 PageNum()
{
return strfmt("%1",element.page());
}
6) Display CompanyLogo in a Report ?
display Bitmap companyLogo()
{
return FormLetter::companyLogo();
}
Happy Daxing :-)
1) How to change Report Caption at Runtime ?
Create a new display method in the morphx report:
display Name ReportName()
{
return element.design().caption("Caption Modified");
}
Set the Datamethod property of a string control as "ReportName".
2) How To display CompanyName in a Morphx Report ?
display Name companyName()
{
return CompanyInfo::name();
}
3) Company Address in a Report ?
Display Addressing companyAddress()
{
;
return CompanyInfo::find().Address;
}
4)Display Total Number of Pages of a Report ?
display int PageTotal()
{
return element.pagesTotal();
}
5) Page number of the Current Page in a Report
display str 20 PageNum()
{
return strfmt("%1",element.page());
}
6) Display CompanyLogo in a Report ?
display Bitmap companyLogo()
{
return FormLetter::companyLogo();
}
Happy Daxing :-)
No comments:
Post a Comment