You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

appendViewCriteria giving error

Received Response
11
Views
2
Comments
edited Oct 13, 2020 2:11PM in Sales 2 comments

Summary

Trying to set filter condition in appendViewCriteria but it gives error

Content

I have Cascade_c as a NUMBER field in account object and tried to filter the records in groovy based on that attribute. Below is my code

def OrgView = newView('OrganizationProfile')
OrgView.appendViewCriteria("Cascade_c = 1")

OrgView.executeQuery()

But it gives an error as oracle.jbo.expr.JIMultipleSyntaxErrors Failed to build ViewCriteria from expression "Cascade_c = 1" 

Any idea what went wrong in this script?

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!