PageRenderTime 56ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/mcmis/reportico/doc/reportico/tutorial_reportico.design.pkg.html

http://mcmis.googlecode.com/
HTML | 286 lines | 269 code | 13 blank | 4 comment | 0 complexity | ecd45939162524842dd0d91926073aa7 MD5 | raw file
Possible License(s): LGPL-2.1
  1. <html>
  2. <head>
  3. <title>Report Design Mode</title>
  4. <link rel="stylesheet" type="text/css" href="../media/style.css">
  5. </head>
  6. <body>
  7. <table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  8. <tr>
  9. <td width="100%">
  10. <table width="100%" height="78" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" id="topnav">
  11. <tr>
  12. <!-- Header Side -->
  13. <td width="17">
  14. <img height="78" src="media/reportico100.png"/>
  15. </td>
  16. <td align="right"></td>
  17. <td align="center">
  18. <table width="100%" height="60" border="0" align="left" cellpadding="0" cellspacing="0">
  19. <tr>
  20. <td valign="top" align="left">
  21. <img src="media/repbanner.png"/></td>
  22. </td>
  23. </tr>
  24. <tr>
  25. <td align="center" valign="bottom" class="topmenucell">
  26. <nobr>
  27. &nbsp;
  28. </nobr>
  29. </td>
  30. </tr>
  31. </table>
  32. </td>
  33. <td width="103" class="toplogincell">
  34. &nbsp;
  35. </td>
  36. </tr>
  37. </table>
  38. </td>
  39. </tr>
  40. <!--tr>
  41. <td class="header_top">reportico</td>
  42. </tr-->
  43. <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
  44. <tr>
  45. <td class="header_menu">
  46. [ <a href="../classtrees_reportico.html" class="menu">class tree: reportico</a> ]
  47. [ <a href="../elementindex_reportico.html" class="menu">index: reportico</a> ]
  48. [ <a href="../elementindex.html" class="menu">all elements</a> ]
  49. </td>
  50. </tr>
  51. <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
  52. </table>
  53. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  54. <tr valign="top">
  55. <td width="200" class="menu">
  56. <b>Packages:</b><br />
  57. <a href="../li_reportico.html">reportico</a><br />
  58. <br /><br />
  59. <b>Tutorials/Manuals:</b><br />
  60. <strong>Package-level:</strong>
  61. <ul>
  62. <li type="square"><a href="../reportico/tutorial_reportico.pkg.html">Reportico Tutorial And User Manual</a>
  63. <ul>
  64. <li type="square"><a href="../reportico/tutorial_reportico.manual.pkg.html">Reportico User Manual</a>
  65. <ul>
  66. <li type="square"><a href="../reportico/tutorial_reportico.quickstart.pkg.html">Reportico Installation</a>
  67. </ul>
  68. <ul>
  69. <li type="square"><a href="../reportico/tutorial_reportico.gettingstarted.pkg.html">Getting Started</a>
  70. </ul>
  71. <ul>
  72. <li type="square"><a href="../reportico/tutorial_reportico.structure.pkg.html">Reportico Installation Structure</a>
  73. </ul>
  74. <ul>
  75. <li type="square"><a href="../reportico/tutorial_reportico.using.pkg.html">Running Reportico - Options</a>
  76. </ul>
  77. <ul>
  78. <li type="square"><a href="../reportico/tutorial_reportico.security.pkg.html">Reportico Security</a>
  79. </ul>
  80. <ul>
  81. <li type="square"><a href="../reportico/tutorial_reportico.projects.pkg.html">Projects</a>
  82. </ul>
  83. <ul>
  84. <li type="square"><a href="../reportico/tutorial_reportico.menus.pkg.html">Report Menus</a>
  85. </ul>
  86. <ul>
  87. <li type="square"><a href="../reportico/tutorial_reportico.prepare.pkg.html">Report Preparation and Execution</a>
  88. </ul>
  89. <ul>
  90. <li type="square"><a href="../reportico/tutorial_reportico.design.pkg.html">Report Design Mode</a>
  91. <ul>
  92. <li type="square"><a href="../reportico/tutorial_reportico.format.pkg.html">The Design Format Menu</a>
  93. </ul>
  94. <ul>
  95. <li type="square"><a href="../reportico/tutorial_reportico.customcode.pkg.html">Custom Source Code</a>
  96. </ul>
  97. <ul>
  98. <li type="square"><a href="../reportico/tutorial_reportico.qrydet.pkg.html">The Query Details Menu</a>
  99. </ul>
  100. <ul>
  101. <li type="square"><a href="../reportico/tutorial_reportico.assign.pkg.html">The Assignments Menu</a>
  102. </ul>
  103. <ul>
  104. <li type="square"><a href="../reportico/tutorial_reportico.criteria.pkg.html">The Criteria Menu</a>
  105. </ul>
  106. <ul>
  107. <li type="square"><a href="../reportico/tutorial_reportico.output.pkg.html">The Output Menu</a>
  108. </ul>
  109. <ul>
  110. <li type="square"><a href="../reportico/tutorial_reportico.webservices.pkg.html">Turning Reports into Web Services (currently unavailable)</a>
  111. </ul>
  112. </li></ul>
  113. </li></ul>
  114. <ul>
  115. <li type="square"><a href="../reportico/tutorial_reportico.howto.pkg.html">Reportico Tutorial</a>
  116. <ul>
  117. <li type="square"><a href="../reportico/tutorial_reportico.tutorial1.pkg.html">Tutorial No.1 - The Film Listing Report</a>
  118. </ul>
  119. <ul>
  120. <li type="square"><a href="../reportico/tutorial_reportico.tutorial1_1.pkg.html">Tutorial 1 Stage 1 - Creating a basic report</a>
  121. </ul>
  122. <ul>
  123. <li type="square"><a href="../reportico/tutorial_reportico.tutorial1_2.pkg.html">Tutorial 1 Stage 2 - Creating User Entry Criteria</a>
  124. </ul>
  125. <ul>
  126. <li type="square"><a href="../reportico/tutorial_reportico.tutorial1_3.pkg.html">Tutorial 1 Stage 3 - Working with expressions using assignments</a>
  127. </ul>
  128. <ul>
  129. <li type="square"><a href="../reportico/tutorial_reportico.tutorial1_4.pkg.html">Tutorial 1 Stage 4 - Working with groups</a>
  130. </ul>
  131. <ul>
  132. <li type="square"><a href="../reportico/tutorial_reportico.tutorial1_5.pkg.html">Tutorial 1 Stage 5 - Including database graphics into the report</a>
  133. </ul>
  134. <ul>
  135. <li type="square"><a href="../reportico/tutorial_reportico.tutorial2_1.pkg.html">Tutorial 2 - Creating the loan history report</a>
  136. </ul>
  137. <ul>
  138. <li type="square"><a href="../reportico/tutorial_reportico.tutorial3_1.pkg.html">Tutorial 3 - The Monthly Returns Report</a>
  139. </ul>
  140. <ul>
  141. <li type="square"><a href="../reportico/tutorial_reportico.tutorial4_1.pkg.html">Tutorial 4 - The Late Returns Summary report</a>
  142. </ul>
  143. </li></ul>
  144. </li></ul>
  145. <ul>
  146. <li type="square"><a href="../reportico/tutorial_reportico.appendix1.pkg.html">Appendix 1 - Reportico Project Configuration parameters</a>
  147. </ul>
  148. <ul>
  149. <li type="square"><a href="../reportico/tutorial_reportico.appendix2.pkg.html">Appendix 2 - Reportico URL request parameters</a>
  150. </ul>
  151. <b>Files:</b><br />
  152. <div class="package">
  153. <a href="../reportico/_reportico.php.html"> reportico.php
  154. </a><br>
  155. </div><br />
  156. </td>
  157. <td>
  158. <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
  159. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  160. <tr>
  161. <td width="10%" align="left" valign="bottom"><a href=
  162. "../reportico/tutorial_reportico.prepare.pkg.html">Prev</a></td>
  163. <td width="80%" align="center" valign="bottom"></td>
  164. <td width="10%" align="right" valign="bottom"><a href=
  165. "../reportico/tutorial_reportico.format.pkg.html">Next</a></td>
  166. </tr>
  167. </table>
  168. <span><a name="design"></a><h2 class="title">Report Design Mode</h2><a name="design.desintro"></a><h3 class="title">Entering Design Mode</h3><p>You
  169. may only enter design mode when logged in as Administrator.
  170. enabled. Design mode is entered either by selecting the <strong>Design Report</strong> option from the report criteria entry screen.</p><hr />
  171. <a name="design.desmod"></a><h3 class="title">Design Mode Overview</h3><p>Use
  172. design mode to create, edit and save your reports. The design mode is
  173. organised as a tabbed menu system .</p><p><img src = "../media/R_08.png"/></p>
  174. <a name="design.desmod.manipulation"></a><h3 class="title">Report
  175. Manipulation</h3><p>Part of Reportico's power is the ways that database
  176. data can be prepared and manipulated prior and during the main report
  177. query. Reportico provides 3 main ways to achieve this
  178. :-</p><p></p><ol><li><p><strong>Pre-SQLs</strong></p><p>These
  179. are SQL statements that are executed prior to the main report query and
  180. are used to prepare temporary tables or run other SQL statements that could
  181. set a database configuration parameter or perform UPDATEs and DELETEs.
  182. Criteria values selected by the user on the Prepare screen can be
  183. incorporated into these statements. See <a href="../reportico/tutorial_reportico.qrydet.pkg.html#qrydet.PreSQLs">Query Details =&gt; Pre-SQLs</a> for more details.</p></li><li><p><strong>Custom
  184. Code</strong></p><p>This is your own PHP code that is executed after any
  185. Pre-SQLs and before the main report query. This is used as an alternative
  186. to Pre-SQLs or for more complex preparatory work than can be performed in
  187. Pre-SQLs. You have access to the database through the <strong>$_connection</strong> ADODB
  188. class variable where you can create SQL statements and execute them, use
  189. database cursors and transactions. And you have access to the user
  190. criteria through the <strong>$_criteria</strong> variable so that you can pull out relevant data before the main report query uses it.</p><p>Also, this preparatory phase is a
  191. useful feature that can simplify and speed up reports that would otherwise
  192. be slowed down by a large main query consisting of many tables and many
  193. joins. It may be more sensible to place in here ( or in the Pre-SQLs if
  194. appropriate ) statements that prepare a temporary table of data from a
  195. large table that matches the user criteria which can then be linked in
  196. with the rest of the report tables in the main query. See <a href="../reportico/tutorial_reportico.customcode.pkg.html">Custom Source Code</a> for more details.</p><p>Also a
  197. great deal of data reformatting can be done here in database cursors that
  198. can prepare a temporary table with column values that have been
  199. reformatted.</p></li><li><p><strong>Assignments</strong></p><p>These
  200. are snippets of PHP code that are run while the main report query is
  201. running and are used to calculate values for custom report columns based
  202. on the retrieved report data, or they can be used to transform the report
  203. data before being finally presented in the finished report.</p><p>For example, a datetime value coming from the database can be
  204. converted to just the time elemented by entering an assignment that uses
  205. the PHP <strong>substr</strong> function to chop off the date part. Also, an assignment can
  206. concatenate or otherwise reformat many columns into a single
  207. one.</p><p>Also, assignments can be made to custom user columns that
  208. may be calculations based on the report data such a sums, averages etc.</p><p>Conditions may be applied to an assignment so that the
  209. assignment is only performed if a certain condition is met. For example,
  210. if a numeric column is negative it could be reformatted to show the number
  211. in brackets or in red by surrounding it in html tags that alter the colour
  212. (although that wouldn't work in PDF
  213. output). See <a href="../reportico/tutorial_reportico.assign.pkg.html">The Assignments Menu</a> for more details.</p></li></ol><hr />
  214. <a name="design.toplevel"></a><h3 class="title">Top Level Menu</h3><p><table border = "1"><caption>Top Level Menu Options</caption><colgroup span = "2"/><col align = "left"></col>
  215. <col align = "left"></col>
  216. <tbody><tr><td valign = "top">Project Menu</td>
  217. <td>Returns to the project menu selection screen</td></tr>
  218. <tr><td valign = "top">Admin Menu</td>
  219. <td>Returns you to the Administration Page</td></tr>
  220. <tr><td valign = "top">Run Report</td>
  221. <td>Returns to the Report Criteria Entry Page</td></tr>
  222. <tr><td valign = "top">Report File</td><td>Identifies the name of the report definition currently
  223. working on.</td></tr>
  224. <tr><td valign = "top">Save button</td><td><p>Saves the
  225. current report to disk. The file will be saved in the projects area with the
  226. named displayed in the Report File box.</p><p>To save with a different name
  227. change this text and press the Save button. From then on any modifications
  228. you will relate to that new file
  229. name.</p></td></tr>
  230. <tr><td valign = "top">New Report</td>
  231. <td>Creates an empty report so you can start from scratch</td></tr></tbody></table></p><hr /><hr />
  232. <a name="design.desrep"></a><h3 class="title">Tab Menus</h3><p>Each tabbed
  233. menu is described in detail in the following chapters. The top level
  234. tabbed menu comprises the following options
  235. :-</p><p><table border = "1"><caption></caption><colgroup span = "2"/><col align = "left"></col><col align = "left"></col><tbody><tr><td>Format</td><td>Provides
  236. set up of general presentation parameters for the report such as report
  237. title, description, paging options and custom
  238. code.</td></tr><tr><td>Query Details</td><td>Entry of main
  239. report query that fetches the data for displaying on report. Set up of
  240. column labels, justification, visibility
  241. etc</td></tr><tr><td>Assignments</td><td>Set up of
  242. expressions such as calculations and string manipulation to be performed
  243. on the report data. Also used for reporting graphical data from
  244. database</td></tr><tr><td>Criteria</td><td>Set up of the
  245. criteria items and expand/lookup options that the user will use to select
  246. from on the Prepare
  247. screen.</td></tr><tr><td>Output</td><td>Set up of grouping,
  248. graphs, page formatting for PDF
  249. etc</td></tr></tbody></table></p><hr /></span>
  250. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  251. <tr>
  252. <td width="33%" align="left" valign="top"><a href="../reportico/tutorial_reportico.prepare.pkg.html">Prev</a></td>
  253. <td width="34%" align="center" valign="top"><a href=
  254. "../reportico/tutorial_reportico.manual.pkg.html">Up</a></td>
  255. <td width="33%" align="right" valign="top"><a href=
  256. "../reportico/tutorial_reportico.format.pkg.html">Next</a></td>
  257. </tr>
  258. <tr>
  259. <td width="33%" align="left" valign="top">Report Preparation and Execution</td>
  260. <td width="34%" align="center" valign="top">Reportico User Manual</td>
  261. <td width="33%" align="right" valign="top">The Design Format Menu</td>
  262. </tr>
  263. </table>
  264. <div class="credit">
  265. <hr />
  266. Documentation generated on Fri, 14 Oct 2011 23:43:39 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
  267. </div>
  268. </td></tr></table>
  269. </td>
  270. </tr>
  271. </table>
  272. </body>
  273. </html>