Greetings,
We have a requirement in our MDK app to populate the search result data from OData service in a tabular list format. The list will loaded/visible with search result only after the user enters some text(we have given minimum character threshold) and hit the search button. Very much similar with the functionally which is present for selecting the managed tags while posting any question in this community.
Currently we are using 'Object Table' to list the data, with 'Search enabled' and using a dummy OData service to check the feasibility. Going with this implementation the search functionality is working more as filter to the already populated data, from OData service.
We seek your advise on how to hide the list when there is no user search input, and show list the data only after having result coming filtered by the valid search query. Also how we can get the search keyword entered by user and check for validation before using it for calling the services.
I am attaching the current code below for reference. Please advise if there is any alternate approaches/controls we can use to achieve the same functionality.
{ "Controls": [ { "_Type": "Control.Type.SectionedTable", "_Name": "SectionedTable0", "Sections": [ { "_Type": "Section.Type.ObjectTable", "Target": { "EntitySet": "UserSubscribedCategory", "QueryOptions": "/SocialAtSAP_MDK/Rules/Utilities/GetUserIdFilter.js", "Service": "/SocialAtSAP_MDK/Services/SocialAtSAP_UserSpecific.service" }, "_Name": "SectionObjectTable0", "Visible": true, "EmptySection": { "FooterVisible": false }, "ObjectCell": { "Title": "{CategoryName}", "Subhead": "{Description}", "DetailImageIsCircular": false, "PreserveIconStackSpacing": true, "AccessoryType": "none", "Selected": false, "ContextMenu": { "Items": [ ], "PerformFirstActionWithFullSwipe": true } }, "Search": { "Enabled": true, "Placeholder": "Type here...", "Delay": 500, "MinimumCharacterThreshold": 3 }, "DataPaging": { "LoadingIndicatorText": "", "PageSize": 20, "ShowLoadingIndicator": false }, "HighlightSelectedItem": false, "Selection": { "ExitOnLastDeselect": false, "LongPressToEnable": "None", "Mode": "None" } } ] } ], "_Type": "Page", "_Name": "UserSearchList", "Caption": "UserSearchList" }