Skip to Content
0
Feb 14, 2022 at 09:10 AM

Get Parameter Values via RESTful webservice

124 Views Last edit Feb 14, 2022 at 03:29 PM 6 rev

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/10fd721c67cb4f90aaa33cb45d133add.html?q=ParametersGET /documents/ /parameters/ ?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/45f8ceb66e041014910aba7db0e91070.html 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>

image.png

Attachments

image.png (123.7 kB)