How can I prevent the user from add/modify/remove DataSource/DataSets in the Report Explorer
By : ankita nagar
Date : March 29 2020, 07:55 AM
hop of those help? I think writing your own ReportExplorer is your best option in the long run as you'll have the most control over things. Handling drag & drop used to be possible in a much older version of AR. See this article for the details in how it used to work. You might try that approach with this version (i.e. handling DragOver event yourself). If those events aren't working and Drag & Drop is really important, contact ComponentOne support and see if they will give you the information about exactly what drag & drop data you need to put in the drag event to get the design surface to respond. And/or ask them if they will reinstate the behavior in the article above.
|
How to interact with REST end points that don't return a logical model or collection in a Backbone app
By : Tony
Date : March 29 2020, 07:55 AM
Hope this helps Going to go ahead and answer my own question here. "mu is too short" got me on the right track in the comments above. Since Backbone uses $.ajax to handle all its HTTP requests by default you can leverage $.ajaxSetup() and $(document).ajaxError() etc. to handle any app-wide AJAX setup and error responses. Then you're free to write your HTTP service classes using $.ajax too and leverage the same setup for both layers of server communication.
|
Google Fit REST API "Unable to fetch DataSource for Dataset: xyz"
By : user3686846
Date : March 29 2020, 07:55 AM
With these it helps OK I was stupid and didn't set up my own credentials in the OAuth settings in top right of the dashboard as it said to here. I forgot that bit -_- now I can access my own stream again and it shows my integer project id in the stream id not the hex one https://developers.google.com/fit/rest/v1/get-started
|
How to use multiple xpath datasets on XML datasource using PHP Jasper?
By : user3082623
Date : December 27 2020, 03:09 PM
Hope that helps Currently in your jrxml you are expecting two datasources (1 for main, 1 for table), in fact this report will work for example in JasperSoft Studio defining a correct data adapter. However lets find a solution using only 1 datasource as defined in your php code. code :
<queryString language="XPath">
<![CDATA[/data]]>
</queryString>
<field name="Seller_Name" class="java.lang.String">
<property name="net.sf.jasperreports.xpath.field.expression" value="Seller_Name"/>
<fieldDescription><![CDATA[invoice/Seller_Name]]></fieldDescription>
</field>
<datasetRun subDataset="Factura_pozitii" uuid="8a5ec067-61b0-4580-8aee-4fe353996db3">
.. params ..
<dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("/data/invoice_items/row")]]></dataSourceExpression>
</datasetRun>
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Factura" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="153c2ff6-b65d-49fa-80de-5c1a093eafcc">
<style name="Table_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
<topPen lineWidth="0.5" lineColor="#000000"/>
<leftPen lineWidth="0.5" lineColor="#000000"/>
<bottomPen lineWidth="0.5" lineColor="#000000"/>
<rightPen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="Table_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
<topPen lineWidth="0.5" lineColor="#000000"/>
<leftPen lineWidth="0.5" lineColor="#000000"/>
<bottomPen lineWidth="0.5" lineColor="#000000"/>
<rightPen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="Table_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
<topPen lineWidth="0.5" lineColor="#000000"/>
<leftPen lineWidth="0.5" lineColor="#000000"/>
<bottomPen lineWidth="0.5" lineColor="#000000"/>
<rightPen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<subDataset name="Factura_pozitii" uuid="1ee50e5a-b071-4886-8407-2ac843fb9ad1">
<queryString language="XPath">
<![CDATA[/data/invoice_items/row]]>
</queryString>
<field name="ID_Invoice_Row" class="java.lang.Integer">
<property name="net.sf.jasperreports.xpath.field.expression" value="ID_Invoice_Row"/>
<fieldDescription><![CDATA[ID_Invoice_Row]]></fieldDescription>
</field>
<field name="Denumire" class="java.lang.String">
<property name="net.sf.jasperreports.xpath.field.expression" value="Denumire"/>
<fieldDescription><![CDATA[Denumire]]></fieldDescription>
</field>
<field name="Valoare" class="java.lang.Float">
<property name="net.sf.jasperreports.xpath.field.expression" value="Valoare"/>
<fieldDescription><![CDATA[Valoare]]></fieldDescription>
</field>
<field name="VAT" class="java.lang.Float">
<property name="net.sf.jasperreports.xpath.field.expression" value="VAT"/>
<fieldDescription><![CDATA[VAT]]></fieldDescription>
</field>
<field name="TOTAL" class="java.lang.Float">
<property name="net.sf.jasperreports.xpath.field.expression" value="TOTAL"/>
<fieldDescription><![CDATA[TOTAL]]></fieldDescription>
</field>
</subDataset>
<queryString language="XPath">
<![CDATA[/data]]>
</queryString>
<field name="Seller_Name" class="java.lang.String">
<property name="net.sf.jasperreports.xpath.field.expression" value="Seller_Name"/>
<fieldDescription><![CDATA[invoice/Seller_Name]]></fieldDescription>
</field>
<columnHeader>
<band height="34" splitType="Stretch">
<textField>
<reportElement x="90" y="0" width="175" height="15" uuid="e9843cbc-f80d-4d43-ba3e-12abb7c1ed11"/>
<textFieldExpression><![CDATA[$F{Seller_Name}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="0" width="80" height="15" uuid="449ed594-81b1-420c-b361-55709bd951c7"/>
<text><![CDATA[Seller name:]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="92" splitType="Stretch">
<componentElement>
<reportElement x="0" y="0" width="555" height="60" uuid="93a83571-11ee-4173-9726-846f15cbdfec"/>
<jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" whenNoDataType="Blank">
<datasetRun subDataset="Factura_pozitii" uuid="8a5ec067-61b0-4580-8aee-4fe353996db3">
<datasetParameter name="XML_DATE_PATTERN">
<datasetParameterExpression><![CDATA[$P{XML_DATE_PATTERN}]]></datasetParameterExpression>
</datasetParameter>
<datasetParameter name="XML_NUMBER_PATTERN">
<datasetParameterExpression><![CDATA[$P{XML_NUMBER_PATTERN}]]></datasetParameterExpression>
</datasetParameter>
<datasetParameter name="XML_LOCALE">
<datasetParameterExpression><![CDATA[$P{XML_LOCALE}]]></datasetParameterExpression>
</datasetParameter>
<datasetParameter name="XML_TIME_ZONE">
<datasetParameterExpression><![CDATA[$P{XML_TIME_ZONE}]]></datasetParameterExpression>
</datasetParameter>
<dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("/data/invoice_items/row")]]></dataSourceExpression>
</datasetRun>
<jr:column width="40" uuid="d360ed7c-1960-426e-8541-07a125682d7e">
<jr:columnHeader style="Table_CH" height="30" rowSpan="1"/>
<jr:detailCell style="Table_TD" height="15">
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textField>
<reportElement x="0" y="0" width="40" height="15" uuid="cdea816f-81e3-4b32-bec6-7791d9862c37"/>
<box>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textFieldExpression><![CDATA[$V{REPORT_COUNT}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="400" uuid="042fc8f1-a37e-412f-a4e8-f6f747d3054c">
<jr:columnHeader style="Table_CH" height="30" rowSpan="1">
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<staticText>
<reportElement x="0" y="0" width="400" height="30" uuid="015596ef-4660-4c7f-9b6d-96b6ddf3858d"/>
<text><![CDATA[Denumire]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="Table_TD" height="15">
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="0" y="0" width="400" height="15" isPrintWhenDetailOverflows="true" uuid="983e6d52-1734-4ace-b791-ec8cfc03cf7c"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textFieldExpression><![CDATA[$F{Denumire}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="50" uuid="69c6f7bc-1e99-4ced-afcd-adfc2d8930a9">
<jr:columnHeader style="Table_CH" height="30" rowSpan="1">
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<staticText>
<reportElement x="0" y="0" width="50" height="30" uuid="0aa9d86a-dda0-469d-9923-b3d1e996b583"/>
<text><![CDATA[valoare]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="Table_TD" height="15">
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textField pattern="#,##0.###">
<reportElement x="0" y="0" width="50" height="15" uuid="11006503-d218-4a64-b8d4-240f611c4727"/>
<box>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textFieldExpression><![CDATA[$F{Valoare}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
</jr:table>
</componentElement>
</band>
</detail>
</jasperReport>
|
How to get Heart points in google fit REST API
By : user3653320
Date : March 29 2020, 07:55 AM
wish help you to fix your issue Never mind, I got it. It took some time to update the API i guess, I had to update the body: code :
{
"aggregateBy": [{
"dataTypeName": "com.google.heart_minutes"
//"dataSourceId": "derived:com.google.heart_minutes:com.google.android.gms:merge_heart_minutes"
}],
"bucketByTime": { "durationMillis": 86400000 },
"startTimeMillis": 1580533200000, // feb 01 2019
"endTimeMillis": 1580878800000 // feb 6 2020 1582866000000 // feb 28 2020
}
|