Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OrderBy #69

Closed
DaveyGiesen opened this issue Sep 3, 2016 · 1 comment
Closed

OrderBy #69

DaveyGiesen opened this issue Sep 3, 2016 · 1 comment

Comments

@DaveyGiesen
Copy link

How can use the OrderBy ODATA function in a filter() request?

@DaveyGiesen
Copy link
Author

Ah fixed it. For other users. You need to create a array in the in the filter() request.
Example:
$lines->filter('OrderID eq guid\'' . $salesorder['OrderID'] .'\'', '', '', array('$orderby' => 'LineNumber'));
One note. You need to change this in Findable.php at the filter function.
array_merge($system_query_options, $request); to
array_merge($request, $system_query_options);
OrderBy needs to be after the request and not before.

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

No branches or pull requests

1 participant