2 weeks ago
Hello,
Is it possible to update the name of menu item of report ?
I update the the name of report with
ReportLayoutsService.UpdatePrinterSettings
but it does not rename the menu item.
All I've found :
delete report layout and menu using
ReportLayoutsService.DeleteReportLayoutAndMenu
and recreate it again with
ReportLayoutsService.AddReportLayoutToMenu
But with this method i will loose additional settings (authorizations, ..)
Request clarification before answering.
Hi tomas_homola ,
Can you please check the ReportLayout Object Members?
There is a member (property) named as 'Name' which sets or returns the Document's Name value.
Field name: DocName
Does it help?
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I've tried
var service = (SAPbobsCOM.ReportLayoutsService)company.GetCompanyService().GetBusinessService(SAPbobsCOM.ServiceTypes.ReportLayoutsService);
var parameters = (SAPbobsCOM.ReportLayoutParams)service.GetDataInterface(SAPbobsCOM.ReportLayoutsServiceDataInterfaces.rlsdiReportLayoutParams);
parameters.LayoutCode = "RCRI0031";
var report = service.GetReportLayout(parameters);
report.Name = "Report 1 (Renamed from DI API)";
service.UpdatePrinterSettings(report);
But the menu item is not renamed.
Tomas
User | Count |
---|---|
60 | |
10 | |
8 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.