Skip to content

Conversation

@tschettler
Copy link
Contributor

Adding a function to extend the funcMap defined in FnExpr within the Predicate scope. This function is modeled after extendBinaryPredicateFn, This will allow adding functions that are available in OData 4, but that breeze does not have defined.

For example, after adding a date function to the funcMap:
var predicate = new breeze.Predicate("date(startDate)", "eq", dateValue);

The workaround for this would be to use a pass-thru predicate:
var predicate = new breeze.Predicate("date(startDate) eq " + dateValue);

@tschettler tschettler changed the title Added extendFuncMap to Predicate. Add extendFuncMap to Predicate. Aug 31, 2017
@tschettler tschettler changed the title Add extendFuncMap to Predicate. Add extendFuncMap to Predicate Aug 31, 2017
@tschettler tschettler force-pushed the extend-funcMap branch 2 times, most recently from 2859706 to bc2c7b6 Compare March 9, 2018 20:16
@steveschmitt
Copy link
Member

Thanks for this. Can you add it to the breeze-client repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants