<?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 : ProGrid - sql selection sorgusu</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : ProGrid - sql selection sorgusu]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 10:53:00 +0000</pubDate>
  <lastBuildDate>Fri, 25 Jul 2025 11:43:30 +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=1084</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[ProGrid - sql selection sorgusu : sql tablosunu GridAd&#305;.ConnectDataSet(qry)...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1084&amp;PID=2362#2362</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=313">kenan</a><br /><strong>Konu:</strong> 1084<br /><strong>Gönderim Zamanı:</strong> 25&nbsp;Temmuz&nbsp;2025 Saat 11:43<br /><br /><div>sql tablosunu&nbsp; &nbsp;GridAdı.ConnectDataSet(qry) ile bağlayacağız aşşağıdaki gibi,<br>&nbsp;ekstradan stun başlıkları eklemeye gerek yok&nbsp;<br><br>void getdatabasetogrid;</div><div>{</div><div>&nbsp;&nbsp;</div><div>&nbsp; qry = Clomosy.DBSQLiteQueryWith('SELECT ID,plasiyerName,productName,price,Tur,currentdateDB,comment FROM Satis ORDER BY ID DESC');</div><div>&nbsp; qry.OpenOrExecute;</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (qry.Found)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; GridSales.ConnectDataSet(qry);&nbsp; &nbsp; &nbsp;</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage(' Veri Tabanında Veri Yok !')</div><div>&nbsp; }</div><div>}</div><div><br></div>]]>
   </description>
   <pubDate>Fri, 25 Jul 2025 11:43:30 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1084&amp;PID=2362#2362</guid>
  </item> 
  <item>
   <title><![CDATA[ProGrid - sql selection sorgusu : //&#246;ncelikle merhaba , MyMQTTPublishReceived...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1084&amp;PID=2193#2193</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=313">kenan</a><br /><strong>Konu:</strong> 1084<br /><strong>Gönderim Zamanı:</strong> 14&nbsp;Temmuz&nbsp;2025 Saat 12:15<br /><br /><div>//öncelikle merhaba , MyMQTTPublishReceived metodunun içine , proGridde sql SELECT sorgusunu nasıl yapabiliriz&nbsp; , database attığım verileri nasıl proGridde hepsini görürüz ?</div><div><br></div><div>var&nbsp;</div><div><br></div><div>yoneticiForm: TclForm;</div><div>MyMQTT : TclMQTT;</div><div>plasiyer,urun,tutar,tur,AAciklama,tarih :String;</div><div>date:TClProDateEdit;</div><div>GridSales:TclProGrid;</div><div>j:Integer;</div><div>Password, DB : String;</div><div>qry:TClSqlQuery;</div><div><br></div><div>void creatDatabaseAndConnect;</div><div>{</div><div>&nbsp; Password = '';</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (Clomosy.PlatformIsMobile)</div><div>&nbsp; &nbsp; DB = Clomosy.AppFilesPath + 'new.db';</div><div>&nbsp; else</div><div>&nbsp; &nbsp; DB = 'C:\klasor\new.db3';</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; try</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteConnect(DB, Password);</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text='CREATE TABLE IF NOT EXISTS Sales(plasiyerName Text, productName Text, price Text,Tur Text,comment Text,currentdateDB Text)';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; except</div><div>&nbsp; ShowMessage('Exception Class: '+LastExceptionClassName+'Exception Message: '+LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div><br></div><div>void MyMQTTPublishReceived;</div><div>{</div><div>try</div><div>&nbsp; if(MyMQTT.ReceivedAlright)</div><div>&nbsp; {</div><div>&nbsp;&nbsp;</div><div>&nbsp; //BURADA JSON ILE MQTT DEN GELEN VERILERI AYIRIP DEGISKENLERIN ICINE ATIYORUZ</div><div>&nbsp; plasiyer = Clomosy.CLParseJSON(MyMQTT.ReceivedMessage,'plasiyer');</div><div>&nbsp; urun = Clomosy.CLParseJSON(MyMQTT.ReceivedMessage,'urun_adi');</div><div>&nbsp; tutar = Clomosy.CLParseJSON(MyMQTT.ReceivedMessage,'Satış');</div><div>&nbsp; tur = Clomosy.CLParseJSON(MyMQTT.ReceivedMessage,'satis_turu');</div><div>&nbsp; AAciklama = Clomosy.CLParseJSON(MyMQTT.ReceivedMessage,'Aciklama');</div><div>&nbsp; tarih = DateToStr(date.DateStr);</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; //database e ekleme</div><div>&nbsp; Clomosy.DBSQLiteQuery.SQL.Text = 'INSERT INTO Sales (plasiyerName,productName,price,Tur,comment,currentdateDB) VALUES ('&nbsp;</div><div>&nbsp; +QuotedStr(Plasiyer)+ ','</div><div>&nbsp; +QuotedStr(Urun)+ ','</div><div>&nbsp; +QuotedStr(Tutar)+','</div><div>&nbsp; +QuotedStr(tur)+','</div><div>&nbsp; +QuotedStr(AAciklama)+','</div><div>&nbsp; +QuotedStr(tarih)+')';</div><div>&nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp;</div><div>&nbsp; ShowMessage('VERİLER DATA BASE E EKLENDİ....');</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; //BURADA MQTT ILE GELEN VERILERI GRID DE GOSTERIYORUZ(SQL DEN CEKMEDEN VERILERI GRID DE GECICI TUTUYOR)</div><div>&nbsp; GridSales.BeginUpdate;</div><div>&nbsp; for(j=0 to 5)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; Case j of</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; 0:GridSales.Cells&#091;j,GridSales.RowCount&#093; = Plasiyer;</div><div>&nbsp; &nbsp; &nbsp; 1:GridSales.Cells&#091;j,GridSales.RowCount&#093; = Urun;</div><div>&nbsp; &nbsp; &nbsp; 2:GridSales.Cells&#091;j,GridSales.RowCount&#093; = Tutar;</div><div>&nbsp; &nbsp; &nbsp; 3:GridSales.Cells&#091;j,GridSales.RowCount&#093; = tur;</div><div>&nbsp; &nbsp; &nbsp; 4:GridSales.Cells&#091;j,GridSales.RowCount&#093; = tarih;</div><div>&nbsp; &nbsp; &nbsp; 5:GridSales.Cells&#091;j,GridSales.RowCount&#093; = AAciklama;</div><div>&nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; GridSales.RowCount= GridSales.RowCount + 1 ;</div><div>&nbsp; GridSales.EndUpdate;</div><div>&nbsp;&nbsp;</div><div>}</div><div>&nbsp; else</div><div>&nbsp; &nbsp;ShowMessage('veri alınamadı');</div><div><br></div><div>except</div><div>ShowMessage(LastExceptionMessage);</div><div>}</div><div>}</div><div><br></div><div><br></div><div><br></div><div><br></div><div>{</div><div>&nbsp; yoneticiForm = TclForm.Create(self);</div><div>&nbsp; yoneticiForm.SetFormColor('#ebebeb', '#cfcfcf', clGVertical);</div><div>&nbsp; date = yoneticiForm.AddNewProDateEdit(yoneticiForm,'date');</div><div>&nbsp; yoneticiForm.LytTopBar.Visible = True;</div><div>&nbsp; creatDatabaseAndConnect;</div><div>&nbsp;&nbsp;</div><div>&nbsp; GridSales = yoneticiForm.AddNewProGrid(yoneticiForm, 'GridSales');</div><div>&nbsp; GridSales.Align = alClient;</div><div>&nbsp; GridSales.RowCount=1;</div><div>&nbsp; GridSales.ColumnCount = 5;</div><div>&nbsp; GridSales.Cells&#091;0,0&#093; = 'Plasiyer_adı';</div><div>&nbsp; GridSales.Cells&#091;1,0&#093; = 'urun_adi';</div><div>&nbsp; GridSales.Cells&#091;2,0&#093; = 'acıklama';</div><div>&nbsp; GridSales.Cells&#091;3,0&#093; = 'satis_turu';&nbsp;</div><div>&nbsp; GridSales.Cells&#091;4,0&#093; = 'Tarih';</div><div>&nbsp; GridSales.Cells&#091;5,0&#093; = 'acıklama';</div><div>&nbsp; GridSales.Options.Selection.Mode = smSingleRow;</div><div>&nbsp;&nbsp;</div><div>&nbsp; MyMQTT =yoneticiForm.addnewMQTTConnection(yoneticiForm,'MyMQTT');</div><div>&nbsp; MyMQTT.Channel = 'Chat';</div><div>&nbsp; MyMQTT.Connect;</div><div>&nbsp;&nbsp;</div><div><br></div><div>&nbsp;&nbsp;</div><div>&nbsp; yoneticiForm.AddNewEvent(MyMQTT,tbeOnMQTTPublishReceived,'MyMQTTPublishReceived');</div><div>&nbsp;&nbsp;</div><div>&nbsp; yoneticiForm.Run;</div><div>}</div>]]>
   </description>
   <pubDate>Mon, 14 Jul 2025 12:15:17 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1084&amp;PID=2193#2193</guid>
  </item> 
 </channel>
</rss>