Quantcast
Channel: SCN : All Content - RESTful Web Services SDK
Viewing all 262 articles
Browse latest View live

what is the service to download the instacnce from history?

$
0
0

Hello All,

I'm fairly new to the BO world and would appreciate any help navigating my way through the API, we currently use BO SDK and are building a proof of concept with BO 4.1 RESTful services. I was able to schedule a document for generation.

 

I have scheduled the document with keepInstanceInHistory property to true. At a later point if I want to download this instance, which service should I be using? I've tried scheduling with SystemDestinationAndSpecificFolder option as well - which did not write the document in the folder specified.

 

we'd rather like to have the ability to download/save the instance on demand - for instance this could be wrapped behind a UI so that when user clicks a button, we want to downlod the report.

 

Any ideas?

Thanks,

Pavan


Consume JSON rest web services

$
0
0

Hi experts,


     I have a requirement to Consume rest web services from a URL, which is in JSON format. Help me out to make it.

 

Thanks
~Faseeh

Are these functions available in the REST API?

$
0
0

I searched the documentation, but have found no way to do the following:

  • Perform a CMS Query (or any other way to filter/retrieve CMS objects)
  • Get current user's info (Favorites folder ID, Inbox ID, etc.)
  • Get security details for objects
  • Get info on Events, Calendars, Servers

Equivalent Restful Service for openDocument(SI_ID)

$
0
0

Hello All,

 

I'd asked this question here http://scn.sap.com/message/15324826#15324826 already, since the question is marked as answered - perhaps noone is looking at it.

 

http://localhost:6405/biprws/raylight/v1/documents/<documentId>/pages?mode=quickDisplay or reports services appear to export the static document that is setup.

How do I download the latest instance of the document after the schedule is completed using the schedule id?

 

with BO 3 SDK, we were using ReportEngine's openDocument(SI_ID) method to stream the instance.

 

Thanks,

Pavan

WIS30650 after changing universes with REST API

$
0
0

I created a very simple WebI report (one object), and attempted to switch it from its original unv universe to an identical unx universe.  The switch appeared to work correctly:

 

GET http://server:6405/biprws/raylight/v1/documents/69684/dataproviders/mappings?originDataproviderIds=DP0&targetDatasourceId=69934

 

Response:

<?xml version="1.0" encoding="UTF-8"?><mappings>

    <content>

        <mapping status="Ok">

            <source>

                <id>DS0.DO8</id>

            </source>

            <target>

                <id>OBJ_8</id>

            </target>

        </mapping>

    </content>

</mappings>

 

Send the mapping back in a POST to do the change:

POST http://ad1hfdbow010:6405/biprws/raylight/v1/documents/69684/dataproviders/mappings?originDataproviderIds=DP0&targetDatasourceId=69934

 

<?xml version="1.0" encoding="UTF-8"?><success>

    <message>The resource of type 'Document' with identifier '69684' has been successfully updated.</message>

    <id>69684</id>

</success>

 

Re-get the data provider to ensure it was updated correctly:

GET http://ad1hfdbow010:6405/biprws/raylight/v1/documents/69684/dataproviders/DP1

 

Response is as expected:

<?xml version="1.0" encoding="UTF-8"?><dataprovider>

    <id>DP1</id>

    <name>Query 1</name>

    <dataSourceId>69934</dataSourceId>

    ......

 

Save successfully:

PUT http://ad1hfdbow010:6405/biprws/raylight/v1/documents/69684

<?xml version="1.0" encoding="UTF-8"?><success>

    <message>The resource of type 'Document' with identifier '69684' has been successfully updated.</message>

    <id>69684</id>

</success>

 

But when I attempt to open the report in WebI, I get:

The action cannot be performed. (WIS 30650).

 

Any idea?

Status of a schedule - error message on failure.

$
0
0

Hello All,

 

when querying for status, after scheduling a document, using the schedule Id - the service returns Completed/Failed status. In case of a failure, it does not give us any detailed description of the failure. This would mean that we have to go to lauch pad in order to look at the reason for failure.

 

I'm using the http://localhost:6405/biprws/raylight/v1/documents/12345/schedules/34343 to get the status for schedule Id 34343 and document Id 12345.

Is there any othere service that can give more information on failures?

 

Thanks,

Pavan

BOXI4.1 (14.1.1.1036) - Logon with /logon/adsso via Code

$
0
0

Hi all,

 

I just configured my test system for Active Directory authentication and it looks like everthing works perfect.

Group resolution works, login to CMC works and I even get a ticket if I open http://server:6405/biprws/logon/adsso in Internet Explorer.

 

But I have no idea what is necessary to get a logon token via (Java) code.

 

Is anybody able to provide sample code?

 

Thanks in advance.

 

Jan

SAP BO 4.1 Webi report sample with prompts to try Restful api


blank line instance for a Webi report scheduled through Restful api

$
0
0

SAP BusinessObjects BI Platform 4.1 Support Pack 1

Version: 14.1.1.1036

 

 

Using the RESTful api I scheduled a webi report sample "Track Data Changes":

 

here is the POST

http://hostname:6405/biprws/raylight/v1/documents/12248/schedules

with BODY

{"schedule":{"name":"Track Data Changes","parameters":{"parameter":{"@dpId":"DP1","technicalName":"Compare 2005 data with the following Year:","answer":{"values":{"value":"2004"}}}}}}

 

The result was successful:

here is the GET

http://hostname:6405/biprws/raylight/v1/documents/12248/schedules

RESULT

{"schedules":{"schedule":{"id":12317,"name":"Track Data Changes","format":{"@type":"webi"},"status":{"@id":"1","$":"Completed"}}}}

 

The problem is in the visualization on the CM Console:

- Clicking on the History of the report "Track Data Changes" under the All Folder repository I cannot see the new just created instance. The UI is strange: only a very long blank line is showed

 

- Instead clicking on the report "Track Data Changes" from Instance Manager app I was able to see my just created instance and i'm able to open it and see the generated report but right-clicking here on the report instance and selecting the History Status I see the following error:

while trying to invoke the method com.crystaldecisions.celib.properties.PropertyBag.getPropertyBag(java.lang.Object) of an object loaded from local variable 'prompt'

 

Of course all work well if the scheduled is performed manually from the CM Console instead of Restful api.

 

I also noted 3 strange report entries in the Object List folder automatically created when I scheduled the report from RESTFul:

12248_Track Data Changes_12315

12248_Track Data Changes_12316

12248_Track Data Changes_12322

 

Could someone explain me what is happening and what is did wrong?

 

Thank you very much

restful get scheduled report status and error message

$
0
0

Hi

 

I used the http://hostname:6405/biprws/infostore/7712/scheduleForms/now restful web service to schedule a report that will take some time to complete.

My question is what is the url to get the status (Running, Success, Failure) of this request?

In case of status "failure" what is the url to get the error message?

 

Thanks,

Riccardo

How to schedule Webi Documents with Prompts with RESTful Web Services

$
0
0

Hello,

 

I am trying to schedule Webi Documents with Prompts using RESTful Web Services with prompts. I am using Simple Rest Client app provided by Google Chrome. We have Business Objects SP6 Patch 1.

 

However the documentation for RESTful Web Services has only examples for the following

 

1. Schedule Documents without any Prompts to various destinations and recurrences.

2. Refresh Documents with Prompts.

 

Is there any example for scheduling documents with prompts? Please advise

 

Thanks in advance

Schedule Webi report using RESTful API

$
0
0

We are using BO 4.0 (SP2) and looking to schedule reports using our intranet application. I have searched for APIs avaialble and was able to find RESTful API for SP4 but not SP2.  How can we do it in BI 4.0, SP2?

 

Quick help will be really appreciated.

 

Thanks

Extract Hierarchies in BO 4.1 WEBI using Java Restful Webservice

$
0
0

Hi ,

 

We are using Bo4.1 SP3.

 

Whether can we extract hierarchies from web intelligence report?

Whether there is any URL to extract hierarchies?

 

 

Regards,
Kavitha S

Drilldown in WebI

$
0
0

I can retrieve a WebI report that is in drill mode, but how do I enable hyperlinks to perform the drill action?  I see a bunch of JSONDATA stuff that appears to be related to drilling, but there is no embedded code to actually perform the linking.

Create reports in RESTful webservice

$
0
0


Hi

 

 

I am using BO 4.1 SP2.

I know that report can be created using restful url.

Is there any url to connect the created report with a particular universe. help me in this

 

 

Regards,

Kavitha S


Pushing JSON from ICF Service to cross domain service URL

$
0
0

Hi Experts,

 

I have a scenario where i need to push JSON to cross domain service URL through Http response in SAP ICF service.

I am using interface-IF_HTTP_EXTENSION to push json to other service.

 

Regards,

Sid

How to consume Json Feed

$
0
0

Hi Team

 

How to consume Json Feed, using REST POST action through SAP ABAP.

RESTful schedule instance ID do not match with instance PID in CMC Instance details

$
0
0

SAP BO 4.1 sp1

 

I'm using the RESTful Web Service API to schedule a Webi report with the following API:
http://<server>:<port>/biprws/infostore/<documentId>/scheduleForms/now

In the response, I get the Location in order to retrieve the scheduled
resource's instance id (<instnceId>) and to use it to monitor the
resource's status, using the API:
http://<server>:<port>/biprws/raylight/v1/documents/<documentId>/schedules/<instanceId>


In the SAP Business Objects Central Management Console, I'm looking
for a
reference to this <instanceId>.
From the resource's history I found in the "View->Instance details"
section, a PID that doesn't correspond to the <instanceId> retrieved by
the API.

 

Why the 2 IDs don't match?

 

Thank you

Get image of element

$
0
0

Hi,

 

I'm working on SAP SDK development.

 

I succeeded to get list of documents, reports, elements... but I don't know how to get the src of the image of an element...

 

I think about "div bid[" ... but I don't know more.

 

Please, can you tell me which url I have to use to obtain the content where I can find the src of the image.

 

Best regards

 

Yannick

Supply dataset in dynamic way

$
0
0

Hi,

 

I would like to supply dataset in dynamic way.

 

I have a array (dataset_metadata) which contains metadata but I don't know how many metadata are in. I just know that the last metadata is the measure.

 

So can you help me to supply dataset in javascript?

 

For 3 metadata, the code is:

 

    var dataset = new sap.viz.ui5.data.FlattenedDataset({

        dimensions : [

            { axis : 1, name : dataset_metadata[0]["$"], value : "{" + dataset_metadata[0]["$"] + "}" },

            { axis : 2, name : dataset_metadata[1]["$"], value : "{" + dataset_metadata[1]["$"] + "}" }

        ],

        measures : [

            { name : dataset_metadata[2]["$"], value : '{' + dataset_metadata[2]["$"] + '}' }

        ],

        data : { path : "/data" }

    });

 

For x metadata, with a loop, the code is?

 

-----

 

Same question for the table:

 

var oTable = new sap.ui.table.Table({

columns : [ new sap.ui.table.Column({

  label : dataset_metadata[0]["$"],

  template : new sap.ui.commons.TextView({

  text : '{' + dataset_metadata[0]["$"] + '}'

  }),

  sortProperty : dataset_metadata[0]["$"],

  filterProperty : dataset_metadata[0]["$"],

  width : "100px"

}), new sap.ui.table.Column({

  label : dataset_metadata[1]["$"],

  template : new sap.ui.commons.TextView({

  text : '{' + dataset_metadata[1]["$"] + '}'

  }),

  sortProperty : dataset_metadata[1]["$"],

  filterProperty : dataset_metadata[1]["$"],

  width : "100px"

}), new sap.ui.table.Column({

  label : dataset_metadata[2]["$"],

  template : new sap.ui.commons.TextView({

  text : '{' + dataset_metadata[2]["$"] + '}'

  }),

  sortProperty : dataset_metadata[2]["$"],

  filterProperty : dataset_metadata[2]["$"],

  width : "100px"

}) ],

rows : "/data",

visibleRowCount : 12

});

 

How supply oTable with using a loop?

 

Best regards

 

Yannick

Viewing all 262 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>