on 03-16-2016 3:36 PM
Hi,
Is there a way of creating report by referring to existing report template by using Restful API?
Hi Vaibhav,
The simplest way to do this would be to make a copy of the template document:
POST .../biprws/raylight/v1/documents?sourceId=<template Id>
in the body of the post you can specify the name and folder location
<document>
<name>newWebiDoc</name>
<folderId>1234</folderId>
</document>
Dan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vaibhav,
Where to put the template reports is entirely up to you. For me, I would create a folder called "Templates" and put it under Public Folders so that any user logging on to the application would have access to the folder. I would not store it in my Favorites folder as other logged on users would not have access and would not be able to make a copy of the report through the app.
Dan
Hi Dan,
I am able to create report based on template using restful based on your suggestion, below is the procedure I followed , please check and suggest below procedure is correct or not
1. I exported default style of report in local as css file
2. Applied changes in values of some properties in css file
3. Imported modified css file and applied on document/report
4. Save the document or report (this is the template)
5 Create new document based on your suggestion as per below
POST .../biprws/raylight/v1/documents?sourceId=<template Id>
body
<document>
<name>newWebiDoc</name>
<folderId>1234</folderId>
</document>
6. Document created successfully based on template
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.