Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7571817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:45:51+00:00 2026-05-30T15:45:51+00:00

I am new to sencha touch mvc framework and i am using version1.1.1 on

  • 0

I am new to sencha touch mvc framework and i am using version1.1.1 on android os.I have created controller and view in my demo app.I am getting error in my app.js and viewport.js.

Here’s app.js:-

Ext.regApplication({
    name: 'MyApp',
    defaultUrl: 'Home/index',
    launch: function()
    {
        this.viewport = new MyApp.view.viewport();
    },
});

and here’s viewport.js:-

MyApp.view.viewport = Ext.extend(Ext.Panel,{

   fullscreen: 'true',
   layout: 'card',
   cardSwitchAnimation: 'slide',
   dockedItems: [
   {
    xtype: 'toolbar',
    title: 'MvcTouch',
   },
   ],
});

Now my problem is that when i run my app with above pieces of codes i am getting the following errors.

1) TypeError: Result of expression 'MyApp.view' [undefined] is not an object. at file:///android_asset/www/app/view/viewport.js:9

2) TypeError: Result of expression 'MyApp.view' [undefined] is not an object. at file:///android_asset/www/app/app.js:6

I write the code according to the standards explained here by Sencha‘s core developer .But when i change the line

MyApp.view.viewport = Ext.extend(Ext.Panel,{

to

viewport = Ext.extend(Ext.Panel,{ in viewport.js

and change the line

this.viewport = new MyApp.view.viewport();

to

this.viewport = new viewport(); in app.js

the app works well.Now I dont understand about the code that it works well when i am not using standard conventions of sencha and does not work when i used the standard convention.
Can anybody tell me what’s happening here.Any help would be highly appreciated.Thanx in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T15:45:52+00:00Added an answer on May 30, 2026 at 3:45 pm

    In Sencha Touch 1.1.1, the app views are defined with “views” not “view”. So, try this:

    MyApp.views.viewport = Ext.extend(Ext.Panel,{

    This should work fine then.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a MVC-styled sencha touch app and normally I used Ext.apply(app.views, { loginPage:
I'm writing a Sencha Touch 1.1 MVC app. My view code looks like this
When using the [relatively new] MVC bits in Sencha Touch I find that 90%
I'm new to sencha touch framework and I have one problem I cannot solve
I'm new to Sencha Touch (and MVC mostly for that matter), we have a
I am very new to sencha touch. I am developing an App using sencha.
I am very new to Sencha Touch framework, want to start with Sencha Touch
I have a MVC Sencha Touch application I'm building and am having some issues
I'm new to HTML5 and using sencha touch. Please anyone give me a full
I'm using Sencha touch 2. I have store that load from existing js object:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.