Well, Bertrand and I figured out a solution that more or less accomplishes
what I was trying to do over IRC, which I'll blog about as soon as I get it
working. However, right now I'm getting a strange issue whenever I try to
access any data using this method. I'm basically using the OnCreated event
of a shape from a IShapeTableProvider description to try to pass data down
to a shape. When I do though I get the following error:
[TransactionException: The operation is not valid for the state of the
transaction.]
   System.Transactions.TransactionState.EnlistVolatile(InternalTransaction
tx, IEnlistmentNotification enlistmentNotification, EnlistmentOptions
enlistmentOptions, Transaction atomicTransaction) +44
   System.Transactions.Transaction.EnlistVolatile(IEnlistmentNotification
enlistmentNotification, EnlistmentOptions enlistmentOptions) +178
   
NHibernate.Transaction.AdoNetWithDistrubtedTransactionFactory.EnlistInDistri
butedTransactionIfNeeded(ISessionImplementor session) +276
   NHibernate.Impl.AbstractSessionImpl.EnlistInAmbientTransactionIfNeeded()
+237
   NHibernate.Impl.AbstractSessionImpl.CheckAndUpdateSessionStatus() +232
   NHibernate.Impl.SessionImpl.get_Batcher() +15
   NHibernate.Loader.Loader.GetResultSet(IDbCommand st, Boolean
autoDiscoverTypes, Boolean callable, RowSelection selection,
ISessionImplementor session) +245
   NHibernate.Loader.Loader.DoQuery(ISessionImplementor session,
QueryParameters queryParameters, Boolean returnProxies) +186
   
NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImpl
ementor session, QueryParameters queryParameters, Boolean returnProxies) +70
   NHibernate.Loader.Loader.DoList(ISessionImplementor session,
QueryParameters queryParameters) +141


From:  Michael Cramer <[email protected]>
Reply-To:  <[email protected]>
Date:  Mon, 14 Feb 2011 22:06:41 -0800
To:  <[email protected]>
Subject:  Re: Common Areas of a Site

This sounds a lot like what I was trying to do with containers which I had
to edit the ItemController.cs in Orchard.Core, but I could not find a better
way to get the shape to the razor view. He wants to use a razor view to
rendor his shape and to inject the shape into another area of the layout,
but he needs to pass the data to the proper shape from the controller that
creates it and has access to the data he wants. Here is a link to a
discussion where we are talking about this:
http://orchard.codeplex.com/discussions/245584

--- You are currently subscribed to orchard-discuss as: [email protected].
To unsubscribe send a blank email to
[email protected].



---
You are currently subscribed to orchard-discuss as: [email protected].
To unsubscribe send a blank email to [email protected].

Reply via email to