on 07-15-2016 5:38 PM
hi All,
I tried saving the opened webi report and tried to save the report using the restwebservice call in java
POST <webiURL>/documents/{documentId}
Hello,
According to the documentation, POST is for creating a new Webi document (an empty one or from an existing one).
Use PUT to simply save back your document to the CMS.
Regards,
Anthony
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gaurav,
Ok, so if you want to create a new Webi document from an existing one, you have to use a POST with a payload like you did:
<document>
<name>testgaurav</name>
<folderId>-1</folderId>
</document>
You have to specifify what is the "source" Webi document to copy using the query parameter "sourceId" with the identifier.
Regards,
Anthony
Hi Gaurav,
A small doubt,
Did you open the Report in Webi and then Trying to save it using Restful SDK.
If that is the case you cannot do it.
Otherwise,
Try saving the report using a Put method instead of Post to save the report.
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello Gaurav,
In addition to Dan's recommandation about WACS trace, which version are you running? (GET .../raylight/v1/about) ?
Thanks,
eric
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guarav,
You can't save a report to a folder with an ID of "1" as this is not a valid folder. The infoobject ID 1 is reserved for the "Everyone" Group, so essentially you a tryinig to save a report to a Group. Make sure you are using a valid folder ID that the logged on user has access to.
[edit]:
Sorry about that. Bad eyes and a tiny font on my screen. I see now that you used "-1". Yes this should work for saving the document back to the same folder with a different name. If you enable the stack trace on the WACS server, you should get a better error. Also, one thing to try is removing the hyphen from the new name (just to be sure that's not part of the issue).
Dan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.