<?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 : prodateEdit FireDAC  Hatası</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : prodateEdit FireDAC  Hatası]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 14:25:02 +0000</pubDate>
  <lastBuildDate>Fri, 18 Jul 2025 15:10:09 +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=1100</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[prodateEdit FireDAC  Hatası : merhaba kodun d&#252;zeltilmi&#351; ve &#231;al&#305;&#351;an...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1100&amp;PID=2266#2266</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=313">kenan</a><br /><strong>Konu:</strong> 1100<br /><strong>Gönderim Zamanı:</strong> 18&nbsp;Temmuz&nbsp;2025 Saat 15:10<br /><br /><div>merhaba&nbsp; kodun düzeltilmiş ve çalışan hali alttadır&nbsp; teşekkür ederim ilgilenen herkese</div><div><br></div><div>void getdatabaseFiltered;</div><div>{</div><div>&nbsp; var baslangicStr, bitisStr : String;</div><div><br></div><div>&nbsp; try</div><div>&nbsp; &nbsp; qry2 = 'SELECT * FROM Satis WHERE 1=1';</div><div><br></div><div>&nbsp; &nbsp; if (BaslangicTarihi.DateStr &lt;&gt; '') {</div><div>&nbsp; &nbsp; &nbsp; baslangicStr = FormatDateTime('yyyy-mm-dd', BaslangicTarihi.Date);</div><div>&nbsp; &nbsp; &nbsp; qry2 = qry2 + ' AND currentdateDB &gt;= ' + QuotedStr(baslangicStr);</div><div>&nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; if (BitisTarihi.DateStr &lt;&gt; '') {</div><div>&nbsp; &nbsp; &nbsp; bitisStr = FormatDateTime('yyyy-mm-dd', BitisTarihi.Date);</div><div>&nbsp; &nbsp; &nbsp; qry2 = qry2 + ' AND currentdateDB &lt;= ' + QuotedStr(bitisStr);</div><div>&nbsp; &nbsp; }</div><div><span style="white-space:pre">	</span></div><div>&nbsp; &nbsp; qry2 = qry2 + ' ORDER BY ID DESC';</div><div><br></div><div>&nbsp; &nbsp; qry = Clomosy.DBSQLiteQueryWith(qry2);</div><div>&nbsp; &nbsp; qry.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; if (qry.Found) {</div><div>&nbsp; &nbsp; &nbsp; GridSales.ConnectDataSet(qry);</div><div>&nbsp; &nbsp; &nbsp; setGrids;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Uygun kriterde sonuç yok!');</div><div>&nbsp; &nbsp; }</div><div><br></div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage(LastExceptionMessage);</div><div>&nbsp; }</div><div>}&nbsp;</div>]]>
   </description>
   <pubDate>Fri, 18 Jul 2025 15:10:09 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1100&amp;PID=2266#2266</guid>
  </item> 
  <item>
   <title><![CDATA[prodateEdit FireDAC  Hatası : getdatabaseFiltered metodundaShowMessage(&amp;#039;baslang&#305;&#231;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1100&amp;PID=2263#2263</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=313">kenan</a><br /><strong>Konu:</strong> 1100<br /><strong>Gönderim Zamanı:</strong> 18&nbsp;Temmuz&nbsp;2025 Saat 14:41<br /><br /><div>&nbsp;getdatabaseFiltered metodunda&nbsp;&nbsp;ShowMessage('baslangıç tarihi :'+ BaslangicTarihi.DateStr);</div><div>&nbsp;ekrana yazdırdıktan sonra, hata çıkıyor&nbsp; yani büyük ihtimal</div><div>&nbsp;qry2 = qry2 + ' AND currentdateDB &gt;= "' +&nbsp; FormatDateTime('yyyy-mm-dd', BaslangicTarihi.Date) + '" ' satırında bir sıkıntı var&nbsp;</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:String;</div><div>date,BaslangicTarihi,BitisTarihi :TClProDateEdit;</div><div>GridSales:TclProGrid;</div><div>FRow,FCol,j,i :Integer;</div><div>Password, DB : String;</div><div>qry,qry2:TCLSQLiteQuery;</div><div>panel1,panel2: TclProPanel;</div><div>filtre,live:TClProButton;</div><div>deger:Boolean;</div><div><br></div><div><br></div><div><br></div><div>//-------------------------------------------------------------------------------------------------------------------------------</div><div>//-------------------------------------------------------------------------------------------------------------------------------</div><div><br></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.db3';</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 Satis(ID INTEGER PRIMARY KEY AUTOINCREMENT,plasiyerName Text, productName Text, price Text,Tur Text,comment Text,currentdateDB Text)';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp;</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>//-------------------------------------------------------------------------------------------------------------------------------</div><div>//-------------------------------------------------------------------------------------------------------------------------------</div><div><br></div><div><br></div><div>void setGrids;</div><div>{</div><div>&nbsp;&nbsp;</div><div>&nbsp;</div><div>&nbsp; for (i = 0 to GridSales.ColumnCount-1 )</div><div>&nbsp; {</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp;GridSales.HorzAlignments&#091;i,0&#093; = 0; // Merkez</div><div><br></div><div>&nbsp; &nbsp; //başlıklar hariç tüm satırlar</div><div>&nbsp; &nbsp; for (j = 1 to GridSales.RowCount-1 )</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; GridSales.FontStyles&#091;i,j&#093; = 0; // Bold</div><div>&nbsp; &nbsp; &nbsp; GridSales.FontSizes&#091;i,j&#093; = 14;</div><div>&nbsp; &nbsp; &nbsp; GridSales.HorzAlignments&#091;i,j&#093; = 0; // Merkez</div><div>&nbsp; &nbsp; &nbsp; GridSales.VertAlignments&#091;i,j&#093; = 0; // Merkez</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }&nbsp;&nbsp;</div><div><br></div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; GridSales.ColumnWidths&#091;0&#093; = 50;</div><div>&nbsp; &nbsp; GridSales.ColumnWidths&#091;1&#093; = 110;</div><div>&nbsp; &nbsp; GridSales.ColumnWidths&#091;2&#093; = 110;</div><div>&nbsp; &nbsp; GridSales.ColumnWidths&#091;3&#093; = 100;&nbsp;</div><div>&nbsp; &nbsp; GridSales.ColumnWidths&#091;4&#093; = 80;</div><div>&nbsp; &nbsp; GridSales.ColumnWidths&#091;5&#093; = 120;</div><div>&nbsp; &nbsp; GridSales.ColumnWidths&#091;6&#093; = 200;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; GridSales.FontSizes&#091;0,0&#093; = 14;</div><div>&nbsp; &nbsp; GridSales.FontSizes&#091;1,0&#093; = 14;</div><div>&nbsp; &nbsp; GridSales.FontSizes&#091;2,0&#093; = 14;</div><div>&nbsp; &nbsp; GridSales.FontSizes&#091;3,0&#093; = 14;</div><div>&nbsp; &nbsp; GridSales.FontSizes&#091;4,0&#093; = 14;</div><div>&nbsp; &nbsp; GridSales.FontSizes&#091;5,0&#093; = 14;</div><div>&nbsp; &nbsp; GridSales.FontSizes&#091;6,0&#093; = 14;</div><div>&nbsp; &nbsp;&nbsp;</div><div><br></div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; GridSales.FixedLayoutFillColor = clAlphaColor.clHexToColor('#497574');</div><div>&nbsp; &nbsp; GridSales.FixedLayoutFontColor = clAlphaColor.clHexToColor('#FFFFFF');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; GridSales.FocusedLayoutFontColor = clAlphaColor.clHexToColor('#6366f1');</div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>&nbsp; GridSales.Options.Selection.Mode = smSingleRow;</span></div><div>&nbsp; &nbsp; GridSales.Options.Editing.Enabled = False;</div><div>&nbsp; &nbsp; GridSales.FocusedLayoutFillColor = clAlphaColor.clHexToColor('#6fa4be');</div><div>&nbsp; &nbsp; GridSales.SelectedLayoutFillColor = clAlphaColor.clHexToColor('#b9cfd1');</div><div>&nbsp; &nbsp; GridSales.NormalLayoutFillColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp; GridSales.BandLayoutFillColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp; GridSales.FocusedLayoutFontColor = clAlphaColor.clHexToColor('#ededed');</div><div>}</div><div><br></div><div>&nbsp; //-------------------------------------------------------------------------------------------------------------------------------</div><div>&nbsp; //-------------------------------------------------------------------------------------------------------------------------------</div><div><br></div><div>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);</div><div>&nbsp; &nbsp; setGrids;</div><div>&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><div><br></div><div>//-------------------------------------------------------------------------------------------------------------------------------</div><div>//-------------------------------------------------------------------------------------------------------------------------------</div><div><br></div><div><br></div><div>void&nbsp; getdatabaseFiltered;</div><div>{</div><div>&nbsp;&nbsp;</div><div>&nbsp; try</div><div>&nbsp; &nbsp; &nbsp; qry2 = Clomosy.DBSQLiteQueryWith('SELECT * FROM Satis WHERE 1=1');</div><div>&nbsp; if (BaslangicTarihi.DateStr &lt;&gt; ''){</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('baslangıç tarihi :'+ BaslangicTarihi.DateStr);</div><div>&nbsp; &nbsp; &nbsp; qry2 = qry2 + ' AND currentdateDB &gt;= "' +&nbsp; FormatDateTime('yyyy-mm-dd', BaslangicTarihi.Date) + '" '</div><div>&nbsp; &nbsp; &nbsp; if (BitisTarihi.DateStr &lt;&gt; ''){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('bitis tarihi :'+BitisTarihi.DateStr);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; qry2 = qry2 + ' AND currentdateDB &lt;= "' + FormatDateTime('yyyy-mm-dd', BitisTarihi.Date)&nbsp; + '" '</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp; qry2 = qry2 + 'ORDER BY ID DESC';&nbsp; &nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; ShowMessage('qryfound öncesi');</div><div>&nbsp; qry.OpenOrExecute;</div><div>&nbsp; if (qry2.Found)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage('calısıyorrrr');</div><div>&nbsp; &nbsp; GridSales.ConnectDataSet(qry2);</div><div>&nbsp; &nbsp; setGrids;</div><div>&nbsp; &nbsp;</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage(' uygun krityerde sonuç yok !')</div><div>&nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; except</div><div>&nbsp; ShowMessage(LastExceptionMessage);</div><div>&nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>}</div><div><br></div><div>//-------------------------------------------------------------------------------------------------------------------------------</div><div>//-------------------------------------------------------------------------------------------------------------------------------</div><div><br></div><div><br></div><div>void filtered;</div><div>{</div><div>&nbsp; deger=True;</div><div>&nbsp; getdatabaseFiltered;</div><div>}</div><div><br></div><div><br></div><div>//-------------------------------------------------------------------------------------------------------------------------------</div><div>//-------------------------------------------------------------------------------------------------------------------------------</div><div><br></div><div><br></div><div>void lived;</div><div>{</div><div>&nbsp;&nbsp;</div><div>&nbsp; deger=False;</div><div>&nbsp; getdatabasetogrid;</div><div>&nbsp;&nbsp;</div><div>}</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>//-------------------------------------------------------------------------------------------------------------------------------</div><div>//-------------------------------------------------------------------------------------------------------------------------------</div><div>//-------------------------------------------------------------------------------------------------------------------------------</div><div>//-------------------------------------------------------------------------------------------------------------------------------</div><div><br></div><div><br></div><div><br></div><div>void ProGridCellDblClick;</div><div>{</div><div>&nbsp;&nbsp;</div><div>&nbsp; FRow = yoneticiForm.ClSenderRow;</div><div>&nbsp; FCol = yoneticiForm.ClSenderCol;</div><div>&nbsp; ShowMessage(GridSales.GetCellValue(FCol,FRow));</div><div>}</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>//-------------------------------------------------------------------------------------------------------------------------------</div><div>//-------------------------------------------------------------------------------------------------------------------------------</div><div>//-------------------------------------------------------------------------------------------------------------------------------</div><div>//-------------------------------------------------------------------------------------------------------------------------------</div><div><br></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;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; //database e ekleme</div><div>&nbsp; Clomosy.DBSQLiteQuery.SQL.Text = 'INSERT INTO Satis (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(FormatDateTime('yyyy-mm-dd', date.Date))+')';</div><div>&nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; Clomosy.SleepAndCall(1000,'','');</div><div>&nbsp; ShowMessage('veriler database e ekleniyor ve gösteriliyor ...')</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; if(deger){</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ShowMessage('filtrele butonu çalışıyor');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; getdatabaseFiltered;</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; getdatabasetogrid;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage('Mqtt&nbsp; bağlanamadı')</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>except</div><div>&nbsp; ShowMessage(LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div><br></div><div>//-------------------------------------------------------------------------------------------------------------------------------</div><div>//-------------------------------------------------------------------------------------------------------------------------------</div><div>//-------------------------------------------------------------------------------------------------------------------------------</div><div>//-------------------------------------------------------------------------------------------------------------------------------</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; yoneticiForm.LytTopBar.Visible = True;</div><div>&nbsp; creatDatabaseAndConnect;</div><div>&nbsp; deger=False;</div><div>&nbsp; panel1=yoneticiForm.AddNewProPanel(yoneticiForm, 'panel1');</div><div>&nbsp; panel2=yoneticiForm.AddNewProPanel(yoneticiForm, 'panel2');</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; panel1.Align = alTop;</div><div>&nbsp; panel1.Margins.Top = 5;</div><div>&nbsp; panel1.Margins.Left = 5;</div><div>&nbsp; panel1.Margins.Right = 5;</div><div>&nbsp; panel1.Height = 200;</div><div>&nbsp; panel1.clProSettings.BorderColor = clAlphaColor.clHexToColor('#6b6b6b2');</div><div>&nbsp; panel1.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; panel1.clProSettings.IsRound = True;</div><div>&nbsp; panel1.clProSettings.BorderWidth = 2;</div><div>&nbsp; panel1.clProSettings.RoundHeight = 10;</div><div>&nbsp; panel1.clProSettings.RoundWidth = 10;</div><div>&nbsp; panel1.SetclProSettings(panel1.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; panel2.Align = alClient;</div><div>&nbsp; panel2.Margins.Top = 5;</div><div>&nbsp; panel2.Margins.Left = 5;</div><div>&nbsp; panel2.Margins.Right = 5;</div><div>&nbsp; panel2.clProSettings.BorderColor = clAlphaColor.clHexToColor('#6b6b6b2');</div><div>&nbsp; panel2.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; panel2.clProSettings.IsRound = True;</div><div>&nbsp; panel2.clProSettings.BorderWidth = 2;</div><div>&nbsp; panel2.clProSettings.RoundHeight = 10;</div><div>&nbsp; panel2.clProSettings.RoundWidth = 10;</div><div>&nbsp; panel2.SetclProSettings(panel2.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; date = yoneticiForm.AddNewProDateEdit(panel1,'date');</div><div>&nbsp; date.Visible=False;</div><div>&nbsp;&nbsp;</div><div>&nbsp; BaslangicTarihi = yoneticiForm.AddNewProDateEdit(panel1,'BaslangicTarihi');</div><div>&nbsp; BaslangicTarihi.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#a6ade3');</div><div>&nbsp; BaslangicTarihi.Align = alLeft;</div><div>&nbsp; BaslangicTarihi.SetclProSettings(BaslangicTarihi.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; BitisTarihi = yoneticiForm.AddNewProDateEdit(panel1,'BitisTarihi');</div><div>&nbsp; BitisTarihi.Align = alRight;</div><div>&nbsp; BitisTarihi.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#8ec200');</div><div>&nbsp; BitisTarihi.SetclProSettings(BitisTarihi.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; filtre = yoneticiForm.AddNewProButton(panel1, 'filtre', 'Filtrele');</div><div>&nbsp; filtre.Align = alBottom;</div><div>&nbsp; filtre.Margins.Bottom = 15;</div><div>&nbsp; filtre.Margins.Left = 100;</div><div>&nbsp; filtre.Margins.Right = 100;</div><div>&nbsp; filtre.Height = 40;</div><div>&nbsp; filtre.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#6366F1');</div><div>&nbsp; filtre.clProSettings.BorderColor = clAlphaColor.clHexToColor('#6b6b6b2');</div><div>&nbsp; filtre.clProSettings.IsRound = True;</div><div>&nbsp; filtre.clProSettings.BorderWidth = 1;</div><div>&nbsp; filtre.clProSettings.FontSize = 25;</div><div>&nbsp; filtre.clProSettings.FontColor=clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; filtre.clProSettings.TextSettings.Font.Style=&#091;fsBold&#093;;</div><div>&nbsp; filtre.SetclProSettings(filtre.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp;</div><div>&nbsp; live = yoneticiForm.AddNewProButton(panel1, 'live', 'yenile');</div><div>&nbsp; live.Align = alBottom;</div><div>&nbsp; live.Margins.Bottom = 15;</div><div>&nbsp; live.Margins.Left = 100;</div><div>&nbsp; live.Margins.Right = 100;</div><div>&nbsp; live.Height = 40;</div><div>&nbsp; live.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#ff6600');</div><div>&nbsp; live.clProSettings.BorderColor = clAlphaColor.clHexToColor('#ff6600');</div><div>&nbsp; live.clProSettings.IsRound = True;</div><div>&nbsp; live.clProSettings.BorderWidth = 1;</div><div>&nbsp; live.clProSettings.FontSize = 25;</div><div>&nbsp; live.clProSettings.FontColor=clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; live.clProSettings.TextSettings.Font.Style=&#091;fsBold&#093;;</div><div>&nbsp; live.SetclProSettings(live.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; GridSales = yoneticiForm.AddNewProGrid(panel2, 'GridSales');</div><div>&nbsp; GridSales.Align = alClient;</div><div>&nbsp; getdatabasetogrid;</div><div>&nbsp;&nbsp;</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>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; yoneticiForm.AddNewEvent(live,tbeOnClick,'lived');</div><div>&nbsp; yoneticiForm.AddNewEvent(filtre,tbeOnClick,'filtered');</div><div>&nbsp; yoneticiForm.AddNewEvent(GridSales,tbeOnProGridCellDblClick,'ProGridCellDblClick');</div><div>&nbsp; yoneticiForm.AddNewEvent(MyMQTT,tbeOnMQTTPublishReceived,'MyMQTTPublishReceived');</div><div>&nbsp;&nbsp;</div><div>&nbsp; yoneticiForm.Run;</div><div>}</div>]]>
   </description>
   <pubDate>Fri, 18 Jul 2025 14:41:37 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1100&amp;PID=2263#2263</guid>
  </item> 
  <item>
   <title><![CDATA[prodateEdit FireDAC  Hatası : Merhaba Kenan ,tip d&#246;n&#252;&#351;&#252;m&#252; hatas&#305;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1100&amp;PID=2261#2261</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=310">Sudesigirci</a><br /><strong>Konu:</strong> 1100<br /><strong>Gönderim Zamanı:</strong> 18&nbsp;Temmuz&nbsp;2025 Saat 14:31<br /><br />Merhaba Kenan ,<div>tip dönüşümü hatası alıyorsun attığın kodda hata bulamadım diğer değişken tiplerini görmem için kodun tamamını atabilir misin rica etsem</div>]]>
   </description>
   <pubDate>Fri, 18 Jul 2025 14:31:43 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1100&amp;PID=2261#2261</guid>
  </item> 
  <item>
   <title><![CDATA[prodateEdit FireDAC  Hatası : yanl&#305;&#351; yazm&#305;&#351;&#305;m ayn&#305; hata de&#287;il...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1100&amp;PID=2259#2259</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=313">kenan</a><br /><strong>Konu:</strong> 1100<br /><strong>Gönderim Zamanı:</strong> 18&nbsp;Temmuz&nbsp;2025 Saat 14:17<br /><br />yanlış yazmışım aynı hata değil "Could not convert variant of type (UnicodeString) into type (Double) " bu hatayı veriyor artık<div><br></div>]]>
   </description>
   <pubDate>Fri, 18 Jul 2025 14:17:57 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1100&amp;PID=2259#2259</guid>
  </item> 
  <item>
   <title><![CDATA[prodateEdit FireDAC  Hatası : merhaba sude, dedi&#287;in gibi eksik...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1100&amp;PID=2258#2258</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=313">kenan</a><br /><strong>Konu:</strong> 1100<br /><strong>Gönderim Zamanı:</strong> 18&nbsp;Temmuz&nbsp;2025 Saat 14:15<br /><br />merhaba sude, dediğin gibi eksik kısımları düzelttim&nbsp; maalesef hala aynı hatayı veriyor&nbsp;<div><br></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.db3';</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 Satis(ID INTEGER PRIMARY KEY AUTOINCREMENT,plasiyerName Text, productName Text, price Text,Tur Text,comment Text,currentdateDB Text)';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp;</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><div><div>void&nbsp; getdatabaseFiltered;</div><div>{</div><div>&nbsp;&nbsp;</div><div>&nbsp; try</div><div>&nbsp; &nbsp; &nbsp; qry = 'SELECT * FROM Satis WHERE 1=1';&nbsp; // Temel başlangıç sorgusu</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; if (BaslangicTarihi.DateStr &lt;&gt; '')</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('baslangıç tarihi :'+ BaslangicTarihi.DateStr);</div><div>&nbsp; &nbsp; &nbsp; qry = qry + ' AND currentdateDB &gt;= "' +&nbsp; FormatDateTime('yyyy-mm-dd', BaslangicTarihi.Date) + '" '</div><div>&nbsp; &nbsp; &nbsp; if (BitisTarihi.DateStr &lt;&gt; '')</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('bitis tarihi :'+BitisTarihi.DateStr);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; qry = qry + ' AND currentdateDB &lt;= "' + FormatDateTime('yyyy-mm-dd', BitisTarihi.Date)&nbsp; + '" '</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; qry = qry + 'ORDER BY ID DESC';&nbsp; &nbsp;&nbsp;</div><div><br></div><div>&nbsp; if (qry.Found)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage('calısıyorrrr');</div><div>&nbsp; &nbsp; GridSales.ConnectDataSet(qry);</div><div>&nbsp; &nbsp; setGrids;</div><div>&nbsp; &nbsp;</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage(' uygun krityerde sonuç yok !')</div><div>&nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; except</div><div>&nbsp; ShowMessage(LastExceptionMessage);</div><div>&nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>}</div></div><div><br></div><div><br></div><div><br></div><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;&nbsp;</div><div>&nbsp;</div><div>&nbsp; //database e ekleme</div><div>&nbsp; Clomosy.DBSQLiteQuery.SQL.Text = 'INSERT INTO Satis (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(FormatDateTime('yyyy-mm-dd', date.Date))+')';</div><div>&nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; Clomosy.SleepAndCall(1000,'','');</div><div>&nbsp; ShowMessage('veriler database e ekleniyor ve gösteriliyor ...')</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; if(deger){</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ShowMessage('filtrele butonu çalışıyor');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; getdatabaseFiltered;</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; getdatabasetogrid;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage('Mqtt&nbsp; bağlanamadı')</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>except</div><div>&nbsp; ShowMessage(LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div></div></div>]]>
   </description>
   <pubDate>Fri, 18 Jul 2025 14:15:48 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1100&amp;PID=2258#2258</guid>
  </item> 
  <item>
   <title><![CDATA[prodateEdit FireDAC  Hatası : Merhaba Kenan ,//ba&#351;lang&#305;&#231; tarihiqry=...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1100&amp;PID=2247#2247</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=310">Sudesigirci</a><br /><strong>Konu:</strong> 1100<br /><strong>Gönderim Zamanı:</strong> 18&nbsp;Temmuz&nbsp;2025 Saat 12:22<br /><br />Merhaba Kenan ,<div><br></div><div>//başlangıç tarihi</div><div><div>qry= qry+ ' AND currentdateDB &gt;= "' + FormatDateTime('yyyy-mm-dd', BaslangicTarihi.Date) + '" ';</div></div><div><br></div><div><br></div><div>//bitiş tarihi</div><div>qry= qry+ ' AND currentdateDB &lt;= "' + FormatDateTime('yyyy-mm-dd', BitisTarihi.Date) + '" ';</div><div><br></div><div>//Insert sorgusu içinde</div><div><br></div><div>QuotedStr(FormatDateTime('yyyy-mm-dd', date.Date)) bu şekilde kullanarak dener misin umarım hatanı çözer</div><div><br></div><div>iyi çalışmalar dilerim</div>]]>
   </description>
   <pubDate>Fri, 18 Jul 2025 12:22:48 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1100&amp;PID=2247#2247</guid>
  </item> 
  <item>
   <title><![CDATA[prodateEdit FireDAC  Hatası : merhaba arkada&#351;lar , &amp;#034;  ERROR:...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1100&amp;PID=2245#2245</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=313">kenan</a><br /><strong>Konu:</strong> 1100<br /><strong>Gönderim Zamanı:</strong> 18&nbsp;Temmuz&nbsp;2025 Saat 11:52<br /><br /><div>merhaba arkadaşlar , " &#091;FireDAC&#093;&#091;Phys&#093;&#091;SQLite&#093; ERROR: near ".2025": syntax error "&nbsp; hatası alıyorum&nbsp; bir çözümü var mı&nbsp; şimdiden&nbsp; teşekkür ederim&nbsp;</div><div><br></div><div><br></div><div>date,BaslangicTarihi,BitisTarihi :TClProDateEdit;</div><div><br></div><div><br></div><div>void&nbsp; getdatabaseFiltered;</div><div>{</div><div>&nbsp;&nbsp;</div><div>&nbsp; try</div><div>&nbsp; &nbsp; &nbsp; qry = 'SELECT * FROM Satis WHERE 1=1';&nbsp; // Temel başlangıç sorgusu</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; if (BaslangicTarihi.DateStr &lt;&gt; '')</div><div>&nbsp; &nbsp; &nbsp; qry = qry + ' AND currentdateDB &gt;= "' + BaslangicTarihi.DateStr + '" '</div><div>&nbsp; &nbsp; &nbsp; if (BitisTarihi.DateStr &lt;&gt; '')</div><div>&nbsp; &nbsp; &nbsp; &nbsp; qry = qry + ' AND currentdateDB &lt;= "' + BitisTarihi.DateStr + '" '</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp;qry = qry + 'ORDER BY currentdateDB DESC';&nbsp; &nbsp;&nbsp;</div><div><br></div><div>&nbsp; &nbsp; if (qry.Found)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('calısıyorrrr');</div><div>&nbsp; &nbsp; &nbsp; GridSales.ConnectDataSet(qry);</div><div>&nbsp; &nbsp; &nbsp; setGrids;</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; ShowMessage(' uygun krityerde sonuç yok !')</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; except</div><div>&nbsp; ShowMessage(LastExceptionMessage);</div><div>&nbsp; }</div><div><br></div><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;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; //database e ekleme</div><div>&nbsp; Clomosy.DBSQLiteQuery.SQL.Text = 'INSERT INTO Satis (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; +DateToStr(date.DateStr)+')';</div><div>&nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; Clomosy.SleepAndCall(1000,'','');</div><div>&nbsp; ShowMessage('veriler database e ekleniyor ve gösteriliyor ...')</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; if(deger){</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ShowMessage('giltrele butonu çalışıyor');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; getdatabaseFiltered;</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; getdatabasetogrid;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage('Mqtt&nbsp; bağlanamadı')</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>except</div><div>&nbsp; ShowMessage(LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div></div><div><br></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Fri, 18 Jul 2025 11:52:11 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1100&amp;PID=2245#2245</guid>
  </item> 
 </channel>
</rss>