I installed my mod successfully. right now its more skeleton code then anything. If I go to the index of my module, I get the following error
in my metadata folder I have a file called listviewdefs.phpCode:You do not have access to this area. Contact your site administrator to obtain access.
within it i have
vardefs.php is located at the root of my moduleCode:<?php $listViewDefs['Wowproducts'] = array( 'PRODUCT_NAME'=>array( 'width'=>'32', 'label'=> 'LBL_PRODUCT_NAME', 'default' => true, 'link'=>true ), 'PRICE'=>array( 'width'=>'32', 'label'=> 'LBL_PRODUCT_PRICE', 'default' => true, 'link'=>true ), );
I already rebuilt my modulesCode:<?php $dictionary['Wowproducts'] = array( 'table' => 'wowproducts', 'audited' => true, 'fields' => array( 'product_name'=>array( 'name' => 'product_name', 'vname'=> 'LBL_PRODUCT_NAME', 'type'=> 'varchar', 'len'=> '255', ), 'price'=>array( 'name' => 'price', 'vname'=> 'LBL_PRODUCT_PRICE', 'type'=> 'int', ), ), ); require_once('include/SugarObjects/VardefManager.php'); VardefManager::createVardef('Wowproducts', 'Wowproduct',array('basic','assignable'));


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks