Checking for an empty association

3
Hi, does anybody know how to check to see if an association is empty using an xpath constriant? so retrieve a list of objects where there is no link to an association I am currently trying the below but it gives an error: ExampleModule.Entity1_Entity2 = empty
asked
4 answers
10

E.g.

//System.User

[not(System.UserRoles/System.UserRole)]

 

answered
4

Try:

not(Entity1_Entity2)

 

Hope this helps!

answered
2

Thanks both! this worked great

answered
0

Doesn't work with Studio 10:

[not(LiDATInterface.FileListLink_Machines)]

 

gives:

Invalid argument types (Object). Function 'not' expects argument types (Boolean)

 

answered