Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Item open in console?

$
0
0
mawtex,

Thnx, got a lot further.
The FormsWorkflow class (that I inherit my workflow from) provides access to most required data.
the ActionLockingFacade provide a static method 'IsLocked' so i know when an item is open in the console and I can handle accordingly.

My problem is however with the CloseViewMessageQueueItem. I can get the consoleId from FormsWorkflow.GetCurrentConsoleId(), but i've tried several variants for getting the ViewId to no avail.

In the serialized consolemessages.xml I see the CloseViewMessageQueueItem but its Serializable value is different from the data in the OpenViewMessageQueueItem just before that. I assume it means the Viewid is not correct.

Do you have any pointers as i could find any (public) properties or methods to acquire the viewId.

thnx,
JamBo

P.S. You can easily find LockingData, but the the locking data object is not available for static (custom) datatypes. I solved that by using this.AcquireLock(this.EntityToken) in the init method of the edit workflow of the item. Everything after that is correctly handled by Composite, i.e. lock is removed when item is closed. I mention it here as that took me some time to figure out.

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>