I'm able to add fields from other modules in the Accounts advanced search as long as they are text fields. I've followed the instructions I've found in the Sugar forums and blogs, etc. I haven't been able to get the SQL query to work properly for enum fields. The possible values are showing up on the front-end, but in the query Sugar is adding an extra single quote to the beginning of the = clause and an N'% at the end so it ends up looking like this:
WHERE contracts_cstm.preferred_status_c = ''PREFN'%'
When I actually need:
WHERE contracts_cstm.preferred_status_c = 'PREF'
I found one forum post with a similar question, but no one has given a viable answer. Any help is much appreciated.


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks