Jump to content

UniDbGrid Hidden Panel içindeki içindeki Unidblookcombobox Bazen Çalışmıyor


pro_imaj

Recommended Posts

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.

Link to comment
Share on other sites

  • 2 weeks later...

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,"");

7c059a283a.png

 

Unigui versiyon : 1.10.0.1451

Delphi versiyon  :10.2

Link to comment
Share on other sites


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;

 

Link to comment
Share on other sites

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;
Link to comment
Share on other sites

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,"");
Link to comment
Share on other sites

  • Administrators

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.

Link to comment
Share on other sites

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;
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...