how to apply filters to the relationship table?

A place for users and developers of the Xataface to discuss and receive support.

how to apply filters to the relationship table?

Postby kevinwen » Thu Jan 14, 2010 5:10 pm

Now I have 2 tables: A and B, and I have a couple of filters to be used in Table B. Is that possible? My code is as follows:

table_a/relationships.ini:
Code: Select all
[Captures]
__sql__ = "seelct * from table_b where ref_id = '$ref_id' "



table_a/fields.ini:
Code: Select all
[category_name]
widget:label = "Category"
widget:type = hidden
visibility:list = hidden
visibility:browse = hidden
group = categories
filter = 1
order = 5

[subcategory_name]
widget:label = "Subcategory"
widget:type = hidden
visibility:list = hidden
visibility:browse = hidden
group = categories
filter = 1
order = 7


So, How do I define the filters above in table_b's fields.ini? Is that possible?
kevinwen
 
Posts: 109
Joined: Mon Dec 28, 2009 3:44 pm

Re: how to apply filters to the relationship table?

Postby shannah » Thu Jan 14, 2010 10:20 pm

So are you wanting these filters to show up on the related records tab for your relationship? This feature isn't available currently. It sounds like a good feature though.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: how to apply filters to the relationship table?

Postby kevinwen » Thu Jan 14, 2010 11:25 pm

Yes, exactly. I want these filters to show up on the related records tab just next to view/edit and before history tab (if enabled). However, can you tell me how do the filters work? Can you point it out in the code where actually do the filtering? Thanks.
kevinwen
 
Posts: 109
Joined: Mon Dec 28, 2009 3:44 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 25 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved