# Copyright (c) 2001-2005 bivio Software, Inc. All rights reserved. # # Visit http://www.bivio.biz for more info. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; If not, you may get a copy from: # http://www.opensource.org/licenses/lgpl-license.html # # $Id: products.bview,v 2.1 2005/08/10 15:32:53 nagler Exp $ # # Product list # view_parent('menu'); view_put( header_title => 'Product Category', # use the category from the first item in the list menu_heading => String( [['Model.ProductList', '->set_cursor_or_die', 0], 'Product.category_id'], ), menu_content => Table('ProductList', [ 'Product.product_id', ['Product.name', { wf_list_link => { query => 'THIS_CHILD_LIST', task => 'ITEMS', }, }], # For example, add a column by uncommenting this line. # Must exist in Model.ProductList. # 'Product.description', ], { cellpadding => 2, cellspacing => 2, }), );