SourceForge.net Logo
Home | SourceForge | Documentation | FAQ | What's New | To-Do List | Forums | Download | Contact

sqlrowerror Tag

Attribute List:

This defines the place where an error specific to an entire row should be displayed. SQL errors are displayed here. If this tag is not used, SQL errors will not be displayed. This is because sometimes you would want a separate row to display them, and Sparse can't guess if this is the case or not. In addition, you'll often not want your users to be burdened with specific error messages. Note that if any row errors occur, sqlmessage will still display an error.

This tag will be ignored for display templates, and must go inside the sqlrow tag.

Type of tag: Self-closing

Attributes

showQuery


Required: No
Values: true | false

If this is not given, or is false, only the SQL error will be displayed. If this is true, both the SQL error and the full SQL query will be given.

startMarkup


Required: No
Values: Any HTML markup

This allows you to put markup before the error; the markup will not be displayed if the error isn't displayed, but will be displayed if the error is displayed. You can use this to e.g. enclose the error in a separate row:

<sqlrowerror startMarkup="<tr><td colspan='4'>" endMarkup="</td></tr>" />

endMarkup


Required: No
Values: Any HTML markup

If given, the value of this attribute will be displayed after the error if the error is displayed (and will not be displayed if the error is not displayed). See startMarkup.

class


Required: No
Values: CSS class

Works like any other class attribute.

style


Required: No
Values: CSS style

Works like any other style attribute.