Wednesday, April 07, 2010

g:select chooselist problems

class ProcessParamNames has the following fields:-
String id
String paramDesc
String displayName
ProcessParamType type





1. Note the single quotes for the argument of findAll so that the from double-quotes do not break
2. Note the use of findAll instead of findAllByType or findWhere since it belongsTo another table

1. Cannot use ProcessParamNames.findAllByType('PID') since there is no such method accepting String as input
2. Cannot use ProcessParamNames.findAllWhere(type:'PID') for the same reason

No comments:

Post a Comment

Thank you for your feedback