Location: PHPKode > projects > FiForms Framework > FiForms/apps/books/forms/book_categories.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE fiform:fiform PUBLIC "-//FIFORMS//DTD FIFORMDEF 1.1//EN" "http://xml.fiforms.org/dtd/11/FiForm.dtd">
<fiform:fiform allowInsert="yes" ctlPosition="bottom" svctlPosition="left" viewsAllowed="both" whichControls="all" window="books" xmlns="http://www.w3.org/1999/xhtml"  version="1.1" xmlns:fiform="http://xml.fiforms.org/FiForms/">
<fiform:title>Book Categories</fiform:title>
<fiform:summary>
List the categories a book belongs to.
</fiform:summary>
<fiform:connect db="fiforms_sample" id="1" server="localhost" update="bookcats">
</fiform:connect>
<fiform:param name="BOOK_ID"/>
<fiform:if param="sheetView" test="does not equal" value="YES">
<fiform:iHidden field="BOOK_ID"/>
</fiform:if>
<fiform:iDBSelect caption="Category" field="CAT_ID" rowQuery="SELECT a.CAT_ID, concat(if(c.cat_title is null,&apos;&apos;,concat(c.cat_title,&apos;--&apos;)),if(b.cat_title is null,&apos;&apos;,concat(b.cat_title,&apos;--&apos;)),a.CAT_TITLE) as Combined_name from categories a left join categories b on a.CAT_PARENT_ID = b.CAT_ID left JOIN categories c ON b.CAT_PARENT_ID = c.CAT_ID">
</fiform:iDBSelect>
</fiform:fiform>
Return current item: FiForms Framework