Author Message
jebert
Joined: Apr 21, 2017
Messages: 1
Offline
Does anyone know how to use common database functions in AAOD as part of a SQL predicate? I am trying to use SQL Server's GETDATE() function as a part of my WHERE clause. Any help would be appreciated!

Thanks
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
The Predicate tab does not support specifying any function. However, you can modified the resulted sql statement the generated java file. You would find the sql statement in the constructor method of the Java class. You can modify the line starting with "setSQLQuery", and put it below the "//}}END:CLASS:CONSTRUCTOR" to avoid getting overwritten
Go to:   
Mobile view