PDA

View Full Version : [SOLVED] Xcheckbox not return



FkrZiM
16 Sep 2009, 5:18 AM
Hello.
I have a problem in xcheckbox.
I have a xcheckboxgroup in a fieldset by setting each month of the year as xcheckbox.
I spend the same name for them under the name of the store to return the bank.
When I record a registration mark a few months, and then open the screen again, it does not return the xcheckbox marked that I scored when I recorded.
But, just to test I put a textfield a month in form, and he returned normally.
And to test I put on the grid and also returned to normal.
Follow the xcheckbox:


xtype: 'fieldset',
id: 'ck-field-form' + src.windowId,
title: 'Month',
layout: 'form',
width: 200,
height: 180,
items: [{
id: 'meses-field-form' + src.windowId,
layout: 'column',
border: false,
hideLabel: true,
xtype: 'xcheckboxgroup',
columns: 2,
panelTools: null,
width: 200,
items: [{
id: 'xcjanuary' + src.windowId,
xtype: 'xcheckbox',
name: 'MES_JANUARY',
value: 'MES_JANUARY',
boxLabel: 'January',
disabled: true,
inputValue: '1'
},
{
id: 'xcfebruary' + src.windowId,
xtype: 'xcheckbox',
name: 'MES_FEBRUARY',
value: 'MES_FEBRUARY',
boxLabel: 'February',
disabled: true,
inputValue: '1'
},
{
id: 'xcmarch' + src.windowId,
xtype: 'xcheckbox',
name: 'MES_MARCH',
value: 'MES_MARCH',
boxLabel: 'March',
disabled: true,
inputValue: '1'
},
{
id: 'xcapril' + src.windowId,
xtype: 'xcheckbox',
name: 'MES_APRIL',
value: 'MES_APRIL',
boxLabel: 'April',
disabled: true,
inputValue: '1'
},
{
id: 'xcmay' + src.windowId,
xtype: 'xcheckbox',
name: 'MES_MAY',
value: 'MES_MAY',
boxLabel: 'May',
disabled: true,
inputValue: '1'
},
{
id: 'xcjune' + src.windowId,
xtype: 'xcheckbox',
name: 'MES_JUNE',
value: 'MES_JUNE',
boxLabel: 'June',
disabled: true,
inputValue: '1'
},
{
id: 'xcjuly' + src.windowId,
xtype: 'xcheckbox',
name: 'MES_JULY,
value: 'MES_JULY',
boxLabel: 'July',
disabled: true,
inputValue: '1'
},
{
id: 'xcaugust' + src.windowId,
xtype: 'xcheckbox',
name: 'MES_AUGUST',
value: 'MES_AUGUST',
boxLabel: 'August',
disabled: true,
inputValue: '1'
},
{
id: 'xcseptember' + src.windowId,
xtype: 'xcheckbox',
name: 'MES_SEPTEMBER',
value: 'MES_SEPTEMBER',
boxLabel: 'September',
disabled: true,
inputValue: '1'
},
{
id: 'xcoctober' + src.windowId,
xtype: 'xcheckbox',
name: 'MES_OCTOBER',
value: 'MES_OCTOBER',
boxLabel: 'October',
disabled: true,
inputValue: '1'
},
{
id: 'xcnovember' + src.windowId,
xtype: 'xcheckbox',
name: 'MES_NOVEMBER',
value: 'MES_NOVEMBER',
boxLabel: 'November',
disabled: true,
inputValue: '1'
},
{
id: 'xcdecember' + src.windowId,
xtype: 'xcheckbox',
name: 'MES_DECEMBER',
value: 'MES_DECEMBER',
boxLabel: 'December',
disabled: true,
inputValue: '1'
}]
}]
Follow the store:


storePerCount = ['COD_USUARIO', 'YEAR', 'MES_JANUARY', 'MES_FEBRUARY', 'MES_MARCH', 'MES_APRIL', 'MES_MAY', 'MES_JUNE', 'MES_JULY', 'MES_AUGUST', 'MES_SEPTEMBER', 'MES_OCTOBER', 'MES_NOVEMBER', 'MES_DECEMBER', 'FECHADO', 'CODIGO', 'REG_PADRAO', 'FLG_EXPORTAR', 'CD_EXPORTA', 'FLG_NAO_EXCLUI'];
Suggestions?

FkrZiM
16 Sep 2009, 6:36 AM
I found the problem.
Is this line:


xtype: 'xcheckboxgroup',

But when I delete this line, leaving only as xcheckbox, the form is messy, no columns.

Suggestions?

FkrZiM
16 Sep 2009, 12:03 PM
Solved :)