Lookup filter on sku grid list
Posted: Fri Aug 14, 2015 6:08 am
Hi all,
We are developing custom module on Broadleaf GA3.1.12
That module support admin to select sku items from the grid list insded the enityform.
Those items should be filtered based on some our rule.
We follow tutorial at http://www.broadleafcommerce.com/docs/c ... list-grids to develop a custom persistence handler which its override canHandleFetch as below
@Override
public Boolean canHandleFetch(PersistencePackage persistencePackage) {
String ceilingEntityFullyQualifiedClassname = persistencePackage.getCeilingEntityFullyQualifiedClassname();
try {
Class testClass = Class.forName(ceilingEntityFullyQualifiedClassname);
return Sku.class.isAssignableFrom(testClass);
} catch (ClassNotFoundException e) {
return false;
}
}
But it seems to be the framework does not call that method in case we press the lookup to show up the sku gird list.
Please help us to solve it out.
Thanks,
Tony
We are developing custom module on Broadleaf GA3.1.12
That module support admin to select sku items from the grid list insded the enityform.
Those items should be filtered based on some our rule.
We follow tutorial at http://www.broadleafcommerce.com/docs/c ... list-grids to develop a custom persistence handler which its override canHandleFetch as below
@Override
public Boolean canHandleFetch(PersistencePackage persistencePackage) {
String ceilingEntityFullyQualifiedClassname = persistencePackage.getCeilingEntityFullyQualifiedClassname();
try {
Class testClass = Class.forName(ceilingEntityFullyQualifiedClassname);
return Sku.class.isAssignableFrom(testClass);
} catch (ClassNotFoundException e) {
return false;
}
}
But it seems to be the framework does not call that method in case we press the lookup to show up the sku gird list.
Please help us to solve it out.
Thanks,
Tony