I was wondering if someone has successfully used the InventoryLevelDerivation method in sku item-descriptor, I'm trying to do something like this:
<property name="inventoryLevel" repository="/atg/commerce/inventory/InventoryRepository">
but it's not working at all,
I have tried without the repository attribute and also trying to send the sku id but no success at all, any suggestions?
It seems this one is working:
<property name="inventoryLevel" data-type="long" writable="false" readable="true" category-resource="Info">
But still, I'm getting an UnsupportedFeatuerException, anyone knows what could be causing this exception?
If you refer to the API docs for atg.commerce.dp.InventoryLevelDerivation here:
Some methods are clearly mentioned to be as not supported. Based on all that I think derivePropertyValue(java.lang.Object pBean) and createQuery(..) methods are the most likely ones which can probably throw UnsupportedFeatuerException. See if your exception stack-trace contains any of these. I am not sure but you can try to add the attribute queryable="false" within your property declaration and see if it helps in avoiding UnsupportedFeatuerException.
Edited by: Nitin Khare on Nov 14, 2012 10:20 AM