Note: Add the following to etc/application.conf of the Ambience/Repertoire server instances to allow receiving and processing the Repertoire Client API call:
#Allow connections from the Repertoire Designer
elixir.sso.server.resource-owner-password-enabled = true
Add the following to etc/application.conf of the Ambience/Repertoire server instances if migrating from older versions, e.g. Ambience 4, Repertoire 8 and below (more info here):
#Allow direct parameter key lookup
elixir.rml.direct-parameters = true
Overview:
There is a demo-cli.sh included with the Repertoire Client 202x packages available for download here.
The contents of the shell script show how a report rendering request can be sent to the Ambience/Repertoire 202x instances via a Java command line:
1. Linux syntax:
java -cp "lib/*:demolib/*:etc" com.elixirtech.ers2.client.ERSClientCommand --host localhost --port 1730 \
--report "/ElixirSamples/Report/RML/Master-Detail Report.rml" --mimetype application/pdf --output "MDOut.pdf" \
--user admin --password sa
2. Windows syntax:
java -cp "lib/*;demolib/*;etc" com.elixirtech.ers2.client.ERSClientCommand --host localhost --port 1730 ^
--report "/ElixirSamples/Report/RML/Master-Detail Report.rml" --mimetype application/pdf --output "MDOut.pdf" ^
--user admin --password sa
3. Parsing required parameters:
java -cp "lib/*;demolib/*;etc" com.elixirtech.ers2.client.ERSClientCommand --host localhost --port 1730 ^
More? --report "/ElixirSamples/Report/RML/PivotTable.rml" --param "Name=Jasmine Chen" --mimetype application/pdf --output "PTOut.pdf" ^
More? --user admin --password sa
4. To list out mandatory and available arguments:
java -cp "lib/*;demolib/*;etc" com.elixirtech.ers2.client.ERSClientCommand --help
The working sample requires files and libraries from the lib/, demolib/ and etc/ directories of the Repertoire Client package in order to execute. Set the root level of logging to ‘debug’ in etc/logback.xml if troubleshooting is required.
<root level="debug">
<appender-ref ref="STDOUT" />
</root>