Hello everybody
I'm using the NPrinting API from a mashup page to generate an NPrinting report on-demand.
This works correctly, however the current selections are not applied.
I noticed that the API call accepts two parameters regarding selections, from the API documentation:
selections
array[FieldSelection] The Sense selections (filters) to apply on reports with a Sense connection.
connectionId
String The ID of the Sense connection associated with the request. Needed only for selections.
|
However, I don't understand exactly if these have to be used together and how. My questions are:
- Does the "connectionID" refer to the id of the NPrinting connection that is tied to the report? Or is it something else?
- Can I somehow apply the CURRENT selections (I'm in a mashup page and I know the current app) in a simple manner, or do I have to use the "selections" field and manually re-create and provide the full selections specifications to the API?
- More in general, what is the best approach to apply the current selections to the report?