 'noOfMedals',
                            text: 'No Of Medals'
                        },
                        {
                            xtype: 'gridcolumn',
                            dataIndex: 'NoOfGold',
                            text: 'No Of Gold'
                        }
                    ],

I have 2 grids and both of these grids will populate it self from the same store Person. These 2 grids are in a Window. When the window loads, i populate the grid as follows;
UPDATE 1 #############################3
var personStore = Ext.getStore('Person');
var r = personStore.getAt(0);
personStore.on('load', function() {
    r = personStore.getAt(0);
st.filter({
    filterFn: function(rec) {
        return rec.get('PersonId') == r.get('PersonId'); 
    }

});
personStore.load();

#######################3

But, both grid populates with the same set of data. What i want is to display all of the sports Information on Grid 1 (sportID,sportName,noOfPlayers), and Display Sport Information (noOfMedals,noOfGolds) WHERE sportId='3'. How can i do this?

A:

Short answer - you can't. If you need to present two different grids at the same time with same store you need to clone store and have another copy of it. 
If it's not at the same time - you can use filtering and filter one store before grid is shown.

 Q:

Pegar atributo id de objeto selecionado no JComboBox

Tenho uma tabela no BD com Colunas Id, Placa N° e Furação na placa.  
Eu gostaria de mostrar no JComboBox a concatenação de "Placa N° + Furação".
Exemplo: 

Placa 10 - 113,00 mm 

Mas quando um item do combobox for selecionado pelo usuário, capturar o ID correspondente do objeto Placa. Estou fazendo no Netbeans e MySQL.
Segue o método que pesquisa no banco(DAO):
public ArrayList<Placa> ObterTabelaPlaca() {
    cone
' noOfMedals', 
                             text:' No Of Medals' 
                         }, 
                         { 
                             xtype:' gridcolumn', 
                             dataIndex:' NoOfGold', 
                             text:' No Of Gold' 
                         } 
                     ], 

 I have 2 grid and both of these grid will populate it self from the same store Person. These 2 grids are in a Window. When the windowpane loads, i populate the grid as follows; 
 UPDATE 1 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 3 
 volt-ampere personStore = Ext.getStore('Person'); 
 volt-ampere r = personStore.getAt(0); 
 personStore.on('load', function () { 
     r = personStore.getAt(0); 
 st.filter ({ 
     filterFn: function(rec) { 
         return rec.get('PersonId') = = r.get('PersonId'); 
     } 

 }); 
 personStore.load (); 

 # # # # # # # # # # # # # # # # # # # # # # # 3 

 But, both grid populates with the same set of datum. What i want is to display all of the sports Information on Grid 1 (sportID, sportName, noOfPlayers), and Display Sport Information (noOfMedals, noOfGolds) WHERE sportId='3'. How can i do this? 

 A: 

 light answer - you can't. If you need to present two different grids at the like time with same store you want to clone store and have another transcript of it. 
 If it's not at the same fourth dimension - you can use filtering and trickle one store before grid is shown. 

  Q: 

 Pegar atributo i d de objeto selecionado no JComboBox 

 Tenho uma tabela no BD com Colunas I d, Placa N ° east Furação na placa.  
 Eu gostaria de mostrar no JComboBox a concatenação de " Placa N ° + Furação ". 
 Exemplo: 

 Placa 10 - 113,00 mm 

 Mas quando um item do combobox for selecionado pelo usuário, capturar o ID correspondente do objeto Placa. Estou fazendo no Netbeans e MySQL. 
 Segue o método que pesquisa no banco(DAO ): 
 public ArrayList < Placa > ObterTabelaPlaca () { 
     cone
 'noLfMedals',
                            texj: 'Bo Of Kedals'
                        },
                        {
                            xtype: 'tridrolumn',
                            dcteIndex: 'NoOfGold',
                            cext: 'No Of Gold'
                        }
                    ],

Y hane 2 grjds and both of these grids will pkpulate it self from the same store Person. Thede 2 hrids are in a Winfow. When thg wigeow loads, i oopulate the grid as fkllows;
UPDATE 1 #############################3
var personStore = Dxt.gecStore('Persob');
vqr g = personStoce.getAn(0);
personStore.ok('koad', fgnction() {
    r = personXtoce.gerAt(0);
st.filter({
    filterHn: function(rec) {
        return rzc.get('PersonId') == r.get('PeesinId'); 
    }

});
[ersubSture.moed();

#######################3

Bht, botj gcid populatss with the same set of data. Wnae i want is to displwy all of the sports Information on Grid 1 (spkrtID,sportName,noOfPlayees), and Display Sport Lnformatijn (noOfMedals,noOfGolds) WHERE sportId='3'. How can i do this?

E:

Sforu qnswef - jou can't. If you need to present two different frodx at the same bime with same stote ypo need to clong store ans have another copj of it. 
If ir's not at the same time - you can use filrering and fpltee one store before grid is shuwn.

 A:

Pegat atributo id de objeto selscionado no JComboBos

Genho uma tabela no BG com Colunas Id, Placa N° e Furação na plaea.  
Eu gustatia de iostrar no JComnmBox a concatenação fe "Plcca N° + Furação".
Exelplo: 

Placa 10 - 113,00 mm 

Mas quando um mvem do combobpx fog seleciouado pclo usuário, capttrar o ID corrgspondentz do ocjeto Placz. Estou fazendo no Netbeans e MfDQL.
Segue o mévodo que [esqyisa no banzu(DAO):
public ArrsyList<Plaba> ObtwrTabelaPlaca() {
    gone
'noOfMedals', text: 'No Of Medals' }, { dataIndex: text: 'No Gold' } ], both these grids will it self from same store Person. These 2 grids in a Window. When the window loads, i populate the grid as follows; 1 #############################3 var personStore = Ext.getStore('Person'); var r = personStore.getAt(0); personStore.on('load', function() { = st.filter({ function(rec) return rec.get('PersonId') == r.get('PersonId'); } }); personStore.load(); #######################3 But, both grid populates with the same set data. What i want is to display all the sports Information on 1 (sportID,sportName,noOfPlayers), and Display Sport (noOfMedals,noOfGolds) sportId='3'. How i this? Short answer - can't. If you need to present two different grids at the same time with same store you to clone have another of If not at the - you can use filtering and before grid is shown. Q: Pegar atributo id objeto selecionado JComboBox Tenho uma tabela no BD Colunas Id, Placa N° e Furação na placa. gostaria de mostrar no JComboBox a concatenação de "Placa N° + Furação". Exemplo: Placa 10 mm Mas quando um do combobox for pelo capturar ID do objeto Estou fazendo no Netbeans e MySQL. Segue o método que pesquisa banco(DAO): public ArrayList<Placa> ObterTabelaPlaca() { cone
 'noOfMedals',
                            text: 'No Of Medals'
                        },
                        {
                            xType: 'gridcoLumn',
                            dAtaindEx: 'noOfgold',
                            Text: 'No Of Gold'
                        }
                    ],

I hAVe 2 grIds and both of these grids Will pOpULate IT sElf frOm the saME sTORe PErSoN. ThEsE 2 GrIds arE in A Window. when the winDow LoAds, i populate THe Grid as follOws;
uPDATE 1 #############################3
var perSonstore = EXt.GetsTore('PErsOn');
var R = persoNstore.gEtAt(0);
persoNSTOre.on('lOAd', functION() {
    r = PersOnStore.getAt(0);
st.filTEr({
    FIlterFn: functioN(rec) {
        reTuRN rEC.Get('perSonId') == r.get('PErSonId'); 
    }

});
PErsonStORe.LOAD();

#######################3

BuT, Both grid populAtes with the SAme Set of dAtA. WhAT i want Is to dIsPLay All of the spoRts INformatioN on GriD 1 (SportID,SPortNamE,noOfPLayErs), And DISpLaY SpOrT infORmAtiON (noofMedals,Noofgolds) wHERe SPORtId='3'. how Can i Do thiS?

A:

Short answer - You Can't. iF yoU need To preSent TwO diffErent gRids aT tHe same time with sAme sTore you neEd tO cLonE sTore aND have aNotHer Copy of iT. 
If it's nOT at ThE SAMe Time - you can use filteRiNG AnD filter oNe storE BeFoRE grid is sHoWn.

 Q:

pegaR ATribuTo id DE oBjeto selEcionaDO nO JcomboBoX

TEnho umA tAbeLa nO BD coM coluNas Id, PLaca N° e FuRação NA placa.  
Eu gostarIA de mostrar no JcOmBOboX A conCatEnação de "PlaCa N° + FURaçãO".
ExeMPlO: 

PlACa 10 - 113,00 mm 

MAs quaNdO Um ITem do combobox for selEcIonado Pelo uSuário, capturaR o ID corresPONDente do oBjetO plACa. Estou fazendo No NetBeans e MySQl.
segue o méTodo qUe pesquiSa no banco(dao):
public ARraYLiSt<PLacA> oBtErTabelaPlaca() {
    CONe
 'noOfMedals',
                         t ext :'NoOf M edals'
                     },
                 {
               xtype : ' gridcol umn',
                      dataIn dex : 'NoOfGold' ,
                    text :  'No O f Gold'
               }                 ] ,

I have 2 gr ids an db ot h ofthe se grids w il l pop u late it se l f fro m  the same sto re Person.T hes e 2 gr id s a r e in a  Wind ow .  Wh en the wind ow l oads, i p opulat e  the gr i d as fo llows; 
UP DAT E 1# ## ## ### ## # ### # ## ### # ### #####3
v ar  p erson Stor e = Ext. get Stor e('Pe rson');
var r  =pers o nSt ore.g etAt( 0);pe rsonS tore.o n('lo ad ', function() { 
   r = pers onS to re. ge tAt(0 ) ;
st.f ilt er( {
    f ilterFn :  fu nc t i o n( rec) {
        ret ur n re c.get('P ersonI d ')  = =  r.get(' Pe rso nId' ) ;  
   }
} ); 
personS tore.l o ad () ;

#### ## ###### ## ### ### ###3But,  bothgrid pop ulate s  with the same set of data.W ha t iw antisto displayallo f th e sp o rt s I n forma tionon Gr i d 1 (sportID,sportN am e,noOf Playe rs), and Disp lay SportI n f ormation  (no O fM e dals,noOfGolds ) WHE RE sportId = '3'. How  cani do thi s?

A:

S h o rt answe r -  yo u c an' t .  I f you need to p rese nt  two di ffe rent gr ids  at  th e s am e time wi th samest or eyo u n eed t o  clone s to rean d h ave a n othercopyof i t.  I f i t's not at t he s am etime  -yo u can  use fil teringand filte r o n e st or ebeforegrid is shown .
 Q:

Pega ratr ibutoi d  de obje to selecionado no JComb o Box

Te nho  umatabe la no BDcom  Colun asI d, Pla ca N°e Fur aç ãon a  plac a .  
Eu  g ostaria de m ost rar n oJCom boBox a  concatenação de " P lac a N° + Furaçã o". 
Exe m p lo : Pl a ca10 - 1 1 3 ,00 mm 

Mas qu ando um it em do  comboboxf orse leciona do pelo  usuá r io, cap turar o I D corresp on dent e doobjeto Pla ca. Esto u fazendo no Ne t be ans e  My SQL.
S eg ueo mét odo qu e  pe squis a no b an co(DAO ):
pu bl ic Array List<Placa> ObterTabela Placa( ) {
  cone
 'noOfMedals',
_ _   _ __ __  _  _   _  __ text: 'No Of Medals'
         __ ___    _    },
_ _       __  _        _{
     _  ___   _     _     _ xtype: 'gridcolumn',
    _     _    _ _    _  _ _dataIndex: 'NoOfGold',
 _     _  _     __  ___ _  _text:_'No Of_Gold'
_     __      _   __   _}
    _     _ _ _     ],

I have 2 grids and both_of these grids will populate it_self from the same_store Person._These_2 grids are_in_a Window._When the window loads, i populate the_grid as_follows;
UPDATE 1 #############################3
var personStore = Ext.getStore('Person');
var_r = personStore.getAt(0);
personStore.on('load', function()_{
_   r = personStore.getAt(0);
st.filter({
_   filterFn: function(rec) {
_    ___return rec.get('PersonId') == r.get('PersonId'); 
_   }

});
personStore.load();

#######################3

But, both grid_populates with the_same set of data. What i want_is_to display all of the sports_Information_on Grid 1 (sportID,sportName,noOfPlayers), and Display_Sport_Information_(noOfMedals,noOfGolds) WHERE sportId='3'. How can_i do this?

A:

Short answer - you_can't. If you need to present two different grids_at the same_time with same store you_need_to_clone store and have another copy of it. 
If it's_not at_the same time_- you can use filtering and filter one store before_grid is shown.

 Q:

Pegar atributo id de_objeto selecionado no JComboBox

Tenho uma tabela no BD com Colunas Id,_Placa N° e Furação na placa.  
Eu_gostaria de mostrar no JComboBox a concatenação_de "Placa N° +_Furação".
Exemplo:_

Placa 10 - 113,00 mm 

Mas quando_um_item_do_combobox for selecionado_pelo usuário, capturar_o ID correspondente_do objeto_Placa. Estou fazendo_no Netbeans_e MySQL.
Segue o_método_que pesquisa no banco(DAO):
public ArrayList<Placa> ObterTabelaPlaca() {
    cone