extjs-mvc

How to create hyper link in ExtJS 4?

倾然丶 夕夏残阳落幕 提交于 2019-12-23 07:25:37
问题 I am working in ExtJS 4.I have been getting stuck at a point where I have to create a hyperlink in ExtJS 4.I have been searching a lot for creating hyperlink in ExtJS 4 but I did not get any solution for it.Actually I have to create a hyperlink and after clicking on that link I am going to display another page in ExtJS 4. Actually also i did not get the event in ExtJS 4. How can I use hyperlink in ExtJS 4. I am using this way... { xtype: 'panel', html:'<a href="second.js">Second page</a>', }

How to create hyper link in ExtJS 4?

风格不统一 提交于 2019-12-23 07:25:24
问题 I am working in ExtJS 4.I have been getting stuck at a point where I have to create a hyperlink in ExtJS 4.I have been searching a lot for creating hyperlink in ExtJS 4 but I did not get any solution for it.Actually I have to create a hyperlink and after clicking on that link I am going to display another page in ExtJS 4. Actually also i did not get the event in ExtJS 4. How can I use hyperlink in ExtJS 4. I am using this way... { xtype: 'panel', html:'<a href="second.js">Second page</a>', }

Getting a refernce to an auto-instantiated Sencha Touch 2 view

梦想与她 提交于 2019-12-23 06:00:18
问题 I'd like to get a reference to my view from my Sencha Touch 2 controller, which looks like this (CoffeeScript): Ext.define 'MyApp.view.Books', extend: 'Ext.Panel' id: 'books' config: html: 'Hello, Books!' Ext.define 'MyApp.controller.Books', extend: 'Ext.app.Controller' views: [ 'Books' ] init: -> @control '#books': render: -> console.log 'This is never called. Why?' show: -> console.log 'This is called twice.' # @getBooksView() is not a view instance, it is a class. Why? console.log 'View

Getting a refernce to an auto-instantiated Sencha Touch 2 view

坚强是说给别人听的谎言 提交于 2019-12-23 05:58:03
问题 I'd like to get a reference to my view from my Sencha Touch 2 controller, which looks like this (CoffeeScript): Ext.define 'MyApp.view.Books', extend: 'Ext.Panel' id: 'books' config: html: 'Hello, Books!' Ext.define 'MyApp.controller.Books', extend: 'Ext.app.Controller' views: [ 'Books' ] init: -> @control '#books': render: -> console.log 'This is never called. Why?' show: -> console.log 'This is called twice.' # @getBooksView() is not a view instance, it is a class. Why? console.log 'View

path of view is incorrect in extjs 4 mvc application

六月ゝ 毕业季﹏ 提交于 2019-12-22 14:13:41
问题 I'm trying to deploy my mvc app into my large web application. I have defined the app folder and can see in fire bug that it is calling the correct files with the exception of the initial view. So "App.view.Jobs" is calling https://www.estore.localhost/Jobs/Edit/ext/jobs/App/view/Jobs.js?_dc=1328471746967 when i would like it to call https://www.estore.localhost/ext/jobs/App/view/Jobs.js?_dc=1328471746967 Ext.Loader.setConfig({ enabled: true }); Ext.application({ name: 'MyApp', appFolder: '

Where to add Global variables in ExtJS MVC?

一世执手 提交于 2019-12-21 09:28:31
问题 I am wondering where to add global variables for an ExtJS Application. I already looked at some suggestions in stackoverflow that mention that you can add them inside app.js. But, can anyone be more specific? My app.js looks something like this: Ext.application({ launch: function() {..} }); So, where exactly do the variables go? In the launch function? Outside Ext.application ? 回答1: Declare your own object namespace and add them there: Ext.ns('My.Application.Globals'); My.Application.Globals

how to get Extjs 4 store's request data on beforeload event?

左心房为你撑大大i 提交于 2019-12-20 02:56:41
问题 I'm trying to get request data params beforeload event on store. I can see the operation object contains the request data but I can't seems to get it from operation object Ext.create('Ext.data.Store', { autoLoad : true, fields : [ {name: 'item_code', type: 'string'}, {name: 'quantity', type: 'int'}, {name: 'description', type: 'string'} ], storeId : 'summary', proxy : { type : 'ajax', actionMethods : 'POST', extraParams : {'filter': 'branch', 'branch': location }, url : 'reports/stock_summary

extjs4 global network exception listener

泪湿孤枕 提交于 2019-12-14 00:33:09
问题 I want to write a listener that will listen to all network requests errors, something like this : Ext.Ajax.on('requestexception', function(conn, response, options) { if (response.status === 555) { Ext.Msg.alert('test', 'test'); } }); The above code works only for requests via Ext.Ajax.request() , how to rewrite it so it could work also for form submits, url not found error etc. On server side I have Spring MVC that dispatches all requests and if there is any error , the response status of 555

how to call a listener of view from controller in Extjs

ⅰ亾dé卋堺 提交于 2019-12-13 18:15:42
问题 i have a bar chart in my view where i have a listener which is retrieving the bar column items ,now i have to call that listener from controller here is my code ... This is the listener in my view.. listeners: { itemmousedown: function (obj) { alert(obj.storeItem.data['source'] + ' &' + obj.storeItem.data['count']); } }, and i have to call this listener from my controller.here is my code.. init: function () { this.control({ 'barColumnChart': { //this is the id of the bar chart in my View

Synchronously loading 'MyApp.store.TreeStructures'; consider adding Ext.require('MyApp.store.TreeStructures') above Ext.onReady

大兔子大兔子 提交于 2019-12-13 17:26:27
问题 Below, you will see that I'm getting a JavaScript exception with an MVC view I created in an Sencha ExtJS MVC application. I have another MVC view that extends 'Ext.tree.Panel' that reads a simple JSON object instead of pulling the data via an Ext.Direct proxy and .NET server-side stack, but the only thing that's different is the proxy implementation and of course our MVC controller logic. In the static (JSON) implementation, our proxy is defined in the model. In the dynamic (Ext.Direct)