XModPro

Detail template crashes when more than one xmodpro template used

Paul Buckley Paul Buckley asked Sep 6, 2015
Active Sep 7 · Viewed 1826 times
<p>A critical error has occurred. Please check the Event Viewer for further details.<button>close</button></p><p><strong>AssemblyVersion</strong>:7.3.4</p><p><strong>PortalID</strong>:0</p><p><strong>PortalName</strong>:QASWeb</p><p><strong>UserID</strong>:1</p><p><strong>UserName</strong>:host</p><p><strong>ActiveTabID</strong>:175</p><p><strong>ActiveTabName</strong>:NCRView</p><p><strong>RawURL</strong>:/QASWeb/NCR/NCRView</p><p><strong>AbsoluteURL</strong>:/Default.aspx</p><p><strong style="font-family: Arial, Helvetica, Verdana, Tahoma, sans-serif; background-color: initial;">UserAgent</strong>:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36</p><p><strong>DefaultDataProvider</strong>:DotNetNuke.Data.SqlDataProvider, DotNetNuke</p><p><strong>ExceptionGUID</strong>:03398b7d-c2e6-47e6-a83e-2d45e0cec6a4</p><p><strong>InnerException</strong>:Object reference not set to an instance of an object.</p><p><strong>Crashes when i click edit&nbsp;link to detail template</strong></p><p>&lt;DetailDataSource CommandText="select [IDNCR],[Site], [WorkCenter] FROM vw_QANCR WHERE IDNCR=@IDNCR"&gt;</p><p>&lt;Parameter name="IDNCR" value="-1"/&gt;</p><p>&lt;/DetailDataSource&gt;</p><p>&lt;xmod:EditImage Text="Edit" ImageUrl="~/images/manage-icn.png" style="height:3px;" &gt;</p><p> &lt;Parameter Name="IDNCR" Value='[[IDNCR]]' /&gt;</p><p> &lt;/xmod:EditImage&gt;</p><p>&lt;DetailTemplate&gt; </p><p>&lt;div &gt;&lt;Label&gt;Implemented&lt;/Label&gt;&lt;/div&gt;</p><p> &lt;/DetailTemplate&gt; </p><p>&lt;/xmod:Template&gt;</p><p>I added additional templates as dropdown feeds to the main template to execute&nbsp;a stored procedure. When I add a detail template inside the main xmodpro template it now crashes.If i remove the other templates for&nbsp;filters and change from stored procedure to a&nbsp;select statement&nbsp;the detail template works ok. Is this a&nbsp;bug or is there something I am missing? Please help&nbsp;as I need both detail display and option to create filters on listing.</p><p>Can anyone tell me why this is happening I followed the articles but i&nbsp;get an exception.</p>

1 Answer

Loading answers...