GIGJ.COM
welcome to my space
X
Personal Injury | Languages | Soups | Photography | Email | Prepress | Exotic Locations | Computer Games | Related articles
Search:  
Welcome to:gigj.com
NAVIGATION - HOME
Problem creating component
Published by: wktd 2009-01-08
  • I´m working in my ERP and i have found some problem. You can see a example here

    http://www.limestudio.es/ext/ext_test/test7/

    user:userweb
    pass:userweb

    And download the source here http://www.limestudio.es/ext/ext_test/test7/test7.zip

    I divided the aplication in three separated files
    The Flex Show: The Flex Show - Fifteen Minutes With Flex - Episode ::
    Aug 6, 2008 The Flex Show Podcast Blog: The Flex Show - Fifteen Minutes With Flex - Episode 4: Creating Component Properties.
    http://www.theflexshow.com/blog/index.cfm/2008/8/6/The-Flex-Show--Fifteen-Minutes-With-Flex--Episode-4--Creating-Component-Properties
    HOME

    app.js
    app.navigation.js
    app.mypanel.js

    app.js is the entering point for the aplication. Here i create the viewport
    var viewport = new Ext.Viewport({
    layout:'border',
    Problem creating Oracle data source in Cognos 8 FM - ITtoolbox Groups::
    Jan 16, 2006 This pertains to a problem I am facing while trying to create and test a new data source in . Templates Using Layout Component References
    http://businessintelligence.ittoolbox.com/groups/technical-functional/cognos-l/problem-creating-oracle-data-source-in-cognos-8-fm-902012
    HOME
    defaults: {

    split: true
    },
    items: [
    {
    xtype: 'box',
    region: 'north',
    applyTo: 'header',
    height:30
    Problem creating form and adding fields | drupal.org::
    10 posts - Last post: Nov 12, 2007The problem isn't your keyname, as you can start over and use that key However, whatever component you create will replace the highest
    http://drupal.org/node/167583
    HOME
    Conjecture - Components::
    Instead of decomposing the problem into segmentation, identification and formatting, Creating a new Implementation of an Existing Component
    http://www.corollarium.com/conjecture/components.php
    HOME
    }
    ,
    {
    xtype:'navigation'
    }
    ,
    {
    xtype:'mypanel',
    title: 'Panel 2'

    }
    ]
    });

    app.mypanel.js

    Ext.ns('app');

    app.mypanel = Ext.extend(Ext.Panel, {
    title: 'My Panel',
    region: 'center',
    html: Ext.example.bogusMarkup
    });

    Ext.reg('mypanel', app.mypanel);

    app.navigation.js


    Ext.ns('app');

    app.navigation = Ext.extend(Ext.Panel, {
    title: 'Navigation',
    region: 'west',
    id:'navigation',
    split:true,
    width: 200,
    minSize: 175,
    maxSize: 400,
    collapsible: true,
    layout:'accordion',
    layoutConfig:{
    animate:true
    },
    items: [{
    title:'Navigation',
    html:'

    Some Navigation in here.

    ',
    border:false,
    iconCls:'nav'
    },{
    title:'Settings',
    html:'

    Some settings in here.

    ',
    border:false,
    iconCls:'settings'
    }]

    });

    Ext.reg('navigation', app.navigation);


    When I acces the firebug give me this problem

    this.items.add is not a function
    [Break on this error] Ext.Container=Ext.extend(Ext.BoxComponent,{autoDes troy:true,defaultType:"panel",...

    I think that the problem is tha I don´t create the components correctly

    Any suggestion will be welcome!!!

    Thanks


  • Thanks for your coments. I create extensións to make a modular application like explain in this tutorial Writing a Big Application in Ext (http://extjs.com/learn/Tutorial:Writing_a_Big_Application_in_Ext)

    I´m starting an ERP and i don´t want a big one single .js file. Anybody knows a tutorial for writing big aplications ????

    Any sugestión????


  • The problem is caused by extend to configure.


  • what is the include order of your js files?

    Also, in the last file, you omit the xtype config property. I suggest you set it to panel


  • The same as anything else. Split stuff into logical groups. Write classes for reusable components.


  • Extend to configure again - that's the problem. Why? Just create a Panel.





  • Nortel Unveils Vision, Strategy for Israeli High-Performance Net
    Busy Friday Leads to Strong Close for Net Stocks
    You are looking at:gigj.com's Problem creating component, click gigj.com to home
    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Problem creating component , Please add it free.
    About us |Contact us |Advertisement |Site map |Exchange links
    Copyright© 2008gigj.com All Rights Reserved