Sunday, February 16, 2014

AOT Query - Set range using "variables"


If you want to set variable ranges on AOT query, you can use SysQueryRangeUtil class. You can use existing methods there or create your own.

For example, if I have an AOT query with PurchLine as datasource. Then I can add a Range to createdDateTime field with value:


I will only see PurchLine from the past 50 days relative to the session date.

When using SysQueryRangeUtil methods, there should be outer brackets enclosing the method itself.

That's it!

1 comment:

$potm@n said...

Thanks Bro... I've been messing with the ranges for so long.. i didn't know about the brackets