
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2018 05:38 AM
Hi all,
I am working on a data table widget on the portal and in order to avoid causing confusion with removing the breadcrumbs via clicking the > I have made a "New search" button next to the search bar. I am trying to make this button remove the filter conditions that they have added onto the fixed condition that exists. Here is a screenshot for clarity:
I have inspected the > on the page to see what is being used to remove the filters which is seemingly the following line in the HTML:
ng-click="adjustFilter(crumb, true)"
However, when I add this to the HTML for the button, I am not getting any results. I am new to HTML and JavaScript so I'm sure there is a piece I am missing here (in the client script maybe?).
Reloading the page removes all of the filters. If possible, if I could just reload the widget only (not the whole page) and have the same result, that would suffice! However, I am also unsure of how to do that.
Any help with this is greatly appreciated!
Taylor
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2018 12:39 PM
I found a solution, I added this to the HTML of my button:
ng-click="clearSearch()"
And added this to my client script:
$scope.clearSearch = function(){
$scope.data.filter = c.data.storef;
$scope.setSearch(true);
};

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2018 12:39 PM
I found a solution, I added this to the HTML of my button:
ng-click="clearSearch()"
And added this to my client script:
$scope.clearSearch = function(){
$scope.data.filter = c.data.storef;
$scope.setSearch(true);
};