Hi All,
I am using sap.m.Input in my application. I am trying to offer assisted tabular suggestions for the field. The columns in the suggested columns are Project ID, Project Description, Portfolio ID and Program ID. But currently the suggestions are offered i.e., the user is able to search only w.r.t. the only Project ID. How do I implement custom suggest to offer suggestions even when the user types in Project Description or Portfolio ID or Program ID. The code goes as follows.
<Input id="iMasterSearchInput" type="Text" startSuggestion="1"
suggest="handleInputSuggest" suggestionItemSelected=""
placeholder="Search Portfolios, Programs, Projects" showSuggestion="true"
suggestionRows="{
path: 'oDataModel>/d/results'
}">
<suggestionColumns>
<Column hAlign="Begin" popinDisplay="Inline" demandPopin="true">
<Label text="Project" />
</Column>
<Column hAlign="Center" popinDisplay="Inline" demandPopin="true"
minScreenWidth="Tablet">
<Label text="Project Description" />
</Column>
<Column hAlign="Center" popinDisplay="Inline" demandPopin="false"
minScreenWidth="Tablet">
<Label text="Portfolio" />
</Column>
<Column hAlign="End" popinDisplay="Inline" demandPopin="true">
<Label text="Program" />
</Column>
</suggestionColumns>
<suggestionRows>
<ColumnListItem>
<cells>
<Label text="{path: 'oDataModel>A2ZPRJCT_ID'}" />
<Label text="{path: 'oDataModel>A1ZPRJCT_ID'}" />
<Label text="{path: 'oDataModel>A2ZPRJCT_ID__ZPRTFL_ID'}" />
<Label text="{path: 'oDataModel>A2ZPRGRM_ID'}" />
</cells>
</ColumnListItem>
</suggestionRows>
</Input>
Thanks
Maruthi