• Welcome to KonaKart Community Forum. Please login or sign up.
 

datadescriptorif.setOrderBy do not work,

Started by Sony George, May 23, 2010, 06:34:29 pm

Previous topic - Next topic

Sony George

Dear All,

in AdvancedSearchSubmitAction.java, is the following code

            /*
             * Get the current dataDescriptor from the productMgr and add a constraint on a custom
             * field if the field has been set. Then set the dataDescriptor.
             */
            DataDescriptorIf dd = kkAppEng.getProductMgr().getDataDesc();
            if (spf.getCustom1() != null && spf.getCustom1().length() > 0)
            {
                dd.setCustom1(spf.getCustom1());
            } else
            {
                dd.setCustom1(null);
            }
            kkAppEng.getProductMgr().setDataDesc(dd);


I added the following code just before setting the data desc object
dataDescriptor.setOrderBy(DataDescConstants.ORDER_BY_DATE_ADDED);

dataDescriptor.setOrderBy(DataDescConstants.ORDER_BY_DATE_ADDED);
            kkAppEng.getProductMgr().setDataDesc(dd);


but do not see any change, always konakart search order by price only,
how can i set my order by constraint ??

Regards

Sony George

Sony George

Dear KonaKart Team,

Do i have any hope regarding this ??

regards

Sony