This is actually related to the SQL issue I posted about earlier (of course, once the SQL issue was fixed, another one arose).
Basically, I have a template selector that's supposed grab an element with a specific stereotype and then call another fragment that will run the following SQL query:
select p.Name as Property, p.Note as Description, v.Name as DataType, u.Value as Unit
from t_object as s, t_object as p, t_object as v, t_objectproperties as u
where p.ParentID = s.Object_ID and v.ea_guid = p.PDATA1 and u.Object_ID = p.Object_ID and u.Property = 'unit'
Now, for the template selector I'm using the type signal and a special stereotype for each element (to generate a table for each element at different parts of the auto-generated document). So let's say the selector statement looks like this:
Signal:S1:TableFragment
Then I have a template that calls the template selector.
Now, when I run the template, the selector grabs the proper element and generates the proper table... and then keeps going with a bunch of other elements (basically, it seems to be grabbing random parts from other signals in the project and placing them in the table). I've added SQL statements to display the package names and parent names of the additional elements, and they aren't child packages or child elements of what I'm originally running the reports on. In fact, even if I run the generator on the one package that (only) contains the element I'm trying to run the report on, for some reason the table keeps adding stuff from other packages and elements. I've even tried moving all of the parts out of the signal, deleting the signal, and then recreating it from scratch, and I still get the same issue. Then I tried moving all of the parts of the signal and running the report again: this time none of the parts that I wanted in the table were there (as they shouldn't have been as I moved them out of the signal), but all of the extraneous stuff was still there.
I also tried adding the SQL statement s.Name = "NameoftheElement" and abandoning the selector, but then the table generated itself repeatedly for 364 pages.
Any idea on what might be happening here?