Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Get User name using user_id from cutom admin area grid
 
Hyder Ali
Jr. Member
 
Total Posts:  1
Joined:  2013-02-19
 

Need to get username using user_id from admin grid.

$this->addColumn(’user_id’, array(
‘header’ => Mage::helper(’affiliate’)->__(’Name’),
‘align’ =>’left’,
‘index’ => ‘user_id’,
));

Please help.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Siggi_Schmitz
Enthusiast
 
Avatar
Total Posts:  811
Joined:  2011-07-03
 

In which grid exactly do you want to add this column? When you have the user_id in this column but want the name, you have to add a own renderer which gets the id and returns the name.

example: http://inchoo.net/ecommerce/magento/how-to-add-custom-renderer-for-a-custom-column-in-magento-grid/

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top