Page History
This section covers the overall administrative report web services.
Basic Functions
Anchor | ||||
---|---|---|---|---|
|
Expand | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This function is used to test whether or not the report web services service is working.
Request ElementsThe following elements will be passed with this request:
Request ExampleThe following SOAP example shows the parameters that you can pass to this call:
Response ElementsThe response returned will contain these parameters:
Response ExampleThe service will return the below response, according to our SOAP example:
InstructionsSee below for step-by-step instructions on how to perform this call, using a Java example:
Complete ExampleBelow is a full example of this function. To use it for yourself, carry out the following the steps:
|
Anchor | ||||
---|---|---|---|---|
|
Expand | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This web services retrieves details of a specified report.
Request ElementsThe following elements will be passed with this request:
Request ExampleThe following SOAP example shows the parameters that you can pass to this call:
Response ElementsThe response returned will contain these parameters:
Response ExampleThe service will return the below response, according to our SOAP example:
InstructionsSee below for step-by-step instructions on how to perform this call, using a Java example:
Complete ExampleBelow is a full example of this function. To use it for yourself, carry out the following the steps:
|
Anchor | ||||
---|---|---|---|---|
|
Expand | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This web service retrieves the result data returns schematic information of a specified report, as well as the report's metadata. The report's result will be in a raw, preformatted format. This result will be stored in an array of ReportRow objects, which each such object representing a result row. Therefore, for each of the rows, an array of strings containing the data in each column of the result data will be present. Note: It is up to the web services client to convert this data from the string representation into the data type for each particular column. The data types for each column can be obtained with the SCHEMA function. For example, here is a Role Population report that contains two columns and specifies the number of users assigned to each user role:
This web service will return a ReportRow object for each of the user role, which every object containing two data strings: one containing the name of the role, and the other displaying its user population.
Request ElementsThe following elements will be passed with this request:
Request ExampleThe following SOAP example shows the parameters that you can pass to this call: which includes metadata for report columns and filters. A report needs to be specified by either providing its ID or by its web service name.
Request ElementsThe following elements will be passed with this request:
Request ExampleThe following SOAP example shows the parameters that you can pass to this call:
Response ElementsThe response returned will contain the following these main parameters: (For a more detailed list of response parameters, refer to the ReportServiceResponse object.)
Response ExampleThe service will return the below response, according to our SOAP example:
The ReportSchema object will return the following parameters containing information on the report column.
Response ExampleThe service will return the below response, according to our SOAP example:
InstructionsSee below for step-by-step instructions on how to perform this call, using a Java example: Expand | | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Code Block | ||
---|---|---|
| ||
ReportServiceRequest rsr = new ReportServiceRequest();
rsr.setLoginId("admin@yellowfin.com.au");
rsr.setPassword("test");
rsr.setOrgId(new Integer(1));
rsr.setReportRequest("RESULTSET"); |
Code Block | ||
---|---|---|
| ||
rsr.setReportId(60712); |
Code Block | ||
---|---|---|
| ||
rsr.setReportClientReferenceId("1"); |
Code Block | ||
---|---|---|
| ||
ReportServiceResponse rs=rsc.remoteReportCall(rsr); |
Initialize the Report web service. Click here to learn how to do this.
The response returned will contain the StatusCode and Results parameters, along with other report specific parameters. Refer to the Response Parameter table above for details.
Complete Example
Below is a full example of this function. To use it for yourself, carry out the following the steps:
- Copy the code and save it as ws_resultset.jsp.
- Put the file in the root folder, which is Yellowfin/appserver/webapps/ROOT.
- Adjust host, port, and admin user, and report details according to your environment.
- Run http://<host>:<port>/ws_resultset.jsp from your Internet browser.
Code Block | ||||
---|---|---|---|---|
| ||||
<% <columns> <allowPrompt>false</allowPrompt> <cachedValues>true</cachedValues> <columnName>Region</columnName> <dataType>TEXT</dataType> <displayName>Athlete Region</displayName> <filterDisplayType>DROPDOWN</filterDisplayType> <filterId>74908</filterId> <filterOmittable>true</filterOmittable> <filterType>INLIST</filterType> <filterTypeCode>FILTER</filterTypeCode> <filterUUID>d4ea61ab-247e-403a-b51b-8243aeea63db</filterUUID> <numberOfDecimals>0</numberOfDecimals> /* ws_resultset.jsp<prompt>true</prompt> *<sortOrder>0</ %>sortOrder> <%@ page language="java" contentType="text/html; charset=UTF-8" %> <%@ page import="com.hof.util.*, java.util.*, java.text.*" %> <%@ page import="com.hof.web.form.*" %> <%@ page import="com.hof.mi.web.service.*" %> <%@ page import="javax.xml.bind.JAXBContext" %> <%@ page import="javax.xml.bind.Marshaller" %> <%@ page import="java.io.StringWriter" %> <%@ page import="javax.xml.bind.JAXBElement" %> <%@ page import="javax.xml.namespace.QName" %> <% ReportService rsc = new ReportService(); //("localhost", 8080, "admin@yellowfin.com.au", "test", "/services/ReportService"); ReportServiceRequest rsr = new ReportServiceRequest(); rsr.setLoginId("admin@yellowfin.com.au"); rsr.setPassword("test"); rsr.setOrgId(new Integer(1)); rsr.setReportRequest("RESULTSET"); rsr.setReportId(60712); rsr.setReportClientReferenceId("1"); ReportServiceResponse rs=rsc.remoteReportCall(rsr); if ("SUCCESS".equals(rs.getStatusCode())) { JAXBContext context = JAXBContext.newInstance(ReportServiceResponse.class); </columns> <dashboardEnabled>true</dashboardEnabled> <dataOutput>COLUMN</dataOutput> <datasource>Ski Team !!!</datasource> <drillCode>DRILLDOWN</drillCode> <errorCode>0</errorCode> <formatCode>REPORTANDCHART</formatCode> <hitCount>3</hitCount> <lastModifiedDate>2018-06-07</lastModifiedDate> <lastRunDuration>0</lastRunDuration> <messages>Successfully Authenticated User: admin@yellowfin.com.au</messages> Marshaller <messages>Loaded mReport: = context.createMarshaller(); 74907 Successfully</messages> m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); // To format XML <messages>Collating Schema Information</messages> <messages>Web Service Request Complete</messages> JAXBElement<ReportServiceResponse> rootElement = new JAXBElement<ReportServiceResponse>(new QName("ReportServiceResponse"), ReportServiceResponse.class, rs); <preRunFilterString><![CDATA[<div class="rptFilterLogicText"> <span class="rptFilterLogicIdentifier">Athlete Region</span> In List <span class="rptFilterLogicIdentifier">[User Prompt]</span> </div>]]></preRunFilterString> m.marshal(rootElement,out); //out.write("Success"); } else { out.write("Failure"); out.write(" Code: " + rs.getErrorCode()); } %> |
title | FORMATTEDRESULTSET |
---|
<private>false</private>
<reportDescription>Ski Team, 8/6/2018 9:36 AM</reportDescription>
<reportId>74907</reportId>
<reportName>cached filters</reportName>
<reportTemplate>REPORTANDCHART</reportTemplate>
<reportUUID>982500e8-7b33-476b-be47-6a1aab611349</reportUUID>
<reportUsage>100</reportUsage>
<sessionId>7e9971ea99fff609387ac1c504abcc63</sessionId>
<statusCode>SUCCESS</statusCode>
<subCategory>Training</subCategory>
<tags>No tags</tags>
<viewName>Ski Team</viewName>
</return>
</ns2:remoteReportCallResponse>
</S:Body>
</S:Envelope> |
Instructions
See below for step-by-step instructions on how to perform this call, using a Java example:
Expand | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||
|
Complete Example
Below is a full example of this function. To use it for yourself, carry out the following the steps:
- Copy the code and save it as ws_reportschema.jsp.
- Put the file in the root folder, which is Yellowfin/appserver/webapps/ROOT.
- Adjust host, port, and admin user details according to your environment.
- Run http://<host>:<port>/ws_reportschema.jsp from your Internet browser.
Code Block | ||||
---|---|---|---|---|
| ||||
<%
/* ws_reportschema.jsp |
This web service is similar to the RESULTSET one, however it returns the raw result set using the formatters from the report.
Request Elements
The following elements will be passed with this request:
Request Element | Data Type | Description |
---|---|---|
LoginId | String | Yellowfin web services administrator user Id. This can be the user ID or the email address, depending on the Logon ID method. This Yellowfin account must have the “web services” role enabled, and must belong to the Default (i.e. Primary) Org. |
Password | String | Password of the above account. |
OrgId | Integer | Default (i.e. Primary) organization ID within Yellowfin. Always set this to 1. |
ReportRequest | String | Web services function. Set this to "FORMATTEDRESULTSET". |
OrgRef | String | Client Org internal reference ID (optional). |
ReportId | Integer | ID of the report whose result data is to be viewed. |
Request Example
The following SOAP example shows the parameters that you can pass to this call:
Code Block | ||
---|---|---|
| ||
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/"> <soapenv:Header/> <soapenv:Body> <web:remoteReportCall> <arg0> <loginId>admin@yellowfin.com.au</loginId> <password>test</password> <orgId>1</orgId> <reportRequest>FORMATTEDRESULTSET</reportRequest> <reportId>58511</reportId> </arg0> </web:remoteReportCall> </soapenv:Body> </soapenv:Envelope> |
Response Elements
The response will contain the following main parameters: (For a more detailed list of response parameters, refer to the ReportServiceResponse object.)
Response Element | Data Type | Description |
---|---|---|
StatusCode | String | Status of the web service call. Possible values include:
|
Results | ReportRow[] | An array of object containing the result of the report's data set. |
Response Example
The service will return the below response, according to our SOAP example:
Code Block | ||
---|---|---|
| ||
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:remoteReportCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/"> */ %> <%@ page language="java" contentType="text/html; charset=UTF-8" %> <%@ page import="com.hof.util.*, java.util.*, java.text.*" %> <%@ page import="com.hof.web.form.*" %> <%@ page import="com.hof.mi.web.service.*" %> <% ReportServiceResponse rs = null; ReportServiceRequest rsr = new ReportServiceRequest(); ReportServiceService ts = new ReportServiceServiceLocator("localhost", 8080, "/services/ReportService", false); ReportServiceSoapBindingStub rssbs = (ReportServiceSoapBindingStub) ts.getReportService(); rsr.setLoginId("admin@yellowfin.com.au"); rsr.setPassword("test"); rsr.setOrgId(1); rsr.setReportRequest("SCHEMA"); rsr.setReportId(70045); rs = rssbs.remoteReportCall(rsr); if ("SUCCESS".equals(rs.getStatusCode())) { out.write("Success </br>"); ReportSchema[] schema = rs.getColumns(); <return> for (ReportSchema <author>System Administrator</author>s: schema) <authoringMode>JAVA</authoringMode> <averageRunTime>0</averageRunTime> <canDrill>false</canDrill> <category>Audit Reports</category> //display filters: <dashboardEnabled>true</dashboardEnabled> <dataOutput>COLUMN</dataOutput> <datasource>Yellowfin Configuration Database</datasource> <errorCode>0</errorCode> if (s.getFilterType() != null && s.getFilterTypeCode().equals("FILTER")){ <formatCode>REPORTANDCHART</formatCode> <hitCount>5</hitCount> <lastModifiedDate>2016-04-13</lastModifiedDate> <lastRunDuration>0</lastRunDuration> <lastRunStatus>RUN_NOERROR</lastRunStatus> <messages>Successfully Authenticated User: admin@yellowfin.com.au</messages> out.write("<br>Display Name: " + s.getDisplayName()); <messages>Loaded Report: 58511 Successfully</messages> <messages>Returning RAW Resultset</messages> <messages>Request Contains No ReportFilter Records.</messages> <messages>Report Run Successfully</messages> out.write("<br>Filter UUID:" + s.getFilterUUID()); <messages>Web Service Request Complete</messages> <private>false</private> <reportDescription/> <reportId>58511</reportId> <reportName>Role Population</reportName> <reportTemplate>REPORTANDCHART</reportTemplate> out.write("<br>Filter Id:" <reportUUID>00c65743-15f8-4f93-ace1-e3d4d2b956eb</reportUUID>+ s.getFilterId()); <reportUsage>9</reportUsage> <results> <dataValue>System Administrator</dataValue> <dataValue>1</dataValue> </results> <results> <dataValue>Consumer & Collaborator</dataValue> <dataValue>5</dataValue> </results> <sessionId>1e4f0c8ee07d24a5500f952a459b1652</sessionId> <statusCode>SUCCESS</statusCode> <subCategory>User Access</subCategory> <tags>No tags</tags> <viewName>NEW VIEW</viewName> </return> </ns2:remoteReportCallResponse> </S:Body> </S:Envelope> |
Instructions
See below for step-by-step instructions on how to perform this call, using a Java example:
title | Step-by-step instructions |
---|
Code Block | ||
---|---|---|
| ||
ReportServiceRequest rsr = new ReportServiceRequest();
rsr.setLoginId("admin@yellowfin.com.au");
rsr.setPassword("test");
rsr.setOrgId(new Integer(1));
rsr.setReportRequest("FORMATTEDRESULTSET"); |
Code Block | ||
---|---|---|
| ||
rsr.setReportId(60712); |
Code Block | ||
---|---|---|
| ||
rsr.setReportClientReferenceId("1"); |
Code Block | ||
---|---|---|
| ||
ReportServiceResponse rs=rsc.remoteReportCall(rsr); |
Initialize the Report web service. Click here to learn how to do this.
The response returned will contain the StatusCode and Results parameters, along with other report specific parameters. Refer to the Response Parameter table above for details.
Complete Example
Below is a full example of this function. To use it for yourself, carry out the following the steps:
- Copy the code and save it as ws_resultset.jsp.
- Put the file in the root folder, which is Yellowfin/appserver/webapps/ROOT.
- Adjust host, port, and admin user, and report details according to your environment.
- Run http://<host>:<port>/ws_resultset.jsp from your Internet browser.
Code Block | ||||
---|---|---|---|---|
| ||||
<%
/* ws_resultset.jsp */
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="com.hof.util.*, java.util.*, java.text.*" %>
<%@ page import="com.hof.web.form.*" %>
<%@ page import="com.hof.mi.web.service.*" %>
<%@ page import="javax.xml.bind.JAXBContext" %>
<%@ page import="javax.xml.bind.Marshaller" %>
<%@ page import="java.io.StringWriter" %>
<%@ page import="javax.xml.bind.JAXBElement" %>
<%@ page import="javax.xml.namespace.QName" %>
<%
ReportService rsc = new ReportService(); //("localhost", 8080, "admin@yellowfin.com.au", "test", "/services/ReportService");
ReportServiceRequest rsr = new ReportServiceRequest();
rsr.setLoginId("admin@yellowfin.com.au");
rsr.setPassword("test");
rsr.setOrgId(new Integer(1));
rsr.setReportRequest("FORMATTEDRESULTSET");
rsr.setOrgRef("1");
rsr.setReportId(60712);
rsr.setReportClientReferenceId("1");
ReportServiceResponse rs=rsc.remoteReportCall(rsr);
if ("SUCCESS".equals(rs.getStatusCode())) {
JAXBContext context = JAXBContext.newInstance(ReportServiceResponse.class);
Marshaller m = context.createMarshaller();
m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); // To format XML
JAXBElement<ReportServiceResponse> rootElement = new JAXBElement<ReportServiceResponse>(new QName("ReportServiceResponse"), ReportServiceResponse.class, rs);
m.marshal(rootElement,out);
//out.write("Success");
} else {
out.write("Failure");
out.write(" Code: " + rs.getErrorCode());
}
%>
|
Report Comment Management
The web services in this section are related to user comments on Yellowfin reports.
|
Anchor | ||||
---|---|---|---|---|
|
Expand | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This web service returns the filter values for a specified report. Note: There is currently no way to pass user information into this request. So if a report has access filters assigned to it that restrict certain values, then only the filter values that the logged in user (that is the user calling this web service) has access to, will be returned.
Request ElementsThe following elements will be passed with this request:
Request ExampleThe following SOAP example shows the parameters that you can pass to this call:
Response ElementsThe response returned will contain these main parameters:
The ReportRow object will return the following parameter.
Response ExampleThe service will return the below response, according to our SOAP example:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Expand | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This function is used to set the status of a report comment. The status options include: OPEN, EDITED, RESOLVED and DELETED.
Request ElementsThe following elements will be passed with this request:
Anchor | | commentstatusrc | commentstatusrc |
ReportComment Element | Data Type | Description | Retrieval Code |
---|---|---|---|
CommentId | Integer | ID of comment |
|
StatusCode | String | Provide the new status. The status option include: OPEN, EDITED, RESOLVED and DELETED. |
|
Request Example
The following SOAP example shows the parameters that you can pass to this call:
Code Block | ||
---|---|---|
| ||
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/"> <soapenv:Header/> <soapenv:Body> <web:remoteReportCall> <arg0> <loginId>admin@yellowfin.com.au</loginId><canDrill>false</canDrill> <password>test</password><category>Tutorial</category> <orgId>1<<dashboardEnabled>true</orgId>dashboardEnabled> <reportRequest>COMMENTSTATUS<<dataOutput>COLUMN</reportRequest>dataOutput> <datasource>Ski Team</datasource> <reportId>60712</reportId> <errorCode>0</errorCode> <reportComment> <formatCode>REPORTANDCHART</formatCode> <commentId>12345<<hitCount>2</commentId>hitCount> <statusCode>OPEN</statusCode><lastModifiedDate>2018-06-18</lastModifiedDate> <<lastRunDuration>0</reportComment>lastRunDuration> </arg0> <messages>Successfully Authenticated User: admin@yellowfin.com.au</messages> <messages>Loaded Report: 70080 <Successfully</web:remoteReportCall>messages> </soapenv:Body> </soapenv:Envelope> |
Response Elements
The response will contain the following main parameter:
Response Element | Data Type | Description |
---|---|---|
StatusCode | String | Status of the web service call. Possible values include:
|
Response Example
The service will return the below response, according to our SOAP example:
Code Block | ||
---|---|---|
| ||
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <messages>Retrieving Options</messages> <ns2:remoteReportCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/"> <messages>Request Contains No ReportFilter Records.</messages> <return> <messages>Region (FilterId: 70082 ) Requires User <canDrill>false<Prompt</canDrill>messages> <messages>Ignoring Prompt Filter <dashboardEnabled>false</dashboardEnabled> <errorCode>0</errorCode>On Field: 70082</messages> <messages>DEMOGRAPHIC (FilterId: 70081 ) <messages>SuccessfullyRequires Authenticated User: admin@yellowfin.com.au<Prompt</messages> <messages>Web Service Request Complete</messages> <preRunFilterString><![CDATA[<div class="rptFilterLogicText"> <span <private>false</private> <sessionId>6dc344c3e5dee88864998f4acc17d676</sessionId> <statusCode>SUCCESS</statusCode> </return> </ns2:remoteReportCallResponse> </S:Body> </S:Envelope> |
Instructions
See below for step-by-step instructions on how to perform this call, using a Java example:
title | Step-by-step instructions |
---|
Code Block | ||
---|---|---|
| ||
ReportServiceRequest rsr = new ReportServiceRequest();
rsr.setLoginId("admin@yellowfin.com.au");
rsr.setPassword("test");
rsr.setOrgId(new Integer(1));
rsr.setReportRequest("COMMENTSTATUS"); |
If you need to specify the client org where the report exists, add this to your code:
Code Block | ||
---|---|---|
| ||
rsr.setOrgRef("org1"); // search for the report in this client org |
Code Block | ||
---|---|---|
| ||
ReportComment rc=new ReportComment(); |
Code Block | ||
---|---|---|
| ||
rc.setReportId(60712); |
Code Block | ||
---|---|---|
| ||
rc.setCommentId(12345);
rc.setStatusCode("OPEN"); |
Code Block | ||
---|---|---|
| ||
rsr.setReportComment(rc); |
Code Block | ||
---|---|---|
| ||
ReportServiceResponse rs=rsc.remoteReportCall(rsr); |
Initialize the Report web service. Click here to learn how to do this.
The response returned will contain the StatusCode parameter. Refer to the Response Parameter table above for details.
Complete Example
Below is a full example of this function. To use it for yourself, carry out the following the steps:
- Copy the code and save it as ws_commentstatus.jsp.
- Put the file in the root folder, which is Yellowfin/appserver/webapps/ROOT.
- Adjust host, port, and admin user to add details according to your environment.
- Run http://<host>:<port>/ws_commentstatus.jsp from your Internet browser.
Code Block | ||||
---|---|---|---|---|
| ||||
<%class="rptFilterLogicIdentifier">Athlete Region</span> In List <span class="rptFilterLogicIdentifier">[User Prompt]</span> </div> <div class="rptFilterLogicText"> AND <span class="rptFilterLogicIdentifier">Demographic</span> In List <span class="rptFilterLogicIdentifier">(Adventure, Relaxation, Family, Culture)</span> </div>]]></preRunFilterString> <private>false</private> <reportDescription>Ski Team, 18/6/2018 2:49 PM</reportDescription> <reportId>70066</reportId> <reportName>qwerty</reportName> <reportTemplate>REPORTANDCHART</reportTemplate> <reportUUID>c105ab26-9744-434d-9c8c-9fb9e48d80c0</reportUUID> <reportUsage>100</reportUsage> <results> <dataValue>Asia</dataValue> <dataValue>Asia</dataValue> </results> <sessionId>eb31d9392a25c8c40995237650837cd5</sessionId> /* <statusCode>SUCCESS</statusCode> ws_commentstatus.jsp <subCategory>Training</subCategory> * <tags>No tags</tags> %> <%@ page language="java" contentType="text/html; charset=UTF-8" %> <%@ page import="com <viewName>New View</viewName> </return> </ns2:remoteReportCallResponse> </S:Body> </S:Envelope> |
Instructions
See below for step-by-step instructions on how to perform this call, using a Java example:
Expand | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||
|
Complete Example
Below is a full example of this function. To use it for yourself, carry out the following the steps:
- Copy the code and save it as ws_filteroptions.jsp.
- Put the file in the root folder, which is Yellowfin/appserver/webapps/ROOT.
- Adjust host, port, and admin user details according to your environment.
- Run http://<host>:<port>/ws_filteroptions.jsp from your Internet browser.
Code Block | ||||
---|---|---|---|---|
| ||||
<% /*.hof.util.*, java.util.*, java.text.*" %> <%@ page import="com.hof.web.form.*" %> <%@ page import="com.hof.mi.web.service.*" %> <%@ page import="javax.xml.bind.JAXBContext" %> <%@ page import="javax.xml.bind.Marshaller" %> <%@ page import="java.io.StringWriter" %> <%@ page import="javax.xml.bind.JAXBElement" %> <%@ page import="javax.xml.namespace.QName" %> <% /* Create Group Using Java generated stubs rather that using the Yellowfin webservices API.. */ ReportService rsc = new ReportService(); //("localhost", 8080, "admin@yellowfin.com.au", "test", "/services/ReportService"); ReportServiceRequest rsr = new ReportServiceRequest(); rsr.setLoginId("admin@yellowfin.com.au"); rsr.setPassword("test"); rsr.setOrgId(new Integer(1)); rsr.setReportRequest("COMMENTSTATUS"); ReportComment rc=new ReportComment(); rc.setReportId(60712); rc.setCommentId(12345); rc.setStatusCode("OPEN"); rsr.setReportComment(rc); ReportServiceResponse rs=rsc.remoteReportCall(rsr); if ("SUCCESS".equals(rs.getStatusCode())) { JAXBContext context = JAXBContext.newInstance(ReportServiceResponse.class); Marshaller m = context.createMarshaller(); ws_filteroptions.jsp m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); // To format XML */ %> <% JAXBElement<ReportServiceResponse> rootElement ReportServiceResponse rs = null; ReportServiceRequest rsr = new JAXBElement<ReportServiceResponse>(ReportServiceRequest(); ReportServiceService ts = new QNameReportServiceServiceLocator("ReportServiceResponselocalhost"), 8080, ReportServiceResponse.class"/services/ReportService", rsfalse); ReportServiceSoapBindingStub rssbs = (ReportServiceSoapBindingStub) ts.getReportService(); mrsr.marshal(rootElement,outsetLoginId("admin@yellowfin.com.au"); //out.writersr.setPassword("Successtest"); } else { out.write("Failurersr.setOrgId(1); rsr.setReportRequest("FILTEROPTIONS"); outrsr.write(" Code: " + rs.getErrorCode()); } %> |
Dashboard Management
The web services in this section related to dashboard management.
Expand | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||
This function retrieves a specified dashboard tab's definition or metadata.
Request ElementsThe following elements will be passed with this request:
Request ExampleThe following SOAP example shows the parameters that you can pass to this call:
|
Report Result Set Functions
These web services are specific to the result generated by a report.
Anchor | ||||
---|---|---|---|---|
|
Expand | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This web service retrieves the result data of a specified report, as well as the report's metadata. The report's result will be in a raw, preformatted format. This result will be stored in an array of ReportRow objects, which each such object representing a result row. Therefore, for each of the rows, an array of strings containing the data in each column of the result data will be present. Note: It is up to the web services client to convert this data from the string representation into the data type for each particular column. The data types for each column can be obtained with the SCHEMA function. For example, here is a Role Population report that contains two columns and specifies the number of users assigned to each user role:
This web service will return a ReportRow object for each of the user role, which every object containing two data strings: one containing the name of the role, and the other displaying its user population.
Request ElementsThe following elements will be passed with this request:
Request ExampleThe following SOAP example shows the parameters that you can pass to this call:
Response ElementsThe response returned will contain these parameters:
Response ExampleThe service will return the below response, according to our SOAP example:
Response ElementsThe response will contain the following main parameters: (For a more detailed list of response parameters, refer to the ReportServiceResponse object.)
Response ExampleThe service will return the below response, according to our SOAP example:
InstructionsSee below for step-by-step instructions on how to perform this call, using a Java example:
Complete ExampleBelow is a full example of this function. To use it for yourself, carry out the following the steps:
|
Anchor | ||||
---|---|---|---|---|
|
Expand | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This web service is similar to the RESULTSET function call, however it returns the raw result set using the formatters from the report.
Request ElementsThe following elements will be passed with this request:
Request ExampleThe following SOAP example shows the parameters that you can pass to this call:
Response ElementsThe response will contain the following main parameters: (For a more detailed list of response parameters, refer to the ReportServiceResponse object.)
Response ExampleThe service will return the below response, according to our SOAP example:
InstructionsSee below for step-by-step instructions on how to perform this call, using a Java example:
Complete ExampleBelow is a full example of this function. To use it for yourself, carry out the following the steps:
|
Miscellaneous
Anchor | ||||
---|---|---|---|---|
|
Expand | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This function retrieves a specific dashboard's parent tab's definition or metadatasends a report to a recipient's email address.
Request ElementsThe following elements will be passed with this request:
| (Optional) A list of email addresses to send the report to. |
Code Block | ||
---|---|---|
| ||
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.web.mi.hof.com/"> <soapenv:Header/> <soapenv:Body> <web:remoteReportCall> <arg0> <loginId>admin@yellowfin.com.au</loginId> <password>test</password> <orgId>1</orgId> <reportRequest>LOADPARENTDASHBOARDTAB</reportRequest><reportRequest>SENDTOEMAIL</reportRequest> <reportId>70012</reportId> <alterationCommand>drill-down|70012</alterationCommand> <reportOptions> <dashboardTabId>61251</dashboardTabId> <string>binish.sheikh@yellowfin.com.au</string> </reportOptions> </arg0> </web:remoteReportCall> </soapenv:Body> </soapenv:Envelope> |
Response Elements
The response returned will contain these main parameters:
Response Element | Data Type | Description |
---|---|---|
StatusCode | String | Status of the web service call. Possible values include:
|
Dashboard | DashboardDefinition | Object containing metadata of the specified dashboard and its subtabs. |
Response Example
The service will return the below response, according to our SOAP example:
Code Block | ||
---|---|---|
| ||
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:remoteReportCallResponse xmlns:ns2="http://webservices.web.mi.hof.com/"> <return> <canDrill>false<<author>System Administrator</canDrill>author> <dashboard><authoringMode>JAVA</authoringMode> <accessCode>UNSECURE</accessCode><averageRunTime>0</averageRunTime> <categoryCode>TUTORIAL</categoryCode><canDrill>false</canDrill> <elements><category>Tutorial</category> <columnNumber>1</columnNumber><dashboardEnabled>true</dashboardEnabled> <entityId>60947</entityId><dataOutput>COLUMN</dataOutput> <entityTypeCode>REPORT</entityTypeCode><datasource>Ski Team</datasource> <portletHeight>448</portletHeight><errorCode>0</errorCode> <portletStatus>RESTORED</portletStatus><formatCode>CHART</formatCode> <rowNumber>3</rowNumber><hitCount>3</hitCount> <sequenceNumber>1</sequenceNumber><lastModifiedDate>2018-03-07</lastModifiedDate> <startDate>2017-06-26T00:00:00+10:00</startDate><lastRunDuration>0</lastRunDuration> <messages>Successfully Authenticated <tabId>61251</tabId>User: admin@yellowfin.com.au</messages> <messages>Loaded Report: 70012 <Successfully</elements>messages> <messages>Web Service Request <elements>Complete</messages> <preRunFilterString><![CDATA[<div class="rptFilterLogicText"> <span class="rptFilterLogicIdentifier">Invoiced Date</span> Between <span class="rptFilterLogicIdentifier">Current Date <columnNumber>1</columnNumber> - 6 Years And Current Date</span> </div> . . . ]]></preRunFilterString> <entityId>61001<<private>false</entityId>private> <reportDescription>This report provides a high level summary of <entityTypeCode>REPORT<campaigns</entityTypeCode>reportDescription> <reportId>70012</reportId> <portletHeight>363</portletHeight> <reportName>Campaign Summary</reportName> <portletStatus>RESTORED<<reportTemplate>CHART</portletStatus>reportTemplate> <reportUUID>3e842fae-02f7-4ad3-a632-ca267e0078da</reportUUID> <rowNumber>1</rowNumber> <reportUsage>100</reportUsage> <sequenceNumber>1<<sessionId>fa0cc79a9ea229bd5df85b4a7f50c878</sequenceNumber>sessionId> <startDate>2017-06-26T00:00:00+10:00</startDate><statusCode>SUCCESS</statusCode> <subCategory>Marketing <tabId>61251</tabId>& Booking</subCategory> <tags>No <tags</elements>tags> <elements> <columnNumber>1</columnNumber><viewName>New View</viewName> <entityId>61097</entityId></return> <entityTypeCode>REPORT</entityTypeCode></ns2:remoteReportCallResponse> <portletHeight>374</portletHeight> <portletStatus>RESTORED</portletStatus> <rowNumber>2</rowNumber> <sequenceNumber>1</sequenceNumber> <startDate>2017-06-26T00:00:00+10:00</startDate> <tabId>61251</tabId> </elements> <elements> <columnNumber>1</columnNumber> <entityId>61046</entityId> <entityTypeCode>REPORT</entityTypeCode> <portletHeight>331</portletHeight> <portletStatus>RESTORED</portletStatus> <rowNumber>3</rowNumber> <sequenceNumber>2</sequenceNumber> <startDate>2017-06-26T00:00:00+10:00</startDate> <tabId>61251</tabId> </elements> <elements> <columnNumber>1</columnNumber> <entityId>61067</entityId> <entityTypeCode>REPORT</entityTypeCode> <portletHeight>225</portletHeight> <portletStatus>RESTORED</portletStatus> </S:Body> </S:Envelope> |
Instructions
See below for step-by-step instructions on how to perform this call, using a Java example:
Expand | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||
|
Complete Example
Below is a full example of this function. To use it for yourself, carry out the following the steps:
- Copy the code and save it as ws_sendtoemail.jsp.
- Put the file in the root folder, which is Yellowfin/appserver/webapps/ROOT.
- Adjust host, port, and admin user details according to your environment.
- Run http://<host>:<port>/ws_sendtoemail.jsp from your Internet browser.
Code Block | ||||
---|---|---|---|---|
| ||||
/* ws_sendtoemail.jsp */ <%@ page language="java" contentType="text/html; charset=UTF-8" %> <%@ page import="com.hof.util.*, java.util.*, java.text.*" %> <%@ page import="com.hof.web.form.*" %> <%@ page import="com.hof.mi.web.service.*" %> <%@ page import="javax.xml.bind.JAXBContext" %> <%@ page import="javax.xml.bind.Marshaller" %> <%@ page import="java.io.StringWriter" %> <%@ page import="javax.xml.bind.JAXBElement" %> <%@ page import="javax.xml.namespace.QName" %> <% ReportService rsc = new ReportService(); //("localhost", 8080, "admin@yellowfin.com.au", "test", "/services/ReportService"); ReportServiceRequest rsr = new ReportServiceRequest(); rsr.setLoginId("admin@yellowfin.com.au"); rsr.setPassword("test"); rsr.setOrgId(new Integer(1)); rsr.setReportRequest("SENDTOEMAIL"); rsr.setOrgRef("1"); rsr.setReportId(60712); rsr.setAlterationCommand("drill-down|60712"); rsr.setReportOptions(new String[]{ "dummy@dummy.com"}); rsr.setReportClientReferenceId("1"); rsr.setDashboardTabId(70080); ReportServiceResponse rs=rsc.remoteReportCall(rsr); if ("SUCCESS".equals(rs.getStatusCode())) { JAXBContext context = JAXBContext.newInstance(ReportServiceResponse.class); Marshaller m = context.createMarshaller(); <rowNumber>3</rowNumber> <sequenceNumber>3</sequenceNumber> m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); // To format XML JAXBElement<ReportServiceResponse> rootElement = new JAXBElement<ReportServiceResponse>(new QName("ReportServiceResponse"), <startDate>2017-06-26T00:00:00+10:00</startDate> ReportServiceResponse.class, rs); m.marshal(rootElement,out); <tabId>61251</tabId> </elements> <elements> <columnNumber>2</columnNumber> <entityId>61035</entityId> <entityTypeCode>REPORT</entityTypeCode> <portletHeight>373</portletHeight> <portletStatus>RESTORED</portletStatus> <rowNumber>2</rowNumber> <sequenceNumber>1</sequenceNumber> <startDate>2017-06-26T00:00:00+10:00</startDate> <tabId>61251</tabId> </elements> <endDate>9999-12-31T00:00:00+11:00</endDate> <filters> <componentId>0</componentId> <componentTypeCode>REPORT</componentTypeCode> <entityId>0</entityId> <entityTypeCode>REPORTGROUP</entityTypeCode> <formatKey>DEFAULTDISPLAY</formatKey> <formatValue>SUMMARYCHART</formatValue> <groupId>61250</groupId> </filters> <filters> <componentId>0</componentId> <componentTypeCode>REPORT</componentTypeCode> <entityId>0</entityId> <entityTypeCode>REPORTGROUP</entityTypeCode> <formatKey>DEFAULTDISPLAY</formatKey> <formatValue>SUMMARYCHART</formatValue> <groupId>61250</groupId> </filters> <filters> <componentId>0</componentId> <componentTypeCode>REPORT</componentTypeCode> <entityId>0</entityId> <entityTypeCode>REPORTGROUP</entityTypeCode> <formatKey>DEFAULTDISPLAY</formatKey> <formatValue>SUMMARYCHART</formatValue> <groupId>61250</groupId> </filters> <filters> <componentId>61035</componentId> <componentTypeCode>REPORT</componentTypeCode> <entityId>0</entityId> <entityTypeCode>REPORTGROUP</entityTypeCode> <formatKey>DEFAULTDISPLAY</formatKey> <formatValue>CHART</formatValue> <groupId>61250</groupId> </filters> <filters> <componentId>61067</componentId> <componentTypeCode>REPORT</componentTypeCode> <entityId>0</entityId> <entityTypeCode>REPORTGROUP</entityTypeCode> <formatKey>DEFAULTDISPLAY</formatKey> <formatValue>SUMMARYCHART</formatValue> <groupId>61250</groupId> </filters> <filters> <componentId>61097</componentId> <componentTypeCode>REPORT</componentTypeCode> <entityId>0</entityId> <entityTypeCode>REPORTGROUP</entityTypeCode> <formatKey>DEFAULTDISPLAY</formatKey> <formatValue>REPORT</formatValue> <groupId>61250</groupId> </filters> <filters> <componentId>0</componentId> <entityId>61250</entityId> <entityTypeCode>REPORTGROUP</entityTypeCode> <formatKey>HELPON</formatKey> <formatValue>true</formatValue> <groupId>61250</groupId> </filters> <filters> <componentId>0</componentId> <entityId>61250</entityId> <entityTypeCode>REPORTGROUP</entityTypeCode> <formatKey>SUBTABS</formatKey> <formatValue>OFF</formatValue> <groupId>61250</groupId> </filters> <filters> <componentId>0</componentId> <entityId>61250</entityId> <entityTypeCode>REPORTGROUP</entityTypeCode> <formatKey>UNITSELECTION</formatKey> <formatValue>OFF</formatValue> <groupId>61250</groupId> </filters> <groupTypeCode>ANALYTIC</groupTypeCode> <languageCode>EN</languageCode> <longDescription/> <owner>1</owner> <ownerTypeCode>ORGANISATION</ownerTypeCode> <parentGroupId>0</parentGroupId> <shortDescription>Sales Performance</shortDescription> <startDate>2017-06-26T00:00:00+10:00</startDate> <statusCode>OPEN</statusCode> <subCategoryCode>ATHLETES</subCategoryCode> <subtabs> <elements> <columnNumber>1</columnNumber> <entityId>60947</entityId> <entityTypeCode>REPORT</entityTypeCode> <portletHeight>448</portletHeight> <portletStatus>RESTORED</portletStatus> <rowNumber>3</rowNumber> <sequenceNumber>1</sequenceNumber> <startDate>2017-06-26T00:00:00+10:00</startDate> <tabId>61251</tabId> </elements> <elements> <columnNumber>1</columnNumber> <entityId>61001</entityId> <entityTypeCode>REPORT</entityTypeCode> <portletHeight>363</portletHeight> <portletStatus>RESTORED</portletStatus> <rowNumber>1</rowNumber> <sequenceNumber>1</sequenceNumber> <startDate>2017-06-26T00:00:00+10:00</startDate> <tabId>61251</tabId> </elements> <elements> <columnNumber>1</columnNumber> <entityId>61097</entityId> <entityTypeCode>REPORT</entityTypeCode> <portletHeight>374</portletHeight> <portletStatus>RESTORED</portletStatus> <rowNumber>2</rowNumber> <sequenceNumber>1</sequenceNumber> <startDate>2017-06-26T00:00:00+10:00</startDate> <tabId>61251</tabId> </elements> <elements> <columnNumber>1</columnNumber> <entityId>61046</entityId> <entityTypeCode>REPORT</entityTypeCode> <portletHeight>331</portletHeight> <portletStatus>RESTORED</portletStatus> <rowNumber>3</rowNumber> <sequenceNumber>2</sequenceNumber> <startDate>2017-06-26T00:00:00+10:00</startDate> <tabId>61251</tabId> </elements> <elements> <columnNumber>1</columnNumber> <entityId>61067</entityId> <entityTypeCode>REPORT</entityTypeCode> <portletHeight>225</portletHeight> <portletStatus>RESTORED</portletStatus> <rowNumber>3</rowNumber> <sequenceNumber>3</sequenceNumber> <startDate>2017-06-26T00:00:00+10:00</startDate> <tabId>61251</tabId> </elements> <elements> <columnNumber>2</columnNumber> <entityId>61035</entityId> <entityTypeCode>REPORT</entityTypeCode> <portletHeight>373</portletHeight> <portletStatus>RESTORED</portletStatus> <rowNumber>2</rowNumber> <sequenceNumber>1</sequenceNumber> <startDate>2017-06-26T00:00:00+10:00</startDate> <tabId>61251</tabId> </elements> <endDate>9999-12-31T00:00:00+11:00</endDate> <filters> <componentId>0</componentId> <componentTypeCode>REPORT</componentTypeCode> <entityId>0</entityId> <entityTypeCode>REPORTGROUP</entityTypeCode> <formatKey>DEFAULTDISPLAY</formatKey> <formatValue>SUMMARYCHART</formatValue> <groupId>61250</groupId> </filters> <filters> <componentId>0</componentId> <componentTypeCode>REPORT</componentTypeCode> <entityId>0</entityId> <entityTypeCode>REPORTGROUP</entityTypeCode> <formatKey>DEFAULTDISPLAY</formatKey> <formatValue>SUMMARYCHART</formatValue> <groupId>61250</groupId> </filters> <filters> <componentId>0</componentId> <componentTypeCode>REPORT</componentTypeCode> <entityId>0</entityId> <entityTypeCode>REPORTGROUP</entityTypeCode> <formatKey>DEFAULTDISPLAY</formatKey> <formatValue>SUMMARYCHART</formatValue> <groupId>61250</groupId> </filters> <filters> <componentId>61035</componentId> <componentTypeCode>REPORT</componentTypeCode> <entityId>0</entityId> <entityTypeCode>REPORTGROUP</entityTypeCode> <formatKey>DEFAULTDISPLAY</formatKey> <formatValue>CHART</formatValue> <groupId>61250</groupId> </filters> <filters> <componentId>61067</componentId> <componentTypeCode>REPORT</componentTypeCode> <entityId>0</entityId> <entityTypeCode>REPORTGROUP</entityTypeCode> <formatKey>DEFAULTDISPLAY</formatKey> <formatValue>SUMMARYCHART</formatValue> <groupId>61250</groupId> </filters> <filters> <componentId>61097</componentId> <componentTypeCode>REPORT</componentTypeCode> <entityId>0</entityId> <entityTypeCode>REPORTGROUP</entityTypeCode> <formatKey>DEFAULTDISPLAY</formatKey> <formatValue>REPORT</formatValue> <groupId>61250</groupId> </filters> <filters> <componentId>0</componentId> <entityId>61250</entityId> <entityTypeCode>REPORTGROUP</entityTypeCode> <formatKey>HELPON</formatKey> <formatValue>true</formatValue> <groupId>61250</groupId> </filters> <filters> <componentId>0</componentId> <entityId>61250</entityId> <entityTypeCode>REPORTGROUP</entityTypeCode> <formatKey>SUBTABS</formatKey> <formatValue>OFF</formatValue> <groupId>61250</groupId> </filters> <filters> <componentId>0</componentId> <entityId>61250</entityId> <entityTypeCode>REPORTGROUP</entityTypeCode> <formatKey>UNITSELECTION</formatKey> <formatValue>OFF</formatValue> <groupId>61250</groupId> </filters> <groupTypeCode>SUBTAB</groupTypeCode> <languageCode>EN</languageCode> <owner>0</owner> <parentGroupId>0</parentGroupId> <shortDescription>New Tab</shortDescription> <startDate>2017-06-26T00:00:00+10:00</startDate> <statusCode>OPEN</statusCode> <styleCode>TWO</styleCode> <tabId>61251</tabId> </subtabs> <tabId>61250</tabId> </dashboard> <dashboardEnabled>false</dashboardEnabled> <errorCode>0</errorCode> <messages>Successfully Authenticated User: admin@yellowfin.com.au</messages> <messages>Attempting to Load Dashboard Tab: 61251</messages> <messages>Web Service Request Complete</messages> <private>false</private> <sessionId>af433c1d0f0cffa9d3a7e1ef8c72abf6</sessionId> <statusCode>SUCCESS</statusCode> </return> </ns2:remoteReportCallResponse> </S:Body> </S:Envelope> //out.write("Success"); } else { out.write("Failure"); out.write(" Code: " + rs.getErrorCode()); } %> |
Anchor | ||||
---|---|---|---|---|
|
Expand | |||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||
Processes an interaction from a report a web service report. This function is used to interact with a report, such as by changing a report page, performing drill-through, drill-down, drill-anywhere, or changing the series selection. The AlterationCommand parameter is a text-code that is embedded in a report that can be passed back to the web service to alter the report. Request ElementsThe following elements will be passed with this request:
Response ElementsThe response returned will contain these parameters:
InstructionsSee below for step-by-step instructions on how to perform this call, using a Java example:
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Complete ExampleBelow is a full example of this function. To use it for yourself, carry out the following the steps:
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|