Results 1 to 2 of 2

Thread: Design View and Viewmode Links: Invalid Model name

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium User EricRicher's Avatar
    Join Date
    Jul 2014
    Posts
    45
    Vote Rating
    2
      1  

    Default Design View and Viewmode Links: Invalid Model name

    Architect is throwing Framework errors when rendering a view with a viewmodel that has a links config and it is not rendering the view at all.

    I define a model, view and a viewModel as follow using Architect:

    Code:
    Ext.define('MyApp.view.FormPanel', {
        extend: 'Ext.form.Panel',
        alias: 'widget.formpanel',
    
    
        requires: [
            'MyApp.view.FormPanelViewModel'
        ],
    
    
        viewModel: {
            type: 'formpanel'
        },
        title: 'My Form'
    
    
    });
    
    Ext.define('MyApp.view.FormPanelViewModel', {
        extend: 'Ext.app.ViewModel',
        alias: 'viewmodel.formpanel',
    
    
        links: {
            theUser: {
                type: 'User',
                create: true
            }
        }
    
    
    });
    
    Ext.define('MyApp.model.User', {
        extend: 'Ext.data.Model',
        alias: 'model.user',
    
        requires: [
            'Ext.data.field.Field'
        ],
    
    
    
    
        fields: [
            {
                name: 'firstname'
            },
            {
                name: 'lastname'
            }
        ]
    
    
    });
    Every time I go to Design View to look at the form, I get the following error in the log and the view is not rendered. This is annoying to me right now as I am using links in many forms and views to download/upload server data. None of them are showing up in the Design view which sorts of defeats the purpose of using Architect as a visual design tool.

    However, even if Architect has a issue dealing with links config in viewmodels, the code works perfectly fine and as expected.

    Capture.jpg



    I tried setting type to 'MyApp.model.User' , 'model.User' or simply 'user' in the links config and I get the same error.

    Here a link to a test Architect archive with the above code.

    https://www.dropbox.com/s/fv8vyt5e10...sTest.xda?dl=0

    Here's the version of architect that I am using:

    Version: 4.2.2.282
    Channel: 4.2-stable
    Platform: 1.6.2.49 - win32 x64
    Renderer: 56.0.2924.87
    Cmd: 6.5.1.240
    Framework: Ext JS 6.5.x Modern



    I also tried on Mac with the same results.

  2. #2
    Sencha Premium Member
    Join Date
    Jan 2010
    Location
    Vancouver, Canada
    Posts
    214
    Vote Rating
    71
      0  

    Default

    Sencha support, is there a workaround for this bug?

Similar Threads

  1. Design View and Viewmode Links: Invalid Model name
    By EricRicher in forum Sencha Architect 4.x: Q&A
    Replies: 2
    Last Post: 29 Nov 2017, 6:25 PM
  2. Replies: 0
    Last Post: 31 Jul 2017, 1:15 PM
  3. [INFOREQ] Binding to view model links is called multiple times.
    By HriBB in forum Ext 5: Bugs
    Replies: 1
    Last Post: 27 Mar 2015, 7:57 AM
  4. Replies: 3
    Last Post: 24 Sep 2014, 11:18 AM
  5. Initial View, Gridpanel aren't dislayed in Design view
    By msinn in forum Sencha Architect 2.x: Bugs
    Replies: 2
    Last Post: 23 Jun 2012, 7:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •