extjs

Watir webdriver and extjs finding element

烈酒焚心 提交于 2019-12-12 01:02:09
问题 I am doing an acceptance test using watir-webdriver using ruby I wanna ask if watir webdriver is support for ExtJs or not? I am trying to find element that generated dynamically by ExtJS. I am trying doing some thing like @browser = Watir::Browser.new :chrome #Some step go to page @cbo = @browser.execute_script "return Ext.getCmp('cboCategory')" but It didn't work Please give me some advises. Thank you. 回答1: ExtJS pages are hard to test, especially on finding elements. Here are some of the

keypress to delete value in 'open' datefield and close related datepicker

a 夏天 提交于 2019-12-12 00:36:54
问题 I have an ExtJS form.field.Date as below; { xtype: 'datefield', name: 'X_Cut_Process_Completed_Date', format: 'd M Y', startDay: 1, allowBlank: true, editable: false, listeners: { specialkey: function(field, e){ if (e.getKey() == e.DELETE) { field.setValue(''); } } } } I have been asked to implement an event that catches the Delete key while the datefield is being edited (with the associated datepicker open), that clears the value for the datefield and closes the datepicker . The existing

CodeMirror editor within a panel

假装没事ソ 提交于 2019-12-12 00:29:31
问题 I am building a small extjs 5.1 app for personal use, designed to save examples of functions / methods used in my extjs apps. The most relevant part, has a grid with a list of functions, and a panel with a textarea that displays the contents of records (scripts). This works. Now I'm trying to replace the textarea field by CodeMirror editor for optimal scripts viewing and have syntax higlighter. I downloaded CodeMirror and put it in one the folder of my app with the name CodeMirror. In my app

JSON parsing issue between Sencha Touch and WordPress BuddyPress API

房东的猫 提交于 2019-12-12 00:23:31
问题 I am new to Sencha Touch and I am trying to figure out the JSON call to WordPress. I am using the JSON-API-for-BuddyPress plug-in on WordPress on the server side. http://www.erefer.me/api/buddypressread/groups_get_groups/?username=troy {"status":"ok","groups":{"149":{"name":"Barakah Biz Network Referrals","description":"This group is for B.B.N members to send and receive their referrals online. This way all members have an online record of their referrals and no worries of losing pieces of

parsing deeply nested xml in sencha touch

流过昼夜 提交于 2019-12-12 00:01:03
问题 I'm trying to parse a xml file and I'm having problems with a really simple nested tag but every example I have seen just takes the easy way of reading not nested xml tags, or plainly changing the xml (I can't do that). So my question is: in Sencha touch 1.1, how can I configure the model to load just one property which is nested inside a couple of tags? I tried this: Ext.regModel('article',{ fields: [ {name:'Headline',type:'string'}, {name:'Summary',type:'string'}, {name:'Body',type:'string'

Ext-JS QuickTips not working correctly

橙三吉。 提交于 2019-12-11 23:41:27
问题 I'm trying to implement one of Saki's examples in Form --> Displaying Form Submit Errors , but looking at the html of included classes I don't see several of the one's he uses (like theme empty.css, icons.css, extjs.ico, and Ext.us.form.XCheckbox.js). I'm using Ext-JS 3.3.0.... could anyone link me to a source that shows how to utilize QuickTips for 3.3.0? Or a way to make sure I have all the required files? Currently when I try to do msgTarget: 'side' the red explanation point isn't

How to assign JSON Object to Hibernate Pojo + ext js 4 + Java + spring

只愿长相守 提交于 2019-12-11 23:39:06
问题 I am using JPA, Spring, Ext js 4 mvc and mysql5.0 server One problem i am facing is that i am not able to insert my data to database using Hibernate + JPA. I am sending the data to server side using JSON and then this object interact with database and insert the json object to the database. I am sending the json data as "Id": null, "Name": "New task", "StartDate": "2010-02-13T05:30:00", "EndDate": "2010-02-13T05:30:00", "Duration": 0, "DurationUnit": "d", "PercentDone": 0, "ManuallyScheduled"

Ext JS empty ItemSelector when loaded for the second time

徘徊边缘 提交于 2019-12-11 23:24:28
问题 i'm a newbie with ExtJS, i'm using ExtJS 4.0.7 and what they call MVC, just getting use to the code, so, i was taking a look to the examples, and there is one that works perfect for what i'm trying to do, the "MultiSelect and ItemSelector" example, more specific, the ItemSelector, that is the one i'm using, it use some kind of library named "ux", that is show for example i think, but the ItemSelector is ok form me, i don't want to change or add nothing to the component, so, what i do is,

EXT.JS getting a list of items from a fieldset

拟墨画扇 提交于 2019-12-11 23:22:48
问题 How can I get a list of items from a Ext.form.Fieldset ? I'm trying to find a component based on one of its properties, this is what I've got so far: Ext.each(container.items, function (component) { if (component.name == config.name) { component.doUpdate(config); } }, me); Of course, items is undefined...so what can I do to access the components contained in my container, which is a fieldset? 回答1: You can use container.down(selector) or if its a form field use form.findField(name). See this

I want to show node value in extjs 4 line chart

一个人想着一个人 提交于 2019-12-11 23:22:02
问题 When we take mouse on line chart node then it is showing nodes values. Same thing i want to permanently without pointing to node. My complete code is: items:[{ xtype:'displayfield', value:'Avg. Freight Percentage' },{ xtype: 'linechart', store: store30DaysTo180Days, xField: 'days', height:200, yField: 'averageFreightPercentLast', xAxis: new Ext.chart.CategoryAxis({ title: 'In Days', }) }] 回答1: The config label is for this purpose. Try something like: series: [{ type: 'line', axis: 'left',