My goal is when i click on tt1 that the ID number on that row will set the filtering on tt2 to show only events with that ID #
Question 1: on-focus only deals with the first click on that whole face, so it's the wrong actor. Do i need to modify the actor of an individual row? or am I just using the wrong actor? If I change on-focus to on-click it results in no print statements.
Question 2: I'm unsure how to set the filter for tt2. If I try (stole this code from probing the facet):
tt1: text-table 600x400 ["ID" #1 70 "Last Name" #2 200 "Given Name" #3 200 ] ind on-action [ filter: first pick get-facet face 'table-data arg/y ; set the filter on the table here draw-face tt2 ]
In the Saphirion docs, there is this docs\specs\styles\text-table but it's not very helpful
Josh
On the r3-gui changelog I found Under 10-Mar-2012:
TEXT-TABLE: Can set filters using [set-face/field table filters]
Yeah, i've been reading and re-reading that
GrahamC
Well, have to ask Rebolek .. he wrote the text-table
reading the docs, I would have thought
get-facet face 'row
would work too but that returns none for me
Josh
Dug through r3-gui.r and found this:
do-actor tt2 'on-filter-data [1 [value = 1]]
which seems to work
though I have not the faintest what it is really doing