Page 1 of 1

Auto Fetch Data in DynamicEntityListView

Posted: Mon Mar 11, 2013 11:48 pm
by julia
Hello,

I would like to fetch all data from database without using filter button in the broadleaf modules. Actually I don't want to extend all of broadleaf modules because of this problem. Is there any easy way to fetch all data from database?

julia.

Re: Auto Fetch Data in DynamicEntityListView

Posted: Tue Mar 12, 2013 11:52 am
by phillipuniverse
Unfortunately you would have to extend all of the BLC modules as well as each individual view (CategoryView, OneToOneProductSkuView, etc) in order to support this. Each view would look something like this:

Code: Select all

public AutoFetchProductView extends OneToOneProductSkuView {
    public 
void build(DataSource entityDataSourceDataSource... additionalDataSources) {
        
super.build(entityDataSourceadditionalDataSources);
        
listDisplay.getGrid().setAutoFetchData(true);
    }
}