Boolean
-
8/23/2012 5:30:41 PM
Access data in transformation from registered control
Hi guys
I have a bit of a strange setup and I can't seem to get it to work.
I have a datasource on my portal page which pulls in several records from a path in the cms tree. I then have a basic repeater (let’s call it RepeaterBlue) pointing to that datasource which uses a transformation to display the data (Title, Date etc.). Pretty standard stuff.
I then have a control I want to register in that transformation, a webpart that is a physical file, which is more or less a nested repeater. I register my control, but when I try to access CMSContext.CurrentDocument.GetValue("EventID"), I get the EventID of the page that *has* the datasource, not the page RepeaterBlue is looking at. RepeaterBlue's transformation gets all the data correctly (ie. I can access the Eval properties in the transformation just fine), but the registered control can't seem to see anything outside of the current document that contains the datasource and RepeaterBlue.
Any idea how to get the access to the document properties that the transformation can see through my registered control?
Thanks.
|