Removing Non-essential Code
When the HTML Editor places a component on an A5W page, the result for a grid looks something like this (in this case for a component named grd_prods ).
|
<table> <tr> <td> <%A5 ?x_grd_prods.Output.Body.Grid_Echo %> </td> </tr> <tr> <td> <%A5 ?x_grd_prods.Output.Body.UpdateErrors %> </td> </tr> <tr> <td> <%A5 ?x_grd_prods.Output.Body.Search_HTML %> </td> </tr> <tr> <td> <%A5 ?x_grd_prods.Output.Body.Grid_HTML %> </td> </tr> <tr> <td> <%A5 ?x_grd_prods.Output.Body.DetailView_HTML %> </td> </tr> </table> |
Frequently, some of these sections are not needed and can be removed to give better formatting and reduce the amount of HTML on the page. I did it on almost every page.
"Grid_Echo" can almost always be removed.
"Update_errors" can be removed on any component that is view only (no data to update).
"Search_HTML" can be removed if there is no search section, or it is not used.
"DetailView_HTML" can be removed if there is no detail section.
After a little extra formatting, the simplified version of the page code now looks like this:
|
<table border="0" cellspacing="3" cellpadding="0"> <tr> <td> <%A5 ?x_grd_prods.Output.Body.Grid_HTML %> </td> </tr> </table> |
See Also
Supported By
Alpha Five Version 7 and Above