2016-03-07 57 views
0

我已經有一個任務通過SheerResponse.Alert()運行它的用戶交流問題,但它似乎不再在Sitecore 8.x中工作。Sitecore 8:SheerResponse對話框不再有效?

這是一個已知的問題?有沒有我應該用的SPEAK選擇?

Stacktrace System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> 
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> 
System.NullReferenceException: Object reference not set to an instance of an object. at Sitecore.Web.UI.Sheer.SheerResponse.Alert(String text, String[] arguments) at... 

回答

2

Sitecore純粹的用戶界面不再被Sitecore 8支持,你需要SPEAK來使其工作。 請使用此參考它有代碼片,它顯示瞭如何使用Sitecore 8顯示彈出窗口的新方法Sitecore.ExperienceEditor.Dialogs.showModalDialog。 Reference