Globale Parameter - Datumsauswahlfeld.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. <?xml version="1.0" ?>
  2. <report xmlns="http://developer.cognos.com/schemas/report/15.5/" expressionLocale="en" useStyleVersion="11.5">
  3. <drillBehavior/>
  4. <layouts>
  5. <layout>
  6. <reportPages>
  7. <page name="Page1">
  8. <style>
  9. <defaultStyles>
  10. <defaultStyle refStyle="pg"/>
  11. </defaultStyles>
  12. </style>
  13. <pageBody>
  14. <style>
  15. <defaultStyles>
  16. <defaultStyle refStyle="pb"/>
  17. </defaultStyles>
  18. <CSS value="padding:20px"/>
  19. </style>
  20. <contents>
  21. <table>
  22. <style>
  23. <CSS value="border-collapse:collapse;width:100%"/>
  24. <defaultStyles>
  25. <defaultStyle refStyle="tb"/>
  26. <defaultStyle refStyle="GuidedLayoutPadding"/>
  27. <defaultStyle refStyle="GuidedLayoutPadding"/>
  28. </defaultStyles>
  29. </style>
  30. <tableRows>
  31. <tableRow>
  32. <tableCells>
  33. <tableCell>
  34. <contents>
  35. <textItem>
  36. <dataSource>
  37. <staticValue>Global Parameter Date Picker</staticValue>
  38. </dataSource>
  39. </textItem>
  40. </contents>
  41. <style>
  42. <defaultStyles>
  43. <defaultStyle refStyle="HeaderReportTitleTableCell"/>
  44. </defaultStyles>
  45. <CSS value="padding-top:20px;padding-bottom:0px;padding-left:20px;font-family:Helvetica;font-size:16pt;font-weight:bold;font-style:normal"/>
  46. </style>
  47. </tableCell>
  48. </tableCells>
  49. </tableRow>
  50. <tableRow>
  51. <tableCells>
  52. <tableCell>
  53. <contents>
  54. <textItem>
  55. <dataSource>
  56. <staticValue>You can use this sample report as the source to import a global parameter into your IBM Cognos Analytics environment that allows your users to choose the As Of Date for their reports. By default, the As Of Date is &quot;today&quot;s&quot; date.</staticValue>
  57. </dataSource>
  58. </textItem>
  59. </contents>
  60. <style>
  61. <CSS value="padding:20px 20px 10px 20px;font-family:Helvetica;font-size:10pt;font-weight:normal;font-style:normal"/>
  62. </style>
  63. </tableCell>
  64. </tableCells>
  65. </tableRow>
  66. <tableRow>
  67. <tableCells>
  68. <tableCell>
  69. <contents>
  70. <textItem>
  71. <dataSource>
  72. <staticValue>Here is a video overview of global parameters: </staticValue>
  73. </dataSource>
  74. </textItem>
  75. <hyperlink target="_blank">
  76. <dataSource>
  77. <staticValue>https://youtu.be/76YVHEzr8dA</staticValue>
  78. </dataSource>
  79. <contents>
  80. <textItem>
  81. <dataSource>
  82. <staticValue>Video</staticValue>
  83. </dataSource>
  84. </textItem>
  85. </contents>
  86. <style>
  87. <defaultStyles>
  88. <defaultStyle refStyle="hy"/>
  89. </defaultStyles>
  90. </style>
  91. </hyperlink>
  92. </contents>
  93. <style>
  94. <CSS value="padding:10px 20px 10px 20px;font-family:Helvetica;font-size:10pt;font-weight:normal;font-style:normal"/>
  95. </style>
  96. </tableCell>
  97. </tableCells>
  98. </tableRow>
  99. <tableRow>
  100. <tableCells>
  101. <tableCell>
  102. <contents>
  103. <textItem>
  104. <dataSource>
  105. <staticValue>This parameterized report contains one query with a detail filter. The filter must be Required and associated with a data container (e.g. the List below). The filter expression is [TheDate] = ?_as_of_date?</staticValue>
  106. </dataSource>
  107. </textItem>
  108. </contents>
  109. <style>
  110. <CSS value="padding:10px 20px 10px 20px;font-family:Helvetica;font-size:10pt;font-weight:normal;font-style:normal"/>
  111. </style>
  112. </tableCell>
  113. </tableCells>
  114. </tableRow>
  115. <tableRow>
  116. <tableCells>
  117. <tableCell>
  118. <contents>
  119. <list horizontalPagination="true" name="List1" refQuery="Query1">
  120. <noDataHandler>
  121. <contents>
  122. <block>
  123. <contents>
  124. <textItem>
  125. <dataSource>
  126. <staticValue>No Data Available</staticValue>
  127. </dataSource>
  128. <style>
  129. <CSS value="padding:10px 18px;"/>
  130. </style>
  131. </textItem>
  132. </contents>
  133. </block>
  134. </contents>
  135. </noDataHandler>
  136. <style>
  137. <CSS value="border-collapse:collapse;width:200px"/>
  138. <defaultStyles>
  139. <defaultStyle refStyle="ls"/>
  140. </defaultStyles>
  141. </style>
  142. <listColumns>
  143. <listColumn>
  144. <listColumnTitle>
  145. <style>
  146. <defaultStyles>
  147. <defaultStyle refStyle="lt"/>
  148. </defaultStyles>
  149. <CSS value="text-align:center"/>
  150. </style>
  151. <contents>
  152. <textItem>
  153. <dataSource>
  154. <dataItemLabel refDataItem="TheDate"/>
  155. </dataSource>
  156. </textItem>
  157. </contents>
  158. </listColumnTitle>
  159. <listColumnBody>
  160. <style>
  161. <defaultStyles>
  162. <defaultStyle refStyle="lc"/>
  163. </defaultStyles>
  164. <CSS value="text-align:center;border-bottom:1pt solid silver;border-left:1pt solid silver;border-right:1pt solid silver"/>
  165. </style>
  166. <contents>
  167. <textItem>
  168. <dataSource>
  169. <dataItemValue refDataItem="TheDate"/>
  170. </dataSource>
  171. </textItem>
  172. </contents>
  173. </listColumnBody>
  174. </listColumn>
  175. </listColumns>
  176. <listColumnBodyStyle>
  177. <style>
  178. <CSS value="font-family:Helvetica;font-size:9pt;font-weight:normal;font-style:normal;text-align:center"/>
  179. </style>
  180. </listColumnBodyStyle>
  181. <listColumnTitleStyle>
  182. <style>
  183. <CSS value="font-family:Helvetica;font-size:9pt;font-weight:bold;font-style:normal;text-align:center"/>
  184. </style>
  185. </listColumnTitleStyle>
  186. </list>
  187. </contents>
  188. <style>
  189. <CSS value="padding:20px;font-family:Helvetica;font-size:10pt;font-weight:normal;font-style:normal;text-align:left"/>
  190. </style>
  191. </tableCell>
  192. </tableCells>
  193. </tableRow>
  194. </tableRows>
  195. </table>
  196. </contents>
  197. </pageBody>
  198. </page>
  199. </reportPages>
  200. </layout>
  201. </layouts>
  202. <queries>
  203. <query name="Query1">
  204. <source>
  205. <model/>
  206. </source>
  207. <selection>
  208. <dataItem aggregate="none" name="TheDate" rollupAggregate="none">
  209. <expression>[Page1_1].[TheDate]</expression>
  210. <XMLAttributes>
  211. <XMLAttribute name="RS_dataType" output="no" value="7"/>
  212. <XMLAttribute name="RS_dataUsage" output="no" value="1"/>
  213. </XMLAttributes>
  214. </dataItem>
  215. </selection>
  216. <detailFilters>
  217. <detailFilter>
  218. <filterExpression>[TheDate] = ?_as_of_date?</filterExpression>
  219. </detailFilter>
  220. </detailFilters>
  221. </query>
  222. </queries>
  223. <modelPath type="module">/content/folder[@name=&quot;Calendars&quot;]/module[@name=&quot;Gregorian calendar&quot;]</modelPath>
  224. <reportName>Globale Parameter - Datumsauswahlfeld</reportName>
  225. <classStyles>
  226. <classStyle name="GuidedLayoutPadding">
  227. <CSS value="margin:5px;padding:5px"/>
  228. </classStyle>
  229. </classStyles>
  230. </report>