質問編集履歴

1

状況説明を追記

2017/03/22 02:48

投稿

yadrop
yadrop

スコア57

title CHANGED
File without changes
body CHANGED
@@ -64,4 +64,100 @@
64
64
  JapserReports初心者の為、説明など至らない部分が多くあると思いますが、
65
65
  情報の不足などございましたらご指摘ください。
66
66
 
67
- 何卒、宜しくお願い致します。
67
+ 何卒、宜しくお願い致します。
68
+
69
+
70
+
71
+
72
+ 追記:変更点については以下になります。
73
+ 都合上、名称やサイズなどは代用しています。
74
+
75
+
76
+ ①SELECT文に追記
77
+
78
+ ```ここに言語を入力
79
+ SELECT
80
+
81
+ ,flg AS flg
82
+ ,IF(
83
+ flg = 1
84
+ ,'○'
85
+ ,'×'
86
+ ) AS hoge
87
+
88
+ ```
89
+
90
+ ②宣言
91
+
92
+ ```ここに言語を入力
93
+ <field name="flg" class="java.lang.Boolean"/>
94
+ <field name="hoge" class="java.lang.String"/>
95
+ ```
96
+
97
+
98
+ ③コンテンツ追加 1
99
+
100
+ ```ここに言語を入力
101
+ <line>
102
+ <reportElement x="0" y="250" width="400" height="1" forecolor="#DA0023" uuid="hoge1">
103
+ <property name="com.jaspersoft.studio.unit.height" value="pixel"/>
104
+ <property name="com.jaspersoft.studio.unit.width" value="pixel"/>
105
+ <property name="com.jaspersoft.studio.unit.y" value="pixel"/>
106
+ </reportElement>
107
+ </line>
108
+ ```
109
+
110
+ ④コンテンツ追加 2
111
+
112
+ ```ここに言語を入力
113
+ <line>
114
+ <reportElement x="60" y="250" width="1" height="15" forecolor="#DA0023" uuid="hoge2">
115
+ <property name="com.jaspersoft.studio.unit.width" value="pixel"/>
116
+ <property name="com.jaspersoft.studio.unit.height" value="pixel"/>
117
+ </reportElement>
118
+ </line>
119
+ ```
120
+
121
+ ⑤コンテンツ追加 3 (ここで①のAS hogeを表示しています)
122
+ ```ここに言語を入力
123
+ <staticText>
124
+ <reportElement x="0" y="250" width="50" height="15" uuid="hoge3">
125
+ <property name="com.jaspersoft.studio.unit.height" value="pixel"/>
126
+ </reportElement>
127
+ <textElement>
128
+ <font fontName="Meiryo" size="7"/>
129
+ </textElement>
130
+ <text><![CDATA[サンプルテキスト]]></text>
131
+ </staticText>
132
+ <textField isStretchWithOverflow="true" isBlankWhenNull="true">
133
+ <reportElement x="60" y="250" width="125" height="15" uuid="hoge4"/>
134
+ <textElement>
135
+ <font fontName="Meiryo" size="7"/>
136
+ </textElement>
137
+ <textFieldExpression><![CDATA[$F{hoge}]]></textFieldExpression>
138
+ </textField>
139
+ ```
140
+
141
+ ⑥コンテンツ追加 4
142
+
143
+ ```ここに言語を入力
144
+ <rectangle>
145
+ <reportElement key="" x="0" y="300" width="400" height="30" forecolor="#FFCC00" backcolor="rgba(255, 255, 255, 0.0)" uuid="hoge5">
146
+ <property name="com.jaspersoft.studio.unit.height" value="pixel"/>
147
+ <printWhenExpression><![CDATA[$F{flg} == false]]></printWhenExpression>
148
+ </reportElement>
149
+ </rectangle>
150
+ <staticText>
151
+ <reportElement x="3" y="280" width="400" height="25" uuid="hoge6">
152
+ <property name="com.jaspersoft.studio.unit.width" value="pixel"/>
153
+ <printWhenExpression><![CDATA[$F{flg} == false]]></printWhenExpression>
154
+ </reportElement>
155
+ <textElement>
156
+ <font size="6"/>
157
+ </textElement>
158
+ <text><![CDATA[フラグが0の時に表示する]]></text>
159
+ </staticText>
160
+ ```
161
+
162
+ その他の差分としては編集日時が変わったという程度のものなので記載はしておりません。
163
+ 宜しくお願い致します。