View Full Version : Enter MAC addresss in form

11 Sep 2008, 12:42 PM
Hello! I`m getting green, but cannot figure out how to make such form:

NET: _____combo____
IP: ______________
MAC: __-__-__-__-__

I cannot get label MAC and six textfields in a row :( I tried playing with column layout, but no success. Please help, thanx!

11 Sep 2008, 1:41 PM
I just started throwing together an idea using a column layout and came up with something like this:

layout : "column",
items : [{
width : 45,
html : "MAC:"
width : 30,
xtype : "textfield"
width : 10,
html : "-"
width : 30,
xtype : "textfield"

now granted this uses alot of panels instead of lighter weight components like boxComponent for the labels, but it should give you an idea of a possible approach.

11 Sep 2008, 1:44 PM
I got some textfields to line up by adding a class that floated each of them left. Might break the rest of your layout though...

11 Sep 2008, 2:43 PM
How bout:

12 Sep 2008, 7:33 AM
Thank you! FieldPanel is just what I was looking for. Quickly created macfield on ipfield base. However, there is some issues:
1) uxipfield is not populated automaticly (reader by reader: )
2) error quicktips does not show (reader by errorReader: )
3) form.getForm().findField('IP_STR'); does not work - cannot find field IP_STR

However, IP_STR is posted to script along with splited parts IP_STR0,IP_STR1,IP_STR2,IP_STR3

I added uxipfield to my FormPanel this way:

var form = new Ext.form.FormPanel({
reader: someXMLReader,
errorReader: someXMLErrorReader,
items: [{
xtype: 'uxipfield',
fieldLabel: 'IP',
name: 'IP_STR'

Any quick fix to issues mentioned above? :((

Thanks a lot!

13 Sep 2008, 5:54 AM
another you might check