Groovy DSL

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Groovy DSL

info@agentur-m3.de
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 | Threaded
Open this post in threaded view
|

Re: Groovy DSL

Pierre Smits
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, [hidden email] <[hidden email]>
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 | Threaded
Open this post in threaded view
|

Re: Groovy DSL

Jacopo Cappellato-4
In reply to this post by info@agentur-m3.de
I am working on this, I will let you know something soon.

Jacopo

On Jan 22, 2015, at 8:45 AM, [hidden email] 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.
>