You have to pass fieldToSelect as an Set, Use UtilMisc.toSet("field"); e.g Set<String> fieldToSelect = UtilMisc.toSet("field");
Thanks & Regards -- Deepak Dixit HotWax Media Pvt. Ltd. www.hotwaxmedia.com Contact :- +91-98267-54548 Skype :- deepakdixit On Jul 2, 2012, at 3:42 PM, Robert G. wrote: > Hey, I tried to use this method: > > /public List<GenericValue> findList(String entityName, EntityCondition > entityCondition, Set<String> fieldsToSelect, List<String> orderBy, > EntityFindOptions findOptions, boolean useCache) throws > GenericEntityException;/ > > Now I understood, that I can choose the columns of the database table which > I wanna get with: > Set<String> fieldsToSelect > > is that right? but how do the Set does have to look? I checked the java API > ref, but couldnt find an example. If I just give a string (name of the > column) to the method, I get an error. > > please help me on that. > > Thank you. > > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/get-random-entries-from-entity-field-tp4634190p4634321.html > Sent from the OFBiz - User mailing list archive at Nabble.com.
smime.p7s
Description: S/MIME cryptographic signature