OData $filter with items in a $expand

The query you’ll need to write depends on the cardinality of the expanded collection. Here are some examples that use the public sample OData Northwind service, provided by odata.org. An order is always done by exactly one customer. Find the orders made by a customer with a specific name: http://services.odata.org/V3/Northwind/Northwind.svc/Orders?$expand=Customer&$filter=Customer/CompanyName eq ‘Vins et alcools Chevalier’. … Read more

odata – combining $expand and $select

After going through a lot of time on this, I finally got the answer. We can nest select within expand using ; as a separator, something like odata/Products(8)?$expand=choices($select=col1,col2;$expand=item($select=name)) This is documented in the OData v4 $expand documentation. The documentation also lists other useful examples such as Categories?$expand=Products($filter=DiscontinuedDate eq null) Categories?$expand=Products/$count($search=blue)

AutoExpand treeview in WPF

You can set ItemContainerStyle and use IsExpanded property. <Page xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml”> <Grid> <TreeView> <TreeView.ItemContainerStyle> <Style TargetType=”{x:Type TreeViewItem}”> <Setter Property=”IsExpanded” Value=”True”/> </Style> </TreeView.ItemContainerStyle> <TreeViewItem Header=”Header 1″> <TreeViewItem Header=”Sub Item 1″/> </TreeViewItem> <TreeViewItem Header=”Header 2″> <TreeViewItem Header=”Sub Item 2″/> </TreeViewItem> </TreeView> </Grid> </Page> If you need to do this from code, you can write viewmodel for your … Read more

Is there way to expand all folders in Eclipse project view and search results?

In Windows: Expand all all in project explorer is Shift+Numpad * (multiplty), as mentioned before. Collapse all in project explorer is Ctrl+Shift+Numpad – (subtract). Alternatively, you can just jam on the right arrow to expand to the bottom of a selected tree, or jam on the left arrow to collapse back up to the top. … Read more

Expand and give focus to SearchView automatically

You can also call to expandActionView() method in order to force it: @Override public boolean onCreateOptionsMenu( Menu menu ) { super.onCreateOptionsMenu( menu ); MenuItem searchMenuItem = menu.findItem( R.id.mi_search ); // get my MenuItem with placeholder submenu searchMenuItem.expandActionView(); // Expand the search menu item in order to show by default the query return true; } Search … Read more