on 08-26-2016 9:43 AM
Is it possible to rename universe via Restful Api?
For example from Test.unx to Test_1.unx?
I've tried PUT method:
PUT /biprws/raylight/v1/universes/4504926
and Request body in an XML file:
<universe>
<name>Test_1.unx</name>
</universe>
Got error:
<error>
<error_code>FWB 00003</error_code>
<message>Недопустимый маркер входа в систему. (FWB 00003)
</message>
...
Also tried this code:
PUT /biprws/infostore/cuid_AcBPRvbmFF5JkKKu5zcCO9I
and Request body in an XML file:
<entry>
<content>
<attrs>
<attr name="name">
<name>Test_1.unx</name>
</attr>
</attrs>
</content>
</entry>
Got this error:
<error>
<error_code>RWS 00057</error_code>
<message>Метод не разрешен (RWS 00057)</message>
...
Could you tell me what I'm doing wrong?
Hi Andrey,
I believe this is not possible through RESTful Web services, because we can only perform the GET method operation with Universes (which is used for retrieving information from the universes unv/unx). Also there is no such information provided in the RESTful web services developer guides.
For doing any modifications with universes, we need to use the Semantic Layer SDKs (which is only used with unx type of universes). Also, in this case you have to retrieve the universe locally, set its new name & then re-publish the universe again to BOE repository.
If your requirement is for changing/renaming the universe names irrespective of their types, you can still use the legacy BOE Java SDKs. I had given a try with the same & able to rename the universe name successfully.
Below is the code snippet for the same:
-------------------------------------------------------------------------------------------------------------
IEnterpriseSession es=CrystalEnterprise.getSessionMgr().logon("Administrator", "<Password>", "<BO-Server-Name>", "secEnterprise");
IInfoStore is=(IInfoStore) es.getService("", "InfoStore");
IInfoObjects objs=is.query("select * from ci_appobjects where si_id=5101");
IInfoObject obj=(IInfoObject) objs.get(0);
obj.setTitle(obj.getTitle()+"_1"); // This line is for setting the new name for universe
is.commit(objs);
System.out.println("Success!!!");
-------------------------------------------------------------------------------------------------------------
Note: The above piece of code, doesn't impacts any other properties of the universe i.e. universe short name, SI_ID, SI_CUID etc.
Hope this helps you.
Thanks,
Shailendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As an additional step forward, I would recommend you to raise this on IdeaPlace, so that this feature will be overlooked by Product Experts & may be introduced in future releases of BI suite.
SAP BusinessObjects BI Platform: Ideas
Thanks,
Shailendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.