Page 1 of 1

adding custom field in ListGrid

Posted: Wed Jul 29, 2015 4:42 am
by ukyo
Hi all,

In admin site, when i navigate to Catalog -> Categories from left pane i see all categories shown in right pane.
Now, I want to show a new column '# of Products' in ListGrid. This field does not persisted in my category entity in DB(attached image).

How to do that?

Thanks,

adding custom field in ListGrid

Posted: Tue Aug 04, 2015 3:51 am
by AlexKotovmi
Adding a required field on the create new listing page I would like to add a brand new field at the top of the new listing page. Is this possible? Custom form is not the solution for me. Thanks, Luke

Re: adding custom field in ListGrid

Posted: Tue Aug 11, 2015 10:13 pm
by tuonglx
ukyo wrote:Hi all,

In admin site, when i navigate to Catalog -> Categories from left pane i see all categories shown in right pane.
Now, I want to show a new column '# of Products' in ListGrid. This field does not persisted in my category entity in DB(attached image).

How to do that?

Thanks,



You can override the method AdminCategoryController.viewEntityList. In this method after you have ListGrid
ListGrid listGrid = formService.buildMainListGrid(drs, cmd, sectionKey, crumbs);
you can add more Field to header, and add Field with value to each record.

Adding custom field in Admin User in Version 4.0.0

Posted: Sun Sep 13, 2015 3:38 pm
by Shree
Hi all,


I am using latest updated Broadleaf 4.0.0 version.
In admin site, I want to add new additional field "User Type" while adding new user.
Can we alter predefined "BLC_ADMIN_USER" table and add new column "USER_TYPE".?

How do i achieve this?

Please help....

Re: adding custom field in ListGrid

Posted: Tue Sep 15, 2015 8:33 am
by phillipuniverse
Yes, just extend the AdminUser entity and add your new column just like http://www.broadleafcommerce.com/docs/c ... s-tutorial