<?xml version="1.0" encoding="UTF-8"?>
  <form title="Genre"  xmlns="http://www.evolutility.com">
    <data dbtable="CH_Genre" entity="genre" entities="genres"
		  sppaging="CH_SP_PagedItem @SQLselect, @SQLtable, @SQLfrom, @SQLwhere, @SQLorderby, @SQLpk, @pageid, @pagesize" 
		  splogin="EvoDicoSP_Login @login, @password" />
    <panel label="Genre" width="100">
      <field id="44" type="text" label="Name" dbcolumn="Name" dbcolumnread="Name" maxlength="120"
			  search="1" searchadv="1" searchlist="1" height="1" width="80" />
		<field type="formula" label="Tracks" dbcolumn="SELECT COUNT(*) FROM CH_Track WHERE t.id=CH_Track.GenreID" dbcolumnread="NBTracks"
			   maxlength="120" search="1" searchadv="1" searchlist="1" height="1" width="20"	  />
    </panel> 
	  <panel-details panelid="1" label="Tracks" width="100"
					 dbtabledetails="CH_Track" dbcolumndetails="GenreID" dborder="t.Name"  >
		  <field panelid="1" type="text" label="Name"
				 link="Track.aspx?ID=@itemid" dbcolumn="Name" dbcolumnread="Name" maxlength="200" required="1" search="1" searchadv="1" searchlist="1" height="3" width="100" />
		  <field panelid="1" type="lov" label="Album"
				 link="Album.aspx?ID=@itemid"
				 dbcolumn="AlbumId" dbcolumnread="Album" dbtablelov="CH_Album" dbcolumnreadlov="Title"
				 maxlength="2" search="1" searchadv="1" searchlist="1" height="1" width="20" />
		  <field panelid="1" type="lov" label="Media Type"
				 link="LOV_MediaType.aspx?ID=@itemid"
				 dbcolumn="MediaTypeId" dbcolumnread="MediaType" dbtablelov="CH_MediaType"
				  maxlength="2" required="1" search="1" searchadv="1" searchlist="1" height="1" width="20" />
		  <field panelid="1" type="textmultiline" label="Composer" dbcolumn="Composer" dbcolumnread="Composer" maxlength="220" fpos="610" search="1" searchadv="1" searchlist="1" height="3" width="100" />
		  <field panelid="1" type="integer" label="Milli-seconds" dbcolumn="Milliseconds" dbcolumnread="Milliseconds" maxlength="2" required="1" fpos="620" search="1" searchadv="1" searchlist="" height="1" width="20" />
		  <field panelid="1" type="integer" label="Bytes" dbcolumn="Bytes" dbcolumnread="Bytes" maxlength="2" fpos="630" search="1" searchadv="1" searchlist="" height="1" width="20" />
		  <field panelid="1" type="decimal" format="$0.00" label="Price" dbcolumn="UnitPrice" dbcolumnread="UnitPrice" maxlength="4" required="1" fpos="640" search="1" searchadv="1" searchlist="" height="1" width="20" />
	  </panel-details>
  </form>

