Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
forena
Commits
385d29b7
Commit
385d29b7
authored
Sep 22, 2014
by
Pierre.Vriens
Committed by
David Metzler
Sep 22, 2014
Browse files
#2124777
Reformatting of reports and corrections.
parent
eae49389
Changes
7
Hide whitespace changes
Inline
Side-by-side
repos/reports/sample/custom_control.frx
View file @
385d29b7
...
...
@@ -6,22 +6,22 @@
<head>
<title>
5. Report with Custom Control
</title>
<frx:category>
Sample
</frx:category>
<frx:options
/
>
<frx:options
hidden=
"0"
></frx:options
>
<frx:fields
/>
<frx:parameters
/>
<frx:docgen
/>
</head>
<frx:fields/><frx:menu/><frx:cache/>
</head>
<body>
<div
frx:block=
"sampledb/states"
/>
<div>
<p>
This sample report demonstrates the use of a custom control.
In this case, the FrxSource control overrides the rendering of the
the div tag to make sure that it gets rendered as poperly escaped
the div tag to make sure that it gets rendered as p
r
operly escaped
html. Custom renderers like these can be used to extend forena
reports with custom rendering controls ta
y
lored to a specific
reports with custom rendering controls ta
i
lored to a specific
domain. This mechanism is how we plan to add graphing support to
Forena Reports.
</p>
</div>
<div
frx:renderer=
"FrxSource"
></div>
</body>
</html>
</html>
\ No newline at end of file
repos/reports/sample/state_breakdown.frx
View file @
385d29b7
<?xml version="1.0"?>
<?xml version="1.0"
encoding="UTF-8"
?>
<!DOCTYPE root [
<!ENTITY nbsp " ">
]>
...
...
@@ -6,13 +6,12 @@
<head>
<title>
4. Master detail with nested blocks
</title>
<frx:category>
Sample
</frx:category>
<frx:options
hidden=
"0"
form=
""
/
>
<frx:options
hidden=
"0"
></frx:options
>
<frx:parameters>
</frx:parameters>
<frx:docgen>
</frx:docgen>
</head>
<frx:fields/><frx:menu/><frx:cache/></head>
<body>
<div>
<p>
Master/Detail reporting only works when the column name in
...
...
@@ -47,4 +46,4 @@
</div>
</div>
</body>
</html>
</html>
\ No newline at end of file
repos/reports/sample/state_graph.frx
View file @
385d29b7
...
...
@@ -6,7 +6,7 @@
<head>
<title>
Sample State Graph
</title>
<frx:category>
Sample
</frx:category>
<frx:options
hidden=
"
true"
/
>
<frx:options
hidden=
"
1"
></frx:options
>
<frx:parameters>
</frx:parameters>
<frx:docgen>
...
...
@@ -18,17 +18,17 @@
link=
"reports/sample.user_distribution_simple?state={state}#test"
format=
""
format-string=
""
target=
""
/>
</frx:fields>
</head>
<frx:menu/><frx:cache/>
</head>
<body>
<div>
<p>
To be browser compatible, this chart really needs to be
referenced in another report embeded in an object tag.
</p>
referenced in another report embed
d
ed in an object tag.
</p>
<svg
id=
"state-chart"
frx:block=
"sampledb/users_by_state"
frx:renderer=
"FrxSVGGraph"
frx:type=
"bargraph"
frx:xpath=
"*[total>10000]"
frx:link=
"sample.user_distribution_simple?state={state}"
frx:series_1=
"{total}"
frx:label=
"{state}"
>
</svg>
</svg>
</div>
</body>
</html>
</html>
\ No newline at end of file
repos/reports/sample/state_summary.frx
View file @
385d29b7
...
...
@@ -6,7 +6,7 @@
<head>
<title>
3. Master Summary with drill down
</title>
<frx:category>
Sample
</frx:category>
<frx:options
/
>
<frx:options
hidden=
"0"
></frx:options
>
<frx:parameters>
</frx:parameters>
<frx:docgen>
...
...
@@ -18,7 +18,7 @@
link=
"reports/sample.user_distribution_simple?state={state}#test"
format=
""
format-string=
""
target=
""
/>
</frx:fields>
</head>
<frx:menu/><frx:cache/>
</head>
<body>
<div>
<p>
This report links back to the sample report 2. You can begin
...
...
@@ -48,4 +48,4 @@
</table>
</div>
</body>
</html>
</html>
\ No newline at end of file
repos/reports/sample/state_summary_ie8.frx
View file @
385d29b7
...
...
@@ -6,7 +6,7 @@
<head>
<title>
6. External SVG Graph Example
</title>
<frx:category>
Sample
</frx:category>
<frx:options
/
>
<frx:options
hidden=
"0"
></frx:options
>
<frx:parameters>
</frx:parameters>
<frx:docgen>
...
...
@@ -18,11 +18,11 @@
link=
"reports/sample.user_distribution_simple?state={state}#test"
format=
""
format-string=
""
target=
""
/>
</frx:fields>
</head>
<frx:menu/><frx:cache/>
</head>
<body>
<div>
<p>
This example demonstrates graphing with SVG in a way that supports
older browsers that do not support inline SVG.
If using Internet Explorer prior to version
older browsers that do not support inline SVG. If using Internet Explorer prior to version
9 you would need an additional plugin to enable SVG support.
</p>
</div>
<div
frx:block=
"sampledb/users_by_state"
id=
"forena-1"
>
...
...
@@ -49,4 +49,4 @@
</table>
</div>
</body>
</html>
</html>
\ No newline at end of file
repos/reports/sample/states.frx
View file @
385d29b7
<?xml version="1.0"?>
<?xml version="1.0"
encoding="UTF-8"
?>
<!DOCTYPE root [
<!ENTITY nbsp " ">
]>
...
...
@@ -6,13 +6,12 @@
<head>
<title>
1. Simple Table of States
</title>
<frx:category>
Sample
</frx:category>
<frx:options
hidden=
"0"
form=
""
></frx:options>
<frx:options
hidden=
"0"
></frx:options>
<frx:parameters>
</frx:parameters>
<frx:docgen>
</frx:docgen>
</head>
<frx:fields/><frx:menu/><frx:cache/></head>
<body>
<div
frx:block=
"sampledb/states"
id=
"state-block"
class=
"FrxTable"
>
<table>
...
...
@@ -31,4 +30,4 @@
</table>
</div>
</body>
</html>
</html>
\ No newline at end of file
repos/reports/sample/user_distribution_simple.frx
View file @
385d29b7
...
...
@@ -6,7 +6,7 @@
<head>
<title>
2. Report that filters based on state lookup
</title>
<frx:category>
Sample
</frx:category>
<frx:options
hidden=
"0"
form=
""
/
>
<frx:options
hidden=
"0"
></frx:options
>
<frx:parameters>
<frx:parm
id=
"state"
label=
"State"
require=
"1"
desc=
"See the parameters tab to understand how this dropdown was created from a data block. "
...
...
@@ -17,19 +17,16 @@
<frx:fields>
<frx:field
id=
"users"
format=
"number"
format-string=
"9,999"
/>
</frx:fields>
</head>
<frx:menu/><frx:cache/>
</head>
<body>
<div
frx:block=
"sampledb/state"
id=
"state"
frx:foreach=
"*"
>
<h2>
{name}
</h2>
</div>
<div
frx:block=
"sampledb/distribution"
id=
"distribution_block"
class=
"FrxTable"
>
<p>
This report lists all users in cities assigned to a state
<p>
This report lists all users in cities assigned to a state
with
code = {parm.state}. Note that the city/state combinations for
sample data were randomly generated, so don't be surprised if it
seems like a city is in the wrong state
</p>
<table>
<thead>
<tr>
...
...
@@ -46,4 +43,4 @@
</table>
</div>
</body>
</html>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment