on 2019 May 02 1:46 PM
Hi All,
I'm calling
GET http://server:port/biprws/raylight/v1/documents/docID/parameters
to retrieve the parameters in JSON format.
I've noticed that the array answer.info.lov.values.value always has a maximum of 50 values. I've tested this by adding entries to the source table in the database. Can anyone tell be how this is configured? I presume there's an option to do this somewhere.
Thank you,
Malcolm
Request clarification before answering.
Also, I'm using JSON, but I got
JAXBException occurred : cvc-complex-type.2.4.a: Invalid content was found starting with element 'intervalId'. One of '{sort, search, path}' is expected.
when I tried this:
{
"parameters": {
"parameter": {
"id": "2",
"answer": {
"info": {
"lov": {
"query": {
"intervalSize": "-1",
"refresh": "true"
}
}
}
}
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks very much Ayman! Do you know if there's any way to configure this in the report definition, rather than calling the rest service?
Malcolm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
here an Exmaple: (to get the whole list of values for "SKUNumber")
method: PUT
http://<server>:<port>/biprws/raylight/v1/documents/<DOCID>/parameters
body:
<parameters>
<parameter optional="false" type="prompt" dpId="DP0" primary="true">
<id>1</id>
<technicalName>SKUNumber</technicalName>
<name>SKUNumber</name>
<answer constrained="false" type="Numeric">
<info cardinality="Single">
<lov hierarchical="false" refreshable="true">
<query intervalId="0" intervalSize="-1" refresh="true">
<sort order="Descending"/>
</query>
</lov>
</info>
</answer>
</parameter>
</parameters>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
this by design (every interval has only 50 values)
see:
Intervals: The element block that describes values as intervals when the number of values is too large. The first interval is returned by default. The default number of values in an interval is 50.
Values of a context parameter can have a description.
<intervals>
<interval id="integer">
<value id="integer" description="string" final="Boolean">-------------------------
to change the Interval Size
see:
https://help.sap.com/viewer/58f583a7643e48cf944cf554eb961f5b/4.2/en-US/6e86cfe466a345b7ad904c9cda6e7...
Answer Request Body Schemas
Request Body Schemas (XML)
(PUT .../parameters)
.....
Query
intervalSize integer|-1|Unlimited|Server
Specifies the number of values in the interval to return. If not specified, 50 is used. Possible values are:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 10 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.