How to get one element record to another element in orchard

Topics: General
Oct 19, 2015 at 10:05 AM
Edited Oct 19, 2015 at 4:07 PM
I have 2 elements, one is Element1 and 2nd one is Element2, and i have saving some data's in element1 and i need to fetch that data to Element2. How can i do that?
Oct 20, 2015 at 11:30 AM
It depends on at which point you need this data. If you have an object tree of elements, you could search for the element you need. One problem however is that elements don't have identifiers (could be a feature request if there isn't one already).

If you need to access a particular element during the Display event of an element (handled by its driver) then you're out of luck, because the display context doesn't provide access to the object tree of elements. This could be another feature request too.

Perhaps there's another way to solve your issue. Could you tell a little bit more about your use case scenario?