Ticket Q503497
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

Core - Make it possible to find a View node by its short identifier

Error showing detail view

created 12 years ago

Hi,

Since upgrading to 2013.1.4, I get the following error when trying to shwo a detail view:

A '' node was passed while a 'IModelDetailView' node was expected. Node id: 'TestStatusChange_DetailView'

The code in question looks like this:

Application.CreateDetailView(objectSpace, "TestStatusChange_DetailView", True, statusChange)

Answers approved by DevExpress Support

created 12 years ago (modified 11 years ago)

Hello Paul,
Currently, you can use the DevExpress.ExpressApp.Model.NodeGenerators.ModelNodeIdHelper class to obtain a correct View identifier according to the following breaking change:
http://www.devexpress.com/Support/WhatsNew/DXperience/files/13.1.2.bc.xml#BC1850
In one of the next 13.1 maintenance updates, we also plan to introduce an option that will allow you to automatically resolve the View identifier by a short name. Please track the Core - Make it possible to find a View node by its short identifier feature request in this regard.

    Comments (2)
    AB AB
    Andrew Bingham 2 12 years ago

      I have the same issue but I don't see the resolution. My DetailView is a clone of a Detail View for a Business Object "PriceUpdate":
      (NOTE FirebellyLight.Module.PriceManagement. is a namespace)
      PriceUpdate priceUpdate = objectSpace.CreateObject<PriceUpdate>();
      viewId = "FirebellyLight.Module.PriceManagement.UpdatePriceByAmount_DetailView";
      DetailView detailView = Application.CreateDetailView(objectSpace, viewId, true, priceUpdate);

      Dennis Garavsky (DevExpress) 12 years ago

        Andrew, I suggest you upgrade your application to the version 13.1.6 and use a short identifier:
        viewId = "UpdatePriceByAmount_DetailView";
        Refer to the http://www.devexpress.com/Support/WhatsNew/DXperience/files/13.1.6.bc.xml#autolist5 document for more details.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.