Permalink
Browse files

(6) - set auto_editor_type (combo) + column TableSpecs

  • Loading branch information...
vanstyn committed Sep 12, 2013
1 parent 8dc11ee commit 203c84d1629d7e289c0ea8810fac8319730c890c
Showing with 52 additions and 2 deletions.
  1. BIN chinook.db
  2. +6 −0 cmd_history.sh
  3. +46 −2 lib/RA/ChinookDemo.pm
BIN +0 Bytes (100%) chinook.db
Binary file not shown.
@@ -211,3 +211,9 @@ script/ra_chinookdemo_server.pl
# Configure editing across relationships
vim lib/RA/ChinookDemo.pm
Commit '(5) - Example editing across relationships'
# Start the test server:
script/ra_chinookdemo_server.pl
#
# Set certain Sources to be dropdowns
vim lib/RA/ChinookDemo.pm
Commit '(6) - set auto_editor_type (combo) + column TableSpecs'
@@ -59,10 +59,54 @@ __PACKAGE__->config(
display_column => 'name'
},
Genre => {
display_column => 'name'
display_column => 'name',
auto_editor_type => 'combo'
},
MediaType => {
display_column => 'name'
display_column => 'name',
auto_editor_type => 'combo'
},
Track => {
columns => {
bytes => {
renderer => 'Ext.util.Format.fileSize'
},
unitprice => {
renderer => 'Ext.util.Format.usMoney',
header => 'Price',
width => 50
},
name => {
header => 'Name', width => 140
},
albumid => {
header => 'Album', width => 130
},
mediatypeid => {
header => 'Media Type', width => 165
},
genreid => {
header => 'Genre', width => 110
},
playlist_tracks => {
sortable => 0
},
milliseconds => {
hidden => 1
},
composer => {
hidden => 1,
no_quick_search => 1,
no_multifilter => 1
},
trackid => {
#allow_add => 1,
#allow_edit => 1
no_column => 1,
no_quick_search => 1,
no_multifilter => 1
},
},
},
}, # (TableSpecs)
}, # (DB)

0 comments on commit 203c84d

Please sign in to comment.