I am working on this, I will let you know something soon.

Jacopo

On Jan 22, 2015, at 8:45 AM, i...@agentur-m3.de wrote:

> A test of Groovy DSL turned out an error
> due to unknown function select:
> 
> import java.util.ArrayList;
> import javolution.util.FastList;
> 
> import org.ofbiz.base.util.Debug;
> import org.ofbiz.base.util.UtilProperties;
> import org.ofbiz.base.util.UtilHttp;
> import org.ofbiz.base.util.UtilMisc;
> import org.ofbiz.base.util.UtilNumber;
> 
> import org.ofbiz.entity.condition.*
> import org.ofbiz.entity.Delegator.*;
> import org.ofbiz.entity.GenericEntity;
> import org.ofbiz.entity.GenericEntityException;
> import org.ofbiz.entity.GenericValue;
> import org.ofbiz.entity.util.*;
> 
> import org.ofbiz.service.DispatchContext;
> import org.ofbiz.service.ModelService;
> import org.ofbiz.service.ServiceUtil;
> 
> import org.ofbiz.service.engine.*;
> 
> def newRecord(context, conceptJSON, chiffre) {
> 
>  logInfo("chiffre in newRecord " + chiffre);
> 
>  GenericValue chiffreID =
>  select().from('conceptPerson').where(conceptChiffre,
>  '1234').queryOne()
> 
> }
> 
> 
> It shows the error message:
>  "Request ajaxSaveChiffreData caused an error with the following
>  message: groovy.lang.MissingMethodException: No signature of method:
>  ajaxCalls.select() is applicable for argument types: () values: []  "
> 
> Do I have to import some additional classes?
> Other functions like
> makeValue("...")
> or
>    newItem.store();
> 
> seem to work. So it seems no to be the problem,
> that DSL would be completely unavailable.
> 

Reply via email to