You are not logged in.
Dear users of this forum,
we are pleased to inform you that we will be updating the software behind this forum in the near future.
Existing posts, users and categories will remain untouched.
Important:
We will keep you informed in the pinned thread.
Kind regards,
Your ReportServer Team
Liebe Nutzer dieses Forums,
wir freuen uns, euch mitteilen zu können, dass wir in naher Zukunft die Software hinter diesem Forum aktualisieren werden.
Existierende Beiträge, Nutzer und Kategorien bleiben weiterhin bestehen!
Wichtig:
Wir halten euch im angepinnten Beitrag auf dem Laufenden!
Mit vielen Grüßen
Euer ReportServer Team
Pages: 1
Dear Team,
How to remove write protect in the report variants.
Version: 3.0.5
Regards,
Hardik Pandya
Offline
Hi Hardik,
in 3.0.5 the mask for setting/unsetting write/configuration protection is not shown. This is a bug and will be corrected in 3.0.6 (RS-3226).
In the meanwhile, you can set/unset the write/configuration protection per script. We will post a script in this thread later today that sets/unsets this mask for a variant.
Regards,
Eduardo
Offline
Hey Hardik,
here comes the workaround for your issue.
Please set the ids of the reports you want to change the protection.
This code provides you also the ability to change the configuration protection. You can uncomment it if you want.
Execute the code in the terminal.
package net.datenwerke.rs.dashboard.server.dashboard;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import net.datenwerke.rs.core.service.reportmanager.ReportService;
import net.datenwerke.rs.core.service.reportmanager.entities.reports.Report;
import com.google.inject.Inject
ReportService reportService = GLOBALS.injector.getInstance(ReportService.class);
ChangeProtection c = new ChangeProtection(reportService)
c.run()
/* this class handles the ticket TI-631
* and changes the Write/Configure protection for reports
*/
public class ChangeProtection {
private ReportService reportService;
// USER SETTINGS \\
// important! : add "L" at the end
private Set<Long> reportIDs = new HashSet<>(Arrays.asList(75981L)); // you have to set your reportIDs here
boolean flag = false;
// ------------- \\
@Inject
ChangeProtection(ReportService reportService){
this.reportService = reportService;
}
public void run(){
Report node;
for(Long id : reportIDs){
node = reportService.getReportById(id);
//node.setConfigurationProtection(flag);
node.setWriteProtection(flag);
}
}
}Regards,
Rodion
Offline
Hi Hardik,
this issue has been fixed and will be available with reportserver 3.0.6, available at the end of january. Until then, please use scripting as a workaround as stated above.
Regards,
Eduardo
Offline
Hi Hardik,
ReportServer 3.0.6 is released and this is available now as you can read in the release notes: https://reportserver.net/releasenotes/RS3.0.6.html
RS-3226 Bug Variant "Properties", "Report Properties" and "Metadata" tabs are not being shown and cannot be edited, including write and configuration protection.
Regards,
Eduardo
Offline
Pages: 1