public function render(Varien_Object $row)
 {
     $warehouseHistoryId = $row->getWarehouseHistoryId();
     $resource = Mage::getSingleton('core/resource');
     $readConnection = $resource->getConnection('core_read');
     $sql = 'SELECT distinct(`field_name`) from ' . $resource->getTableName("erp_inventory_warehouse_history_content") . ' WHERE (warehouse_history_id = ' . $warehouseHistoryId . ')';
     $results = $readConnection->fetchAll($sql);
     $content = '';
     foreach ($results as $result) {
         $content .= $result['field_name'] . '<br />';
     }
     return $content;
 }
 public function render(Varien_Object $row)
 {
     $warehouseHistoryId = $row->getWarehouseHistoryId();
     //        $url = $this->getUrl('inventoryadmin/adminhtml_warehouse/showhistory');
     return '<p style="text-align:center"><a name="url" href="javascript:void(0)" onclick="showhistory(' . $warehouseHistoryId . ')">' . Mage::helper('inventoryplus')->__('View') . '</a></p>';
     //                <script type="text/javascript">
     //                    function showhistory(warehouseHistoryId){
     //                        var warehouseHistoryId = warehouseHistoryId;
     //                        var url = "'.$url.'warehouseHistoryId/"+warehouseHistoryId;
     //                        TINY.box.show(url,1, 800, 400, 1);
     //                    }
     //                </script>
 }