<font size=2 face="sans-serif"><br>
I swear I tried that and it still didn't work. It does now, thank you.
Can you tell me what I need to add to "$c->stash(accounts =>
[ $c->model('ORANGES::AccountView')->all ]);" to sort by the
account_code in ascending order? It's obviously "sort, but the actual
syntax is what I'm looking for. Thanks again.</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Will Crawford <billcrawford1970@gmail.com></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">The elegant MVC web framework <catalyst@lists.scsys.co.uk></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">04/27/2012 09:55 AM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: [Catalyst] No data showing</font></table>
<br>
<hr noshade>
<br>
<br>
<br><font size=3><br>
</font>
<br><font size=3>On 27 April 2012 15:50, Kenneth S Mclane <</font><a href=mailto:ksmclane@us.ibm.com target=_blank><font size=3 color=blue><u>ksmclane@us.ibm.com</u></font></a><font size=3>>
wrote:</font>
<br><font size=3 face="sans-serif">This was a test to make sure I was actually
getting data. My intention is to return all rows in pager format. I haven't
made it to that part yet. Here is my template code:</font><font size=3>
<br>
</font><font size=3 face="sans-serif"><br>
<table width="100%" border="1"></font><font size=3>
</font><font size=3 face="sans-serif"><br>
<tr><th>Department</th><th>Account
Code</th><th>Account Name</th><th>Policy</th><th>Compliant</th><th>Servers</th><th>Subsystems</th><th>Complete</th><th>Status</th></tr></font><font size=3>
</font><font size=3 face="sans-serif"><br>
[% # Display each account in a table row %]</font><font size=3>
</font><font size=3 face="sans-serif"><br>
[% FOREACH account IN accounts -%]</font><font size=3> </font>
<br><font size=3>
^^^^^^^ </font>
<br><font size=3 face="sans-serif"> <tr></font><font size=3>
</font><font size=3 face="sans-serif"><br>
<td>1[% accounts.department_id
%]</td></font><font size=3> </font>
<br><font size=3>
^^^^^^^^ </font>
<br>
<br><font size=3>You're simply referring to the list instead of the item
here.</font>
<br><tt><font size=2>_______________________________________________<br>
List: Catalyst@lists.scsys.co.uk<br>
Listinfo: </font></tt><a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst"><tt><font size=2>http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</font></tt></a><tt><font size=2><br>
Searchable archive: </font></tt><a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/"><tt><font size=2>http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</font></tt></a><tt><font size=2><br>
Dev site: </font></tt><a href=http://dev.catalyst.perl.org/><tt><font size=2>http://dev.catalyst.perl.org/</font></tt></a><tt><font size=2><br>
</font></tt>
<br>
<br>