<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Chad,<br>
<br>
I wonder if you would benefit from this patch [1] which moves the
server filtering methods out of DataTableView and into
MultiTableMixin. There is also another patch [2] dependent on this
that moves the Images table into a tab, which sounds similar to what
you're doing.<br>
<br>
[1] <a class="moz-txt-link-freetext" href="https://review.openstack.org/217020">https://review.openstack.org/217020</a><br>
[2] <a class="moz-txt-link-freetext" href="https://review.openstack.org/218773">https://review.openstack.org/218773</a><br>
<br>
- Justin<br>
<br>
<div class="moz-cite-prefix">On 1/8/16 9:10 AM, Chad Roberts wrote:<br>
</div>
<blockquote
cite="mid:CAF5wcTatSTEaw1vN+vsLe5ywcAanNGw_r4PzmTQxs+nzVunc7g@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>I'm working on streamlining the Sahara UI by reducing the
number of panels and organizing them into tabs rather than
individual panels. I've come across the following sticking
point. Hopefully, someone can lend a hand.<br>
<br>
I now have a group of tabs in a TabbedTableView (each tab is a
TableTab). Some of these tables have a FilterAction that is
of type "server" with a set of field choices. The filtering
worked nicely when they were not in a TabbedTableView (just a
regular DataTableview). However, the filtering no longer
works in the TabbedTableView.<br>
<br>
In my TableTab class, I defined the
get_<table_name>_data method, but I have no natural way
to do the filtering there (unless I hack a fair bit to get the
passed-in filters by hacking up a version of
"get_server_filter_info"...which I have done). The problem
remaining is that after I filter, the values of the field
choice and the filter are not retained (they get reset to
<blank>).<br>
<br>
</div>
I'm still digging through how the FilterAction bits work in a
non-tabbed view, but it seems like something is lacking in the
base classes. Of course, I'd prefer to have someone say, "duh,
just do it like this".<br>
<div>
<div><br>
Does this ring a bell for anyone?<br>
<br>
</div>
<div>Thanks,<br>
</div>
<div>Chad<br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: <a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>