Note that there are some explanatory texts on larger screens.

plurals
  1. POknockout - having slight issue with filtering my data
    primarykey
    data
    text
    <p><strong>Edit:</strong> I think the problem is in my self.providers = ko.computed(), I'm overwriting my providers array on the filter button click;</p> <p>I've two fiddles up, both have everything in the HTML pane as I'm developing everything locally and it's just easier to copy/paste the entire file into jsfiddle rather than break it out.</p> <p>I also have stubbed in a rather large dummy data object. <strong>This starts at line 110, so if you copy/paste/run it locally on your end, you'll definitely want an editor that can minimize that data object</strong>!</p> <p>First fiddle is at <a href="http://jsfiddle.net/82cK7/" rel="nofollow">http://jsfiddle.net/82cK7/</a> and seems to work fine, but it's "live" filtering. I just started with the provider name filtering, then added the jquery UI datepicker for date filtering as well. This will filter the data table when you change anything up in the green filter area.</p> <p>Pertinent code here is <strong>self.filterClaims</strong> at <strong>line 196</strong></p> <p>Second fiddle is at <a href="http://jsfiddle.net/tq8zc/" rel="nofollow">http://jsfiddle.net/tq8zc/</a> and doesn't quite work right. The filtering here doesn't kick in until you click the "filter" button (this is the behavior I really want). It filters the table, but it also blows out my <strong>self.providers</strong> which generates a unique list of provider names for that select/dropdown. So, before you filter this, you have a list of multiple provider names. After you filter, you only have the provider you selected before you hit "filter".</p> <p>Pertinent code here is <strong>self.claimsFiltered</strong> at <strong>line 166</strong></p> <p>I feel like I'm missing something pretty obvious and was wondering if I can get a set of other eyes looking at the code.</p> <p>Thanks much for any help!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload