pro_imaj Posted April 11, 2018 Share Posted April 11, 2018 Merhaba; UniDbGrid / column properties / editor kısmında hidden panel içindeki Unidblookcombobox seçiyorum, Unidblookcombobox listesi sorunsuz olarak açılıyor fakat bazen liste hiç gelmiyor bunun nedeni nedir? Unidblookcombobox hidden panel içinde kullanmak sorunlu bir çözüm mü? Teşekkürler. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 11, 2018 Share Posted April 11, 2018 Hi, Can you make a simple testcase for this issue?! And please specify which build you are using Best regards, Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted April 24, 2018 Author Share Posted April 24, 2018 Error Code _rsov_(OF07,1);OF8B.setReadOnly(false);OF35.setActiveTab("_1");OF7D.hide();delete OF56_Cols;OF56.refreshColumnCache=true; O1109=new Ext.grid.column.Column({ogrid:OF56,sortable:false,dataIndex:"0",renderer:_rndcll_,rdonly:true,text:"Kodu",width:120,attr:"{fts:'font-weight:bold;font-size:12px'}",unEditable:true});O1109.nm="O1109"; O1111=new Ext.grid.column.Column({ogrid:OF56,sortable:false,dataIndex:"1",renderer:_rndcll_,rdonly:false,text:"Olcu",width:152,attr:"{fts:'font-weight:bold;font-size:12px'}",editor:{xtype:"textfield",fieldStyle:"font-weight:bold;font-size:12px;color:#000000"}});O1111.nm="O1111";O1111.editor.uform=OF56.uform;O1111.editor.focusDisabled=true;O1111.editor.isCellEditor=true; O1119=new Ext.grid.column.Column({ogrid:OF56,sortable:false,dataIndex:"2",renderer:_rndcll_,rdonly:true,text:"Miktar",align:"right",ct:"number",width:177,attr:"{fts:'font-weight:bold;font-size:12px'}",unEditable:true});O1119.nm="O1119"; O1121=new Ext.grid.column.Column({ogrid:OF56,sortable:false,dataIndex:"3",renderer:_rndcll_,rdonly:false,text:"S. Miktar",align:"right",ct:"number",width:177,attr:"{fts:'font-weight:bold;font-size:12px'}",editor:{xtype:"numberfield",fieldStyle:"font-weight:bold;font-size:12px;color:#000000"}});O1121.nm="O1121";O1121.editor.uform=OF56.uform;O1121.editor.focusDisabled=true;O1121.editor.isCellEditor=true;var OF56_Cols=[O1109,O1111,O1119,O1121];OF56.reconfigure(null,OF56_Cols);OF56.uniConfigColumns();O1109.setElProp({"text-align":"center"},null,0,null,null,"titleEl");O1111.setElProp({"text-align":"center"},null,0,null,null,"titleEl");O1119.setElProp({"text-align":"center"},null,0,null,null,"titleEl");O1121.setElProp({"text-align":"center"},null,0,null,null,"titleEl");OF5A.load({params:{options:1}});OF8B.stateValue="50D91F060000000000000000";OF8F.removeAll(false);OF8F.insert(0,{id:"8",val:"80 X 150"});OF8F.insert(1,{id:"9",val:"80 X 300"});OF8F.insert(2,{id:"10",val:"100 X 300"});OF8F.insert(3,{id:"11",val:"100 X 200"});OF8F.insert(4,{id:"12",val:"120 X 180"});OF8F.insert(5,{id:"13",val:"160 X 230"});OF8F.insert(6,{id:"14",val:"200 X 300"});OF8F.insert(7,{id:"15",val:"200 X 290"});OF79.setElProp("innerHTML","\x3Cimg src='/cache/test01_exe/res/__B25EEE4CDE345A1B908F7CFB.jpg' width='138' height='313' hspace='0' vspace='0'\x3E",2);_sfv_(OF8B,0,""); Unigui versiyon : 1.10.0.1451 Delphi versiyon :10.2 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 24, 2018 Share Posted April 24, 2018 Hi, Which build are you using?! Can you please explain in more detail?When do you get this error? Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted April 24, 2018 Author Share Posted April 24, 2018 Unigui versiyon: 1.10.0.1451 Delphi versiyon: 10.2 I have a unidbgrid in the program I have a unidblookupcombobox in UniHiddenPanel I get this error when I turn off the screen after running it the first time and it works fine. Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted April 24, 2018 Author Share Posted April 24, 2018 Improved when closing and opening the query. Thanks regards. Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted April 25, 2018 Author Share Posted April 25, 2018 UniDBVerticalGrid => OncellClick has code in click event This error occurs if the user clicks multiple times. (The user clicks again before the process is completed.) How do I resolve more clicks without using UniscreenMask? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 25, 2018 Administrators Share Posted April 25, 2018 What is the code in CellClick event? Can you send a test case? Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted April 25, 2018 Author Share Posted April 25, 2018 UniMainModule.Query1.First; while not UniMainModule.Query1.Eof do begin UniMainModule.MemTable.Append; UniMainModule.MemTable.Edit; UniMainModule.MemTableAdi.Text := UniMainModule.Query1Adi.Text; UniMainModule.MemTableimage.Assign(UniMainModule.Query1image); UniMainModule.MemTable.Post; UniMainModule.Query1.Next; end; UniMainModule.MemTable.First; end; Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 25, 2018 Administrators Share Posted April 25, 2018 Bu çalışan loop grid'in datasını da etkiliyor mu? Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted April 26, 2018 Author Share Posted April 26, 2018 Mantık olarak bu loop uzun sürebildiğinden işlem bitmeden kullanıcı tekrar tekrar bu olayı tetikletebiliyor sorunda burada oluşuyor. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 26, 2018 Administrators Share Posted April 26, 2018 Cell'dem LookupCombo'yu kaldırdığınız zaman değişiyor mu? Yani burada LookupCombo'nun rolü tam olarak nedir? Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted April 26, 2018 Author Share Posted April 26, 2018 LookupCombo nun datasource ve dataset bağlantılarını kaldırınca sorun düzeliyor. Kod ile temp bir datasource oluşturuyorum önce onu ekleyip işlem bitimine tekrar eski haline alıyorum fakat bu şekilde hata yine oluşuyor. var DStemp: TDataSource; begin cmbLook.DataSource := DStemp; cmbLook.ListSource := DStemp; UniMainModule.Query1.First; while not UniMainModule.Query1.Eof do begin UniMainModule.MemTable.Append; UniMainModule.MemTable.Edit; UniMainModule.MemTableAdi.Text := UniMainModule.Query1Adi.Text; UniMainModule.MemTableimage.Assign(UniMainModule.Query1image); UniMainModule.MemTable.Post; UniMainModule.Query1.Next; end; UniMainModule.MemTable.First; end; cmbLook.DataSource := UniMainModule.DS1; cmbLook.ListSource := UniMainModule.DS02; Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted April 26, 2018 Author Share Posted April 26, 2018 LookupCombo yüzünden oluşuyor bu hata, yukarıdaki işlemin sonunu LookupCombonun listesini dolduruyor. Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted April 26, 2018 Author Share Posted April 26, 2018 Hata hala aynı devam ediyor ve aşağıdaki hatayı veriyor nasıl çözebilirim? _rsov_(O189,26);O20D.setReadOnly(true);O211.removeAll(false);O20D.setReadOnly(false);O211.removeAll(false);O211.insert(0,{id:"109",val:"A"});O211.insert(1,{id:"110",val:"K"});O211.insert(2,{id:"111",val:"B"});O211.insert(3,{id:"112",val:"E"});O211.insert(4,{id:"113",val:"C"});O1DC.load({params:{options:1}});_sfv_(O20D,0,""); Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 26, 2018 Administrators Share Posted April 26, 2018 Hata kodu nedir? Cell'e her tıkladığınızda listeyi güncellemeniz verimli bir yöntem değildir. Buna bir çözüm bulmamız için bu hatayı tekrar edebilen bir test projesi bize yollamanız gerekiyor. Bizim DBLookupCombo demo'larından birini değiştererek test uygulamasına çevirebilirsiniz. Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted April 27, 2018 Author Share Posted April 27, 2018 Sorunun kaynağını tam olarak tespit edince çözüldü. FDMemTable kullanıyordum, içindeki verileri temizlemek için aşağıdaki gibi kullanıyordum; MemTable.Close; MemTable.Open; Bunun yerine aşağıdaki gibi kullanınca sorun çözüldü; MemTable.IsEmpty; UniMainModule.MemTable.EmptyDataSet; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.