Jump to content

UnidbLookCombobox Kod İle Seçim Yapma


pro_imaj

Recommended Posts

Merhaba;

 

UnidbLookCombobox => ListField alanındaki text değeri otomatik nasıl getirebilirim.

 

Örneğin;

UnidbLookCombobox => ListField listesindeki herhangi bir değer tabloda var, var olan ilgili kayıtı otomatik nasıl seçtire bilirim?

 

UnidbLookCombobox Listesindeki Veriler

A Veri

B Veri

C Veri

 

Ben tabloda B Veri değerini tutuyorum ve bunu otomatik seçtirmek istiyorum (Kod ile)

 

Teşekkürler.

Link to comment
Share on other sites

Sorunu aşağıdaki şekilde çözdüm;

//Query ilgili satıra konumlansın  
UniMainModule.QList.Filter := 'Tanim = ''' +
    UniMainModule.QKullanici.FieldByName('Tanim').AsString + ''' ';
  UniMainModule.QList.FindFirst;

//dblookupcombobox ilgili alan seçilsin. 
  look.KeyValue := UniMainModule.QTest.FieldByName
    ('Tanim').AsString;

//Seçim işlemi yürüt
  lookSelect(Sender);
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...