[%CurrentObject%] and Nested Data Issues

3
I have Object A related to Object A1 related to Object B which is also related to object C I have a Form With Object A in a Dataview and within the Dataview(Nested) is a Datagrid of Object C On the Datagrid i use the contraint to drill down from Object C to Object B to Object A1 to Object A and check if it is equal to the Current Object '[%CurrentObject%]' in the form . I am presuming '[%CurrentObject%]' Picking up the Dataview Object A . Is that right ? because it doesnt seem to be working for me
asked
2 answers
3

Your presume is correct. In a datagrid constraint '[%CurrentObject%]' always refers to the dataview object where the datagrid is placed in.

Is there also a relation between object C and object A in your metamodel? Or is the description you give of your metamodel the full description? Because if you also draw a relation from C to A you have to set the context to private of het datagrid.

Are you sure that all relation are set? Can you explain what exactly is going wrong in your opinion? And what kind of relations you use (1-0, 0-1, n-0, 0-n, 1-1, n-n)

answered
2

Can you check in your datagrid what the property is of context action.
If that property is set to 'Reset' non of the context objects will be available, you reset the context which means there are no objects available to use as constraints. Therefore the client wont be able to find any 'CurrentObject'

Can you check if your 'CurrentObject' is not dropped from the context, This has the same effect as context action= 'Reset', the client won't be able to find the 'currentobject' which results in a server exception.

answered