<?xml version="1.0" encoding="iso-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Clomosy | Forum : TclProListView veri güncelleme</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : TclProListView veri güncelleme]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 13:15:00 +0000</pubDate>
  <lastBuildDate>Wed, 16 Jul 2025 11:50:53 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=1083</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Clomosy | Forum]]></title>
   <url>https://forum.clomosy.com.tr/forum_images/logo.png</url>
   <link>https://forum.clomosy.com.tr/</link>
  </image>
  <item>
   <title><![CDATA[TclProListView veri güncelleme : TclProGrid bile&#351;eni kullanarak...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1083&amp;PID=2216#2216</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=310">Sudesigirci</a><br /><strong>Konu:</strong> 1083<br /><strong>Gönderim Zamanı:</strong> 16&nbsp;Temmuz&nbsp;2025 Saat 11:50<br /><br /><div>&nbsp;TclProGrid bileşeni kullanarak aşağıdaki şekilde kodumu yeniden düzenleyerek hatayı çözdüm&nbsp;</div><div><br></div><div>var</div><div>&nbsp; MyForm: TclForm;</div><div>&nbsp; mainVertSB: TclVertScrollBox;</div><div>&nbsp; clProGrid: TClProGrid;</div><div>&nbsp; lblBaslik: TClLabel;</div><div>&nbsp; Qry: TClSQLiteQuery;</div><div>&nbsp; btnStatuGuncelle:TClProButton;</div><div>&nbsp; seciliEmail, seciliModul: String;</div><div>&nbsp; &nbsp;seciliID: String;</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;</div><div>void GetTaleplerGrid;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; &nbsp;Qry = Clomosy.DBSQLiteQueryWith(</div><div>&nbsp; 'SELECT kullanici_email, modul, aciklama, status, id FROM Talepler'</div><div>);</div><div><br></div><div><br></div><div>&nbsp; &nbsp; Qry.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; if Qry.Found {</div><div>&nbsp; &nbsp; &nbsp; clProGrid = MyForm.AddNewProGrid(mainVertSB, 'clProGrid');</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Align = alTop;</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Height = 400;</div><div>&nbsp; &nbsp; &nbsp; clProGrid.Options.Selection.Mode = smSingleCell;</div><div>&nbsp; &nbsp; &nbsp; clProGrid.ConnectDataSet(Qry);</div><div>&nbsp; &nbsp; &nbsp; clProGrid.AutoSizeColumns(True, 100);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MyForm.AddNewEvent(clProGrid, tbeOnProGridCellClick, 'ProGridSatirSecildi');</div><div>&nbsp; &nbsp; } else {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Veri bulunamadı.');</div><div>&nbsp; &nbsp; }</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Hata: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void ProGridSatirSecildi;</div><div>var</div><div>&nbsp; satirNo: Integer;</div><div>{</div><div>&nbsp; satirNo = MyForm.ClSenderRow;</div><div>&nbsp; seciliID = clProGrid.Cells&#091;4, satirNo&#093;;</div><div>}</div><div><br></div><div>void StatuyuGuncelle;</div><div><br></div><div>{</div><div>&nbsp; if seciliID &lt;&gt; '' {</div><div>&nbsp; &nbsp; &nbsp; Qry = Clomosy.DBSQLiteQueryWith(</div><div>&nbsp; &nbsp; &nbsp; 'UPDATE Talepler SET status = ''' + 'Çözüldü' + ''' WHERE id = ' + seciliID</div><div>&nbsp; &nbsp; );</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ShowMessage('Durum "Çözüldü" olarak güncellendi.');</div><div>&nbsp; &nbsp; GetTaleplerGrid;</div><div>&nbsp; } else {</div><div>&nbsp; &nbsp; ShowMessage('Lütfen önce bir satıra tıklayın.');</div><div>&nbsp; }</div><div>}</div><div><br></div><div>{</div><div>&nbsp; MyForm = TclForm.Create(Self);</div><div><br></div><div>&nbsp; mainVertSB = MyForm.AddNewVertScrollBox(MyForm, 'mainVertSB');</div><div>&nbsp; mainVertSB.Align = alClient;</div><div><br></div><div>&nbsp; lblBaslik = MyForm.AddNewLabel(mainVertSB, 'lblBaslik', 'Tüm Talepler Listesi');</div><div>&nbsp; lblBaslik.Align = alTop;</div><div>&nbsp; lblBaslik.Height = 50;</div><div>&nbsp; lblBaslik.TextSettings.Font.Size = 24;</div><div>&nbsp; lblBaslik.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; lblBaslik.TextSettings.HorzAlign = taCenter;</div><div><br></div><div>&nbsp; btnStatuGuncelle = MyForm.AddNewProButton(mainVertSB, 'btnStatuGuncelle', 'Durumu Güncelle');</div><div>&nbsp; btnStatuGuncelle.Align = alTop;</div><div>&nbsp; btnStatuGuncelle.Height = 50;</div><div>&nbsp; GetTaleplerGrid;</div><div>&nbsp;&nbsp;</div><div>&nbsp; MyForm.AddNewEvent(btnStatuGuncelle, tbeOnClick, 'StatuyuGuncelle');</div><div><br></div><div>&nbsp; MyForm.Run;</div><div>}</div><div><br></div>]]>
   </description>
   <pubDate>Wed, 16 Jul 2025 11:50:53 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1083&amp;PID=2216#2216</guid>
  </item> 
  <item>
   <title><![CDATA[TclProListView veri güncelleme : Merhaba arkada&#351;lar , a&#351;a&#287;&#305;daki...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1083&amp;PID=2190#2190</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=310">Sudesigirci</a><br /><strong>Konu:</strong> 1083<br /><strong>Gönderim Zamanı:</strong> 14&nbsp;Temmuz&nbsp;2025 Saat 09:24<br /><br />Merhaba arkadaşlar , aşağıdaki kodda butona basınca statü güncellemeyi amaçladım fakat butona basınca hata alıyorum neyden kaynaklandığını bulamadım yardımcı olur musunuz<div><br></div><div><div>var</div><div>&nbsp; MyForm: TclForm;</div><div>&nbsp; ListView1: TClProListView;</div><div>&nbsp; DesignerPanel1: TClProListViewDesignerPanel;</div><div>&nbsp; lblEmail, lblModul, lblAciklama, lblDurum, title: TClProLabel;</div><div>&nbsp; btnStatu: TClProButton;</div><div>&nbsp; Qry: TClSQLiteQuery;</div><div>&nbsp; kullanici_email: String;</div><div><br></div><div><br></div><div><br></div><div>void GetData;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteConnect(Clomosy.AppFilesPath + 'musteriistekanalizi.db3', '');</div><div>&nbsp; &nbsp; kullanici_email = Clomosy.GlobalVariableString;</div><div><br></div><div>&nbsp; &nbsp; Qry = Clomosy.DBSQLiteQueryWith(</div><div>&nbsp; &nbsp; &nbsp; 'SELECT ' +</div><div>&nbsp; &nbsp; &nbsp; 'kullanici_email as MAIN_TEXT, ' +</div><div>&nbsp; &nbsp; &nbsp; 'modul as SIDE_TEXT_TOP, ' +</div><div>&nbsp; &nbsp; &nbsp; 'aciklama as SIDE_TEXT_BOTTOM, ' +</div><div>&nbsp; &nbsp; &nbsp; 'status as durum, ' +</div><div>&nbsp; &nbsp; &nbsp; 'id as RECORD_GUID ' +</div><div>&nbsp; &nbsp; &nbsp; 'FROM Talepler'</div><div>&nbsp; &nbsp; );</div><div><br></div><div>&nbsp; &nbsp; Qry.OpenOrExecute;</div><div>&nbsp; &nbsp; ListView1.clLoadProListViewDataFromDataset(Qry);</div><div>&nbsp; &nbsp; Qry.Close;</div><div><br></div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Exception class: ' + LastExceptionClassName + ' Exception Message: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void onItemClicked;</div><div>{</div><div>&nbsp; ShowMessage(ListView1.clSelectedItemData('MAIN_TEXT'));</div><div>}</div><div><br></div><div>void onStatuDegistir;</div><div>var</div><div>&nbsp; secilenID: Integer;</div><div>&nbsp; mevcutDurum: String;</div><div>{</div><div>&nbsp; &nbsp;ShowMessage('buton çalışıyor');</div><div>&nbsp; try</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; secilenID = ListView1.clSelectedItemData('RECORD_GUID');</div><div><br></div><div>&nbsp; &nbsp; Qry = Clomosy.DBSQLiteQueryWith('SELECT status FROM Talepler WHERE id = ' + secilenID);</div><div>&nbsp; &nbsp; Qry.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; if Qry.Found {</div><div>&nbsp; &nbsp; &nbsp; mevcutDurum = Qry.FieldByName('status');</div><div><br></div><div>&nbsp; &nbsp; &nbsp; if mevcutDurum == 'Bekliyor' {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.SQL.Text = 'UPDATE Talepler SET status = ' + QuotedStr('Çözüldü') + ' WHERE id = ' + secilenID;</div><div>&nbsp; &nbsp; &nbsp; } else {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.SQL.Text = 'UPDATE Talepler SET status = ' + QuotedStr('Bekliyor') + ' WHERE id = ' + secilenID;</div><div>&nbsp; &nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Statü güncellendi.');</div><div>&nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; }</div><div><br></div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Exception class: ' + LastExceptionClassName + ' Exception Message: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div><br></div><div>void CreateDesignerPanelItems;</div><div>{</div><div>&nbsp; lblEmail = MyForm.AddNewProLabel(DesignerPanel1, 'MAIN_TEXT', '-');</div><div>&nbsp; lblEmail.Align = AlTop;</div><div>&nbsp; lblEmail.Height = 25;</div><div>&nbsp; lblEmail.clProSettings.FontSize = 14;</div><div>&nbsp; lblEmail.clProSettings.FontColor = clAlphaColor.clBlack;</div><div>&nbsp; lblEmail.SetclProSettings(lblEmail.clProSettings);</div><div>&nbsp; DesignerPanel1.AddPanelObject(lblEmail, clText);</div><div><br></div><div>&nbsp; lblModul = MyForm.AddNewProLabel(DesignerPanel1, 'SIDE_TEXT_TOP', '-');</div><div>&nbsp; lblModul.Align = AlTop;</div><div>&nbsp; lblModul.Height = 25;</div><div>&nbsp; lblModul.clProSettings.FontSize = 14;</div><div>&nbsp; lblModul.clProSettings.FontColor = clAlphaColor.clBlack;</div><div>&nbsp; lblModul.SetclProSettings(lblModul.clProSettings);</div><div>&nbsp; DesignerPanel1.AddPanelObject(lblModul, clText1);</div><div><br></div><div>&nbsp; lblAciklama = MyForm.AddNewProLabel(DesignerPanel1, 'SIDE_TEXT_BOTTOM', '-');</div><div>&nbsp; lblAciklama.Align = AlTop;</div><div>&nbsp; lblAciklama.Height = 25;</div><div>&nbsp; lblAciklama.clProSettings.FontSize = 14;</div><div>&nbsp; lblAciklama.clProSettings.FontColor = clAlphaColor.clBlack;</div><div>&nbsp; lblAciklama.SetclProSettings(lblAciklama.clProSettings);</div><div>&nbsp; DesignerPanel1.AddPanelObject(lblAciklama, clText2);</div><div><br></div><div>&nbsp; lblDurum = MyForm.AddNewProLabel(DesignerPanel1, 'durum', '-');</div><div>&nbsp; lblDurum.Align = AlTop;</div><div>&nbsp; lblDurum.Height = 25;</div><div>&nbsp; lblDurum.clProSettings.FontSize = 14;</div><div>&nbsp; lblDurum.clProSettings.FontColor = clAlphaColor.clWhite;</div><div>&nbsp; lblDurum.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#FFD700'); // Sarı</div><div>&nbsp; lblDurum.clProSettings.RoundWidth = 10;</div><div>&nbsp; lblDurum.clProSettings.RoundHeight = 10;</div><div>&nbsp; lblDurum.SetclProSettings(lblDurum.clProSettings);</div><div>&nbsp; DesignerPanel1.AddPanelObject(lblDurum, clText3);</div><div><br></div><div>&nbsp; btnStatu = MyForm.AddNewProButton(DesignerPanel1, 'btnStatu', 'Statü Değiştir');</div><div>&nbsp; btnStatu.Align = alBottom;</div><div>&nbsp; btnStatu.Height = 30;</div><div>&nbsp; btnStatu.Margins.Top = 5;</div><div>&nbsp; btnStatu.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#007ACC');</div><div>&nbsp; btnStatu.clProSettings.FontColor = clAlphaColor.clWhite;</div><div>&nbsp; btnStatu.clProSettings.RoundWidth = 10;</div><div>&nbsp; btnStatu.clProSettings.RoundHeight = 10;</div><div>&nbsp; btnStatu.clProSettings.FontSize = 12;</div><div>&nbsp; btnStatu.SetclProSettings(btnStatu.clProSettings);</div><div>&nbsp; DesignerPanel1.AddPanelObject(btnStatu, clText);</div><div><br></div><div>&nbsp; MyForm.AddNewEvent(btnStatu, tbeOnClick, 'onStatuDegistir');</div><div>}</div><div><br></div><div>void CreateDesignerPanel;</div><div>{</div><div>&nbsp; DesignerPanel1 = MyForm.AddNewProListViewDesignerPanel(ListView1, 'DesignerPanel1');</div><div>&nbsp; DesignerPanel1.Height = 160;</div><div>&nbsp; DesignerPanel1.Width = 300;</div><div>&nbsp; DesignerPanel1.clProSettings.BackgroundColor = clAlphaColor.clWhite;</div><div>&nbsp; DesignerPanel1.clProSettings.BorderColor = clAlphaColor.clGray;</div><div>&nbsp; DesignerPanel1.clProSettings.BorderWidth = 1;</div><div>&nbsp; DesignerPanel1.clProSettings.RoundHeight = 10;</div><div>&nbsp; DesignerPanel1.clProSettings.RoundWidth = 10;</div><div>&nbsp; DesignerPanel1.SetclProSettings(DesignerPanel1.clProSettings);</div><div>&nbsp; ListView1.SetDesignerPanel(DesignerPanel1);</div><div>&nbsp; CreateDesignerPanelItems;</div><div>}</div><div><br></div><div>void CreateListView;</div><div>{</div><div>&nbsp; ListView1 = MyForm.AddNewProListView(MyForm, 'ListView1');</div><div>&nbsp; ListView1.Align = alClient;</div><div>&nbsp; ListView1.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#000080');</div><div>&nbsp; ListView1.clProSettings.RoundHeight = 5;</div><div>&nbsp; ListView1.clProSettings.RoundWidth = 5;</div><div>&nbsp; ListView1.clProSettings.ViewType = lvIcon;</div><div>&nbsp; ListView1.clProSettings.ItemHeight = 160;</div><div>&nbsp; ListView1.clProSettings.ColCount = 1;</div><div>&nbsp; ListView1.SetclProSettings(ListView1.clProSettings);</div><div>&nbsp; MyForm.AddNewEvent(ListView1, tbeOnItemClick, 'onItemClicked');</div><div><br></div><div>&nbsp; CreateDesignerPanel;</div><div>}</div><div><br></div><div><br></div><div><br></div><div>{</div><div>&nbsp; MyForm = TclForm.Create(Self);</div><div>&nbsp;&nbsp;</div><div>&nbsp; title = MyForm.AddNewProLabel(MyForm, 'title', 'Gelen Talepler');</div><div>&nbsp; title.Align = alMostTop;</div><div>&nbsp; title.Margins.Top = 10;</div><div>&nbsp; title.Height = 40;</div><div>&nbsp; title.clProSettings.FontSize = 30;</div><div>&nbsp; title.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; title.clProSettings.FontHorzAlign = palCenter;</div><div>&nbsp; title.SetclProSettings(title.clProSettings);</div><div><br></div><div>&nbsp; CreateListView;</div><div>&nbsp; GetData;</div><div><br></div><div><br></div><div>&nbsp; MyForm.Run;</div><div>}&nbsp;</div></div>]]>
   </description>
   <pubDate>Mon, 14 Jul 2025 09:24:47 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1083&amp;PID=2190#2190</guid>
  </item> 
 </channel>
</rss>