<?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 : Kontrol yapısında hata</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : Kontrol yapısında hata]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 10:53:29 +0000</pubDate>
  <lastBuildDate>Wed, 19 Nov 2025 09:23:32 +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=1233</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[Kontrol yapısında hata : Merhaba G&#252;ney,function IsArrayContain(FArr:...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1233&amp;PID=2720#2720</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=257">Emr.Erkmn</a><br /><strong>Konu:</strong> 1233<br /><strong>Gönderim Zamanı:</strong> 19&nbsp;Kasım&nbsp;2025 Saat 09:23<br /><br />Merhaba Güney,&nbsp;<br><div><br></div><div><br></div><div>function IsArrayContain(FArr: TCLJSONArray; FJson: String; FArrayItem: String; FLookingStr: String): Boolean</div><div>var</div><div>&nbsp; I: Integer;</div><div>&nbsp; currentValue: String;</div><div>{</div><div>&nbsp; // ÖNEMLİ: Result'ı başlangıçta False yap</div><div>&nbsp; Result = False;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Try</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (FArr == nil)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Result = False;</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (FJson == '')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Result = False;</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; for (I = 0 to (FArr.Count - 1))</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Try</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; currentValue = Clomosy.CLParseJSON(FJson, IntToStr(I) + '.' + FArrayItem);</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; currentValue = Trim(currentValue);</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (currentValue == FLookingStr)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Result = True;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; except</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; Result = False;</div><div>&nbsp; }</div><div>}</div><div><br></div><div><br></div><div><br></div><div>void GetUserPrivilegesCompletedV(Sender)</div><div>var</div><div>&nbsp; TempTableLbl: TclProLabel;</div><div>&nbsp; jsonResponse: String;</div><div>&nbsp; Arr: TCLJSONArray;</div><div>&nbsp; I: Integer;</div><div>&nbsp; hasViewOrders: Boolean;</div><div>&nbsp; hasTakePayment: Boolean;</div><div>&nbsp; restObj: TCLRest;</div><div>{</div><div>&nbsp; Try</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; restObj = TCLRest(Sender);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (restObj == nil)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage(' HATA: Sender nil!');</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; jsonResponse = restObj.Response;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; hasTakePayment = False;</div><div>&nbsp; &nbsp; hasViewOrders = False;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Arr = TCLJSONArray.Create;</div><div>&nbsp; &nbsp; Arr = TCLJSONArray.CreateFromJSON(jsonResponse);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (jsonResponse == '')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Yetkiler listesi boş herhangi bir yetki yok.');</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; hasViewOrders = Main.IsArrayContain(Arr, jsonResponse, 'privilege_name', 'VIEW_ORDERS');</div><div>&nbsp; &nbsp; &nbsp; hasTakePayment = Main.IsArrayContain(Arr, jsonResponse, 'privilege_name', 'TAKE_PAYMENT');</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; if (hasViewOrders &amp;&amp; hasTakePayment)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage(' İki yetki de var &#8594; SelectRoleV');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.RunUnit('SelectRoleV');</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; else if (hasViewOrders)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage(' VIEW_ORDERS var &#8594; uWaiterAndChefDetails');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.RunUnit('uWaiterAndChefDetails');</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; else if (hasTakePayment)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage(' TAKE_PAYMENT var &#8594; uCashierDetails');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.RunUnit('uCashierDetails');</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('&#65039; Uyarı: Gereken yetki bulunamadı!');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Mevcut yetkiler: ' + jsonResponse);</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; if (hasViewOrders)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Try</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uWaiterAndChefDetails.SetOrderIDV(OrderID);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TempTableLbl = MainForm.clFindComponent(TableName) as TclProLabel;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (TempTableLbl &lt;&gt; nil)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uWaiterAndChefDetails.SetTitleV(TempTableLbl.Text);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('&#65039; Sayfa parametreleri ayarlanırken hata: ' + LastExceptionMessage);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (Arr &lt;&gt; nil)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Try</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Arr.Free;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Arr = nil;</div><div>&nbsp; &nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (restObj &lt;&gt; nil)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Try</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; restObj = nil;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; except</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; ShowMessage(' GetUserPrivilegesCompletedV hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div><br></div><div><br></div><div>void GetUserPrivilegesCompletedV_Debug(Sender)</div><div>var</div><div>&nbsp; TempTableLbl: TclProLabel;</div><div>&nbsp; jsonResponse: String;</div><div>&nbsp; Arr: TCLJSONArray;</div><div>&nbsp; I: Integer;</div><div>&nbsp; hasViewOrders: Boolean;</div><div>&nbsp; hasTakePayment: Boolean;</div><div>&nbsp; restObj: TCLRest;</div><div>&nbsp; debugInfo: String;</div><div>&nbsp; currentPrivilege: String;</div><div>{</div><div>&nbsp; Try</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; restObj = TCLRest(Sender);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (restObj == nil)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage(' HATA: Sender nil!');</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; jsonResponse = restObj.Response;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; debugInfo = ' DEBUG BAŞLADI' + #13#10;</div><div>&nbsp; &nbsp; debugInfo = debugInfo + ' Response uzunluğu: ' + IntToStr(Length(jsonResponse)) + #13#10;</div><div>&nbsp; &nbsp; debugInfo = debugInfo + ' Response: ' + Copy(jsonResponse, 1, 200) + #13#10;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; hasTakePayment = False;</div><div>&nbsp; &nbsp; hasViewOrders = False;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Arr = TCLJSONArray.Create;</div><div>&nbsp; &nbsp; Arr = TCLJSONArray.CreateFromJSON(jsonResponse);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (jsonResponse == '')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage(debugInfo + '&#65039; Response boş!');</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; debugInfo = debugInfo + ' Yetkiler (' + IntToStr(Arr.Count) + ' adet):' + #13#10;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; for (I = 0 to Arr.Count - 1)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Try</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; currentPrivilege = Clomosy.CLParseJSON(jsonResponse, IntToStr(I) + '.privilege_name');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; debugInfo = debugInfo + '&nbsp; - ' + IntToStr(I) + ': ' + currentPrivilege + #13#10;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; debugInfo = debugInfo + '&nbsp; - ' + IntToStr(I) + ': &#091;HATA&#093;' + #13#10;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; hasViewOrders = Main.IsArrayContain(Arr, jsonResponse, 'privilege_name', 'VIEW_ORDERS');</div><div>&nbsp; &nbsp; hasTakePayment = Main.IsArrayContain(Arr, jsonResponse, 'privilege_name', 'TAKE_PAYMENT');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (hasViewOrders &amp;&amp; hasTakePayment)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Clomosy.RunUnit('SelectRoleV');</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else if (hasViewOrders)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Clomosy.RunUnit('uWaiterAndChefDetails');</div><div>&nbsp; &nbsp; &nbsp; Try</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; uWaiterAndChefDetails.SetOrderIDV(OrderID);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; TempTableLbl = MainForm.clFindComponent(TableName) as TclProLabel;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (TempTableLbl &lt;&gt; nil)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uWaiterAndChefDetails.SetTitleV(TempTableLbl.Text);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else if (hasTakePayment)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Clomosy.RunUnit('uCashierDetails');</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('&#65039; Uyarı: Gereken yetki bulunamadı!');</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (Arr &lt;&gt; nil)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Try</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Arr.Free;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Arr = nil;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (restObj &lt;&gt; nil)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Try</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; restObj.Free;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; restObj = nil;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; except</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; ShowMessage(' GetUserPrivilegesCompletedV_Debug hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>inceleye bilir misin&nbsp;&nbsp;<br><br></div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015"</a> integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{&quot;version&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;server_timing&quot;:{&quot;name&quot;:{&quot;cfCacheStatus&quot;:true,&quot;cfEdge&quot;:true,&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfOrigin&quot;:true,&quot;cfSpeedBrain&quot;:true},&quot;location_startswith&quot;:null}}" crossorigin="anonymous">]]>
   </description>
   <pubDate>Wed, 19 Nov 2025 09:23:32 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1233&amp;PID=2720#2720</guid>
  </item> 
  <item>
   <title><![CDATA[Kontrol yapısında hata : Fakat yine ald&#305;&#287;&#305;m veriye g&#246;re...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1233&amp;PID=2718#2718</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=344">M-Guney</a><br /><strong>Konu:</strong> 1233<br /><strong>Gönderim Zamanı:</strong> 18&nbsp;Kasım&nbsp;2025 Saat 15:53<br /><br /><div><br></div><div>Fakat yine aldığım veriye göre işlem yapamıyorum</div><div>void GetUserPrivilegesCompletedV(Sender)</div><div>var</div><div>&nbsp; TempTableLbl : TclProLabel;</div><div>&nbsp; jsonResponse: String;</div><div>&nbsp; Arr : TCLJSONArray;</div><div>&nbsp; I: Integer;</div><div>&nbsp; hasViewOrders, hasTakePayment: Boolean;</div><div>{</div><div>&nbsp; hasTakePayment = False;</div><div>&nbsp; hasViewOrders = False;</div><div>&nbsp; jsonResponse = TCLRest(Sender).Response;</div><div>&nbsp; //ShowMessage('DB Connected: '+ jsonResponse);</div><div>&nbsp; Arr = TCLJSONArray.Create;</div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>Arr = TCLJSONArray.CreateFromJSON(jsonResponse);</span></div><div>&nbsp; if(jsonResponse == ''){</div><div>&nbsp; &nbsp; ShowMessage('Yetkiler listesi boş herhangi bir yetki yok.');</div><div>&nbsp; }else{</div><div>&nbsp; &nbsp; &nbsp; /*</div><div>&nbsp; &nbsp; &nbsp; if(Main.IsArrayContain(Arr, jsonResponse, 'privilege_name', 'VIEW_ORDERS')){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.RunUnit('uWaiterAndChefDetails');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; uWaiterAndChefDetails.SetOrderIDV(OrderID);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; TempTableLbl = MainForm.clFindComponent(TableName) as TclProLabel;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; uWaiterAndChefDetails.SetTitleV(TempTableLbl.Text);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; TCLRest(Sender).Free;</div><div>&nbsp; &nbsp; &nbsp; }else {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('yetkin yok');</div><div>&nbsp; &nbsp; &nbsp; }*/</div><div>&nbsp; &nbsp; &nbsp; //ShowMessage('Privileges output: '+ jsonResponse);</div><div>&nbsp; &nbsp; &nbsp; //ShowMessage( Main.IsArrayContain(Arr, jsonResponse, 'privilege_name', 'VIEW_ORDERS'));</div><div>&nbsp; &nbsp; &nbsp; hasViewOrders = Main.IsArrayContain(Arr, jsonResponse, 'privilege_name', 'VIEW_ORDERS');</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('hasViewOrders: '+ hasViewOrders);</div><div>&nbsp; &nbsp; &nbsp; hasTakePayment = Main.IsArrayContain(Arr, jsonResponse, 'privilege_name', 'TAKE_PAYMENT');</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('hasTakePayment: '+ hasTakePayment);</div><div>&nbsp; &nbsp; &nbsp; //ShowMessage('Table Tag: ' + TClProButton(MainForm.Clsender).clTagInt); // clTagStr</div><div>&nbsp; &nbsp; &nbsp; ShowMessage(hasViewOrders.type);</div><div>&nbsp; &nbsp; &nbsp; if (hasViewOrders)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.RunUnit('uWaiterAndChefDetails');</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('hasViewOrders: '+ hasViewOrders);</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; if (hasViewOrders &amp;&amp; hasTakePayment)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.RunUnit('SelectRoleV');</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; else if (hasViewOrders)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.RunUnit('uWaiterAndChefDetails');</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; else if (hasTakePayment)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.RunUnit('uCashierDetails');</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Uyarı: Gereken yetki bulunamadı!');</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; uWaiterAndChefDetails.SetOrderIDV(OrderID);</div><div>&nbsp; &nbsp; &nbsp; TempTableLbl = MainForm.clFindComponent(TableName) as TclProLabel;</div><div>&nbsp; &nbsp; &nbsp; uWaiterAndChefDetails.SetTitleV(TempTableLbl.Text);</div><div>&nbsp; &nbsp; &nbsp; TCLRest(Sender).Free;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>}</div><br>&#091;{"privilege_name":"ADD_ORDER"},{"privilege_name":"DELETE_ORDER"},{"privilege_name":"VIEW_ORDERS"},{"privilege_name":"User"},{"privilege_name":"EDIT_ORDER"}&#093;<a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015"</a> integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{&quot;version&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;server_timing&quot;:{&quot;name&quot;:{&quot;cfCacheStatus&quot;:true,&quot;cfEdge&quot;:true,&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfOrigin&quot;:true,&quot;cfSpeedBrain&quot;:true},&quot;location_startswith&quot;:null}}" crossorigin="anonymous">]]>
   </description>
   <pubDate>Tue, 18 Nov 2025 15:53:53 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1233&amp;PID=2718#2718</guid>
  </item> 
  <item>
   <title><![CDATA[Kontrol yapısında hata : Return tipini boolean dan stringe...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1233&amp;PID=2717#2717</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=344">M-Guney</a><br /><strong>Konu:</strong> 1233<br /><strong>Gönderim Zamanı:</strong> 18&nbsp;Kasım&nbsp;2025 Saat 15:51<br /><br />Return tipini boolean dan stringe çevirince return işlemini gerçekleştridi fakat yine de kontrol edip ona göre işlem yapamıyorum.<a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015"</a> integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{&quot;version&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;server_timing&quot;:{&quot;name&quot;:{&quot;cfCacheStatus&quot;:true,&quot;cfEdge&quot;:true,&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfOrigin&quot;:true,&quot;cfSpeedBrain&quot;:true},&quot;location_startswith&quot;:null}}" crossorigin="anonymous"><div><div><br></div><div><br></div><div>void GetUserPrivilegesCompletedV(Sender)</div><div>var</div><div>&nbsp; TempTableLbl : TclProLabel;</div><div>&nbsp; jsonResponse: String;</div><div>&nbsp; Arr : TCLJSONArray;</div><div>&nbsp; I: Integer;</div><div>&nbsp; hasViewOrders, hasTakePayment: Boolean;</div><div>{</div><div>&nbsp; hasTakePayment = False;</div><div>&nbsp; hasViewOrders = False;</div><div>&nbsp; jsonResponse = TCLRest(Sender).Response;</div><div>&nbsp; //ShowMessage('DB Connected: '+ jsonResponse);</div><div>&nbsp; Arr = TCLJSONArray.Create;</div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>Arr = TCLJSONArray.CreateFromJSON(jsonResponse);</span></div><div>&nbsp; if(jsonResponse == ''){</div><div>&nbsp; &nbsp; ShowMessage('Yetkiler listesi boş herhangi bir yetki yok.');</div><div>&nbsp; }else{</div><div>&nbsp; &nbsp; &nbsp; /*</div><div>&nbsp; &nbsp; &nbsp; if(Main.IsArrayContain(Arr, jsonResponse, 'privilege_name', 'VIEW_ORDERS')){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.RunUnit('uWaiterAndChefDetails');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; uWaiterAndChefDetails.SetOrderIDV(OrderID);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; TempTableLbl = MainForm.clFindComponent(TableName) as TclProLabel;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; uWaiterAndChefDetails.SetTitleV(TempTableLbl.Text);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; TCLRest(Sender).Free;</div><div>&nbsp; &nbsp; &nbsp; }else {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('yetkin yok');</div><div>&nbsp; &nbsp; &nbsp; }*/</div><div>&nbsp; &nbsp; &nbsp; //ShowMessage('Privileges output: '+ jsonResponse);</div><div>&nbsp; &nbsp; &nbsp; //ShowMessage( Main.IsArrayContain(Arr, jsonResponse, 'privilege_name', 'VIEW_ORDERS'));</div><div>&nbsp; &nbsp; &nbsp; hasViewOrders = Main.IsArrayContain(Arr, jsonResponse, 'privilege_name', 'VIEW_ORDERS');</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('hasViewOrders: '+ hasViewOrders);</div><div>&nbsp; &nbsp; &nbsp; hasTakePayment = Main.IsArrayContain(Arr, jsonResponse, 'privilege_name', 'TAKE_PAYMENT');</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('hasTakePayment: '+ hasTakePayment);</div><div>&nbsp; &nbsp; &nbsp; //ShowMessage('Table Tag: ' + TClProButton(MainForm.Clsender).clTagInt); // clTagStr</div><div>&nbsp; &nbsp; &nbsp; ShowMessage(hasViewOrders.type);</div><div>&nbsp; &nbsp; &nbsp; if (hasViewOrders)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.RunUnit('uWaiterAndChefDetails');</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('hasViewOrders: '+ hasViewOrders);</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; if (hasViewOrders &amp;&amp; hasTakePayment)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.RunUnit('SelectRoleV');</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; else if (hasViewOrders)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.RunUnit('uWaiterAndChefDetails');</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; else if (hasTakePayment)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.RunUnit('uCashierDetails');</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Uyarı: Gereken yetki bulunamadı!');</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; uWaiterAndChefDetails.SetOrderIDV(OrderID);</div><div>&nbsp; &nbsp; &nbsp; TempTableLbl = MainForm.clFindComponent(TableName) as TclProLabel;</div><div>&nbsp; &nbsp; &nbsp; uWaiterAndChefDetails.SetTitleV(TempTableLbl.Text);</div><div>&nbsp; &nbsp; &nbsp; TCLRest(Sender).Free;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>}<br><br>örnek yetkilerim&nbsp;<br><br>&#091;{"privilege_name":"ADD_ORDER"},{"privilege_name":"DELETE_ORDER"},{"privilege_name":"VIEW_ORDERS"},{"privilege_name":"User"},{"privilege_name":"EDIT_ORDER"}&#093;<br><br><br></div></div>]]>
   </description>
   <pubDate>Tue, 18 Nov 2025 15:51:22 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1233&amp;PID=2717#2717</guid>
  </item> 
  <item>
   <title><![CDATA[Kontrol yapısında hata : function IsArrayContain(FArr:...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1233&amp;PID=2715#2715</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=344">M-Guney</a><br /><strong>Konu:</strong> 1233<br /><strong>Gönderim Zamanı:</strong> 18&nbsp;Kasım&nbsp;2025 Saat 14:34<br /><br /><div><br></div><div>function IsArrayContain(FArr: TCLJSONArray; FJson: String; FArrayItem: String; FLookingStr: String): Boolean</div><div>var</div><div>&nbsp; I: Integer;</div><div>&nbsp; currentValue: String;</div><div>{</div><div>&nbsp; Result = False;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Try</div><div>&nbsp; &nbsp; if (FArr == nil)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Array is nil return back.');</div><div>&nbsp; &nbsp; &nbsp; Result = False;</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if (FJson == '')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Array is empty return back.');</div><div>&nbsp; &nbsp; &nbsp; Result = False;</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; for (I = 0 to (FArr.Count - 1))</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Try</div><div>&nbsp; &nbsp; &nbsp; &nbsp; currentValue = Clomosy.CLParseJSON(FJson, IntToStr(I) + '.' + FArrayItem);</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (currentValue == FLookingStr)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Find Item in Array: ' + FLookingStr);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Result = True;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Exit;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; //ShowMessage('Not Equal: ' + currentValue + 'LookingStr: '+ FLookingStr);</div><div>&nbsp; &nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; except</div><div>&nbsp; &nbsp; Result = False;</div><div>&nbsp; }</div><div>}<br><br>bunu kullanmak istiyorum fakat bulsa bile Result = True; döndürmüyor.</div><div><br></div><a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015"</a> integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{&quot;version&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;server_timing&quot;:{&quot;name&quot;:{&quot;cfCacheStatus&quot;:true,&quot;cfEdge&quot;:true,&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfOrigin&quot;:true,&quot;cfSpeedBrain&quot;:true},&quot;location_startswith&quot;:null}}" crossorigin="anonymous">]]>
   </description>
   <pubDate>Tue, 18 Nov 2025 14:34:46 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1233&amp;PID=2715#2715</guid>
  </item> 
 </channel>
</rss>