cancel
Showing results for 
Search instead for 
Did you mean: 

Get Parameter Values via RESTful webservice

creativewarlock
Explorer
0 Kudos

Hi,

I would like to know if there's a way to get the list of parameter values via the RESTful webservice on a Crystal Reports 2016 server.

I tried the following GET request:

GET /documents/<docID>/parameters?lovInfo=true/false

However, the server responds with (when using Accept = "application/json")

{ "error_code": "RWS 00005", "message": "Not Found (RWS 00005)"}

What am I missing? Is there something I have to define or specify in the report via the "SAP Crystal Reports for Enterprise"?

Also, according to this documentation page: https://help.sap.com/viewer/0ef63ba725cd41a8ab4a69c226ec6b07/4.2.7/en-US/10fd721c67cb4f90aaa33cb45d1... /documents/<documentID>/parameters/<parameterID>?formattedValues=<formattedValues>

When I use 0 as parameterId and true for formattedValues I also receive an RWS 00005 error.
Any help is highly appreciated.

Kind regards,
Marcel

---

EDIT: I've added a view on my report with a parameter TYPE. I have defined a list of values PACKAGE_CENTER and CUSTOMER. On a HTTP request to the RESTful webserver I would like to then receive a list of details about that parameter TYPE.

According to this documentation https://help.sap.com/viewer/5431204882b44fc98d56bd752e69f132/4.2.4/en-US/45f8ceb66e041014910aba7db0e... I should expect to get something like (but as said above, I receive an RWS 00005 error):

<parameter optional="false" type="context" dpId="DP1"> 
    <id>0</id>  
    <technicalName>3</technicalName>  
    <name>Enter TYPE:</name>  
    <answer constrained="true" type="Text"> 
        <info cardinality="Multiple" keepLastValues="true"> 
            <lov partial="false" searchable="true" mandatorySearch="false"> 
                <values> 
                    <value id="2">PACKAGE_CENTER</value>  
                    <value id="1">CUSTOMER</value> 
                </values> 
            </lov>  
            ...
        </info>  
        ...
    </answer> 
</parameter>

DellSC
Active Contributor

I tweaked your tags a bit to get the question to people who know how to answer it. The "SAP Crystal Reports" SDK is for questions about report design. Since Crystal Reports Server (CRS) is a limited version of the BusinessObjects BI Platform, any questions about system administration, scheduling, security, or the SDKs that interact with CRS need to have the appropriate SAP BusinessObjects BI Platform tag in order to the people who are familiar with the system.

Also, it looks like you're using Crystal for Enterprise, which is good because the Crystal RESTful SDK will only work with that version of Crystal - it won't work with "classic" Crystal reports.

-Dell

creativewarlock
Explorer
0 Kudos

Thanks for tweaking the tags. I'm seriously wondering why the REST endpoint to get parameter values doesn't work. In fact, this is an important features to us, especially since we're displaying these values in a Java client in a choice box where the user should be able to simply select from.

Accepted Solutions (0)

Answers (1)

Answers (1)

creativewarlock
Explorer
0 Kudos

Looks like getting parameters is not a common thing to do... 🙂