Skip to content

Commit

Permalink
(3) - configured display_columns (TableSpecs)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanstyn committed Sep 12, 2013
1 parent aae6591 commit 68659f2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd_history.sh
Expand Up @@ -193,3 +193,9 @@ script/ra_chinookdemo_server.pl
# Configure joined columns
vim lib/RA/ChinookDemo.pm
Commit '(2) - example joined columns (grid configs)'
# Start the test server:
script/ra_chinookdemo_server.pl
#
# Set 'display_column' for Sources
vim lib/RA/ChinookDemo.pm
Commit '(3) - configured display_columns (TableSpecs)'
14 changes: 14 additions & 0 deletions lib/RA/ChinookDemo.pm
Expand Up @@ -34,6 +34,20 @@ __PACKAGE__->config(
include_colspec => ['*','albumid.artistid.*']
},
}, # (grid_params)
TableSpecs => {
Album => {
display_column => 'title'
},
Artist => {
display_column => 'name'
},
Genre => {
display_column => 'name'
},
MediaType => {
display_column => 'name'
},
}, # (TableSpecs)
}, # (DB)
}, # (configs)
}, # ('Plugin::RapidApp::RapidDbic')
Expand Down

0 comments on commit 68659f2

Please sign in to comment.