ChicagoKiwi wrote:
Otis wrote:
Relations are based on entity definitions, and thus not on data. Your semantic relations are not supported. (and also not possible in a single SQL statement)
It is possible with a cross join:
select id, name, otherinfo
from project
cross join mapping
where name like 'blah%'
and entityname = 'Project'
This gives me the results I want, and I'd like, if possible, to replicate this using LLBL, rather than having to resort to some other mechanism to get the data.
Hmmm. Cross joins aren't implemented (will be in June) as they're rarely used. the point with crossjoins is that they produce an enormous amount of data and you then filter out just a little bit from them.
But I don't understand your query. Wasn't it the problem that the TABLE to join with was stored inside 'mapping' ? If not, you can of course join it via an inner join:
select id, name, otherinfo
from project
inner join mapping
ON 1=1
where name like 'blah%'
and entityname = 'Project'
where ON 1=1 (or other always true filter) is added as a CustomFilter to the relation, when adding the relation (define one, doesn't matter if you don't use it in that fashion, you can create one in code if you like) and you specify true for EntityRelation.CustomFilterReplacesOnClause so that the filter has to replace the ON clause.