You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by "info@agentur-m3.de" <in...@agentur-m3.de> on 2015/01/22 08:45:40 UTC

Groovy DSL

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.


Re: Groovy DSL

Posted by Jacopo Cappellato <ja...@hotwaxmedia.com>.
I am working on this, I will let you know something soon.

Jacopo

On Jan 22, 2015, at 8:45 AM, info@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.
> 


Re: Groovy DSL

Posted by Pierre Smits <pi...@gmail.com>.
Hi Info,

If you feel that this constitutes a bug, feel free to create a JIRA issue.

Best regards,

Pierre Smits

*ORRTIZ.COM <http://www.orrtiz.com>*
Services & Solutions for Cloud-
Based Manufacturing, Professional
Services and Retail & Trade
http://www.orrtiz.com

On Thu, Jan 22, 2015 at 8:45 AM, info@agentur-m3.de <in...@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.
>
>