Skip to Content
0
Nov 23 at 02:38 PM

Smart filter bar entityset with params

63 Views Last edit Nov 23 at 02:39 PM 2 rev

Is it possible to type fields we want with entityset and get just them?

Current:
<smartFilterBar:SmartFilterBar entitySet="xdccsxcng_wicim" liveMode="true" filterBarExpanded="true" search="onWorkitemFilter" ><br>        <smartFilterBar:controlConfiguration><br>            <smartFilterBar:ControlConfiguration key="pos_desc" visibleInAdvancedArea="true" index="1"/><br>            <smartFilterBar:ControlConfiguration key="fiscal_year" visibleInAdvancedArea="true" index="2"/><br>        </smartFilterBar:controlConfiguration><br>    </smartFilterBar:SmartFilterBar>


For an example something like this: ( tried this )
<smartFilterBar:SmartFilterBar entitySet="{path: 'xdccsxcng_wicim', parameters: {$select: 'pos_desc,fiscal_year'}}" liveMode="true" filterBarExpanded="true" search="onWorkitemFilter" ><br>        <smartFilterBar:controlConfiguration><br>            <smartFilterBar:ControlConfiguration key="pos_desc" visibleInAdvancedArea="true" index="1"/><br>            <smartFilterBar:ControlConfiguration key="fiscal_year" visibleInAdvancedArea="true" index="2"/><br>        </smartFilterBar:controlConfiguration><br>    </smartFilterBar:SmartFilterBar>

This does not work. Any suggestion how to make it. 
I get to many fields from the back end which are not necessary for me.