[{"id":"08e0fe96-3025-463b-bcee-87f4b29c462b","tags":[{"product":null,"links":null,"id":"92283933-94f9-4e9a-8d93-15ba4ec8b3ec","name":"upd","color":"#7e678a","productId":"77f3d9a0-2c87-4130-b77a-b94ccf13e3cb"}]},{"id":"0d5035e7-1a53-4dc5-b32e-9ce261bfa47e","tags":[{"product":null,"links":null,"id":"92283933-94f9-4e9a-8d93-15ba4ec8b3ec","name":"upd","color":"#7e678a","productId":"77f3d9a0-2c87-4130-b77a-b94ccf13e3cb"}]},{"id":"2fb2b485-f567-436c-9ca9-06dd71ceadb3","tags":[{"product":null,"links":null,"id":"92283933-94f9-4e9a-8d93-15ba4ec8b3ec","name":"upd","color":"#7e678a","productId":"77f3d9a0-2c87-4130-b77a-b94ccf13e3cb"}]},{"id":"c1466f0c-9710-41d3-9812-c7321630328a","tags":[{"product":null,"links":null,"id":"e1d31134-0bda-4c05-bee0-b1f21f82940b","name":"new","color":"#00A273","productId":"77f3d9a0-2c87-4130-b77a-b94ccf13e3cb"}]},{"id":"b0e616b5-b520-405e-b108-e81363a8dd74","tags":[{"product":null,"links":null,"id":"92283933-94f9-4e9a-8d93-15ba4ec8b3ec","name":"upd","color":"#7e678a","productId":"77f3d9a0-2c87-4130-b77a-b94ccf13e3cb"}]},{"id":"f5712fda-d364-4652-9783-3073e2560b97","tags":[{"product":null,"links":null,"id":"92283933-94f9-4e9a-8d93-15ba4ec8b3ec","name":"upd","color":"#7e678a","productId":"77f3d9a0-2c87-4130-b77a-b94ccf13e3cb"}]},{"id":"8f03c498-1e02-459a-a6de-ee619033d6d2","tags":[{"product":null,"links":null,"id":"92283933-94f9-4e9a-8d93-15ba4ec8b3ec","name":"upd","color":"#7e678a","productId":"77f3d9a0-2c87-4130-b77a-b94ccf13e3cb"}]},{"id":"2b701643-01a1-40e0-b49b-0a6e93c1f847","tags":[{"product":null,"links":null,"id":"e1d31134-0bda-4c05-bee0-b1f21f82940b","name":"new","color":"#00A273","productId":"77f3d9a0-2c87-4130-b77a-b94ccf13e3cb"}]},{"id":"07b4f367-7ddc-4c8a-932c-b180f112364e","tags":[{"product":null,"links":null,"id":"e1d31134-0bda-4c05-bee0-b1f21f82940b","name":"new","color":"#00A273","productId":"77f3d9a0-2c87-4130-b77a-b94ccf13e3cb"}]}]
レポートパーツは開発者が事前に定義した再利用可能なレポート項目を、他のレポートにライブラリとして取り込み、再利用する機能です。レポートパーツライブラリの作成についてはレポートパーツを参照してください。
レポートパーツライブラリを作成していた場合、APIを使用してWebデザイナコンポーネントに読み込むことが可能です。レポートパーツライブラリを読み込む場合のオプションは以下の通りです。
id
:レポートパーツを事前定義したレポートファイルを設定します。
name
:レポートパーツライブラリの名前を設定します。
displayName
:Webデザイナコンポーネントに表示されるライブラリの名前を設定します。
以下、レポートパーツライブラリをWebデザイナコンポーネントを読み込むためのサンプルです。
var designer = new MESCIUS.ActiveReportsJS.ReportDesigner.Designer("#designer-host");
var libraries = [
{
id: 'ReportLib.rdlx-json',
name: 'ReportsLib',
displayName: "Report parts library"
}
]
designer.setReportPartsLibraries(libraries);
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template:
'<div id="designer-host"><gc-activereports-designer [onInit]="onInit"> </gc-activereports-designer></div>'
})
export class AppComponent {
onInit = function onInit() {
var libraries = [
{
id: 'ReportLib.rdlx-json',
name: 'ReportsLib',
displayName: "Report parts library"
}
];
return {
reportPartsLibraries: libraries,
};
}
}
import React from "react";
import { Designer } from "@mescius/activereportsjs-react";
function onInit() {
var libraries = [
{
id: 'ReportLib.rdlx-json',
name: 'ReportsLib',
displayName: "Report parts library"
}
];
return {
reportPartsLibraries: libraries,
};
}
function App() {
return (
<Designer onInit={onInit} />
);
}
<template>
<div id="designer-host">
<ReportDesigner
:onInit="onInit"
></ReportDesigner>
</div>
</template>
<script lang="ts">
import { Designer } from @mescius/activereportsjs-vue";
export default {
name: "App",
components: {
ReportDesigner: Designer,
},
methods: {
onInit() {
var libraries = [
{
id: 'ReportLib.rdlx-json',
name: 'ReportsLib',
displayName: "Report parts library"
}
];
return {
reportPartsLibraries: libraries,
};
},
},
};
</script>
<script lang="ts">
import {Designer} from "@mescius/activereportsjs-svelte";
function onInit() {
var libraries = [
{
id: 'ReportLib.rdlx-json',
name: 'ReportsLib',
displayName: "Report parts library"
}
];
return {
reportPartsLibraries: libraries,
};
}
</script>
<div id="designer-host">
<Designer onInit={onInit}></Designer>
</div>