Hi,
I have a question regarding the method KKEngIf.getAllManufacturers() or ProductMgr.getAllManuArray().
These functions are returning only a subset of manufacturers in my case.
I'm testing it with 270 manufacturers and only the first 100 are returned.
In the konakartadmin, kk_panel_manufacturers is also showing only the first 100.
Is there a way to circumvent this limit? Or am I missing something?
Thank's in advance, Salbeiwurzeln :)
Try using the following API call instead
/**
* Returns an array of Manufacturer objects that match the specified search criteria in the
* ManufacturerSearch object. It allows you to search for:
* <ul>
* <li>Manufacturers with a specific name</li>
* <li>A manufacturer by id</li>
* <li>The manufacturer of a product from the product id</li>
* <li>The manufacturers for all products within a category, from the category id</li>
* </ul>
* <p>
* <code>dataDesc</code> controls the following functionality:
* <ul>
* <li>The maximum number of Manufacturer objects returned.</li>
* <li>The offset which defaults to zero. This is useful when there are many Manufacturer
* objects, in order to return them using multiple calls to this method.</li>
* <li>Criteria on the custom attributes. If a custom attribute is set then only manufacturers
* with a matching custom attribute value are returned.</li>
* <li>The Manufacturers may be sorted by :
* <ul>
* <li>com.konakart.app.DataDescConstants.ORDER_BY_NAME_ASCENDING</li>
* <li>com.konakart.app.DataDescConstants.ORDER_BY_NAME_DESCENDING</li>
* <li>com.konakart.app.DataDescConstants.ORDER_BY_CUSTOM1_ASCENDING</li>
* <li>com.konakart.app.DataDescConstants.ORDER_BY_CUSTOM1_DESCENDING</li>
* <li>com.konakart.app.DataDescConstants.ORDER_BY_CUSTOM2_ASCENDING</li>
* <li>com.konakart.app.DataDescConstants.ORDER_BY_CUSTOM2_DESCENDING</li>
* <li>com.konakart.app.DataDescConstants.ORDER_BY_CUSTOM3_ASCENDING</li>
* <li>com.konakart.app.DataDescConstants.ORDER_BY_CUSTOM3_DESCENDING</li>
* <li>com.konakart.app.DataDescConstants.ORDER_BY_CUSTOM4_ASCENDING</li>
* <li>com.konakart.app.DataDescConstants.ORDER_BY_CUSTOM4_DESCENDING</li>
* <li>com.konakart.app.DataDescConstants.ORDER_BY_CUSTOM5_ASCENDING</li>
* <li>com.konakart.app.DataDescConstants.ORDER_BY_CUSTOM5_DESCENDING</li>
* </ul>
* </li>
* </ul>
*
* @param dataDesc
* The data descriptor object that defines the sort order, constraints on custom
* fields and offset and limit for paging.
* @param search
* The Manufacturer search object that defines the search criteria
* @param languageId
* The language id is used for language specific attributes of the manufacturer such
* as the URL.
* @return Array of Manufacturer objects
* @throws KKException
*/
public ManufacturerIf[] getManufacturers(DataDescriptorIf dataDesc,
ManufacturerSearchIf search, int languageId) throws KKException;
For the Admin App it's explained in the online help where to configure those parameters that limit the number of manufacturers returned.