<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.isikhnas.com/index.php?action=history&amp;feed=atom&amp;title=SMS_handler_functions</id>
	<title>SMS handler functions - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.isikhnas.com/index.php?action=history&amp;feed=atom&amp;title=SMS_handler_functions"/>
	<link rel="alternate" type="text/html" href="https://wiki.isikhnas.com/index.php?title=SMS_handler_functions&amp;action=history"/>
	<updated>2026-09-09T22:09:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.16</generator>
	<entry>
		<id>https://wiki.isikhnas.com/index.php?title=SMS_handler_functions&amp;diff=854&amp;oldid=prev</id>
		<title>Angus at 13:48, 25 February 2014</title>
		<link rel="alternate" type="text/html" href="https://wiki.isikhnas.com/index.php?title=SMS_handler_functions&amp;diff=854&amp;oldid=prev"/>
		<updated>2014-02-25T13:48:09Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;id&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Revisi sebelumnya&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisi per 25 Februari 2014 13.48&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Baris 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Baris 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;div class='plain'&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{#apGetSQL:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{#apGetSQL:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;select format ('&amp;lt;h2&amp;gt;%s: %s&amp;lt;/h2&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;select format ('&amp;lt;h2&amp;gt;%s: %s&amp;lt;/h2&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l34&quot; &gt;Baris 34:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Baris 35:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;where not s.del&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;where not s.del&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;order by s.start_code;|}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;order by s.start_code;|}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Angus</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.isikhnas.com/index.php?title=SMS_handler_functions&amp;diff=819&amp;oldid=prev</id>
		<title>Catriona: Created page with &quot;{{#apGetSQL: select format ('&lt;h2&gt;%s: %s&lt;/h2&gt; &lt;h3&gt;Format pesan&lt;/h3&gt;  %s %s  %s  %s', s.start_code, s.name[1],get_sms_format(s.id,1), format('&lt;h3&gt;Reply SQL&lt;/h3&gt;  %s',replace(s.r...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.isikhnas.com/index.php?title=SMS_handler_functions&amp;diff=819&amp;oldid=prev"/>
		<updated>2014-02-25T03:25:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{#apGetSQL: select format (&amp;#039;&amp;lt;h2&amp;gt;%s: %s&amp;lt;/h2&amp;gt; &amp;lt;h3&amp;gt;Format pesan&amp;lt;/h3&amp;gt;  %s %s  %s  %s&amp;#039;, s.start_code, s.name[1],get_sms_format(s.id,1), format(&amp;#039;&amp;lt;h3&amp;gt;Reply SQL&amp;lt;/h3&amp;gt;  %s&amp;#039;,replace(s.r...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Halaman baru&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{#apGetSQL:&lt;br /&gt;
select format ('&amp;lt;h2&amp;gt;%s: %s&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Format pesan&amp;lt;/h3&amp;gt;&lt;br /&gt;
 %s&lt;br /&gt;
%s &lt;br /&gt;
%s &lt;br /&gt;
%s', s.start_code, s.name[1],get_sms_format(s.id,1), format('&amp;lt;h3&amp;gt;Reply SQL&amp;lt;/h3&amp;gt;&lt;br /&gt;
 %s',replace(s.reply_sql,'&lt;br /&gt;
', '&lt;br /&gt;
 ')),&lt;br /&gt;
case when s.alert_sql is not null and trim(s.alert_sql) &amp;lt;&amp;gt; '' then&lt;br /&gt;
format('&amp;lt;h3&amp;gt;Alert SQL&amp;lt;/h3&amp;gt;&lt;br /&gt;
 %s',replace(s.alert_sql,'&lt;br /&gt;
', '&lt;br /&gt;
 '))&lt;br /&gt;
else '' end,&lt;br /&gt;
bar.br)&lt;br /&gt;
from metadata.sms s&lt;br /&gt;
left outer join (&lt;br /&gt;
&lt;br /&gt;
select foo.msg, format('&amp;lt;h3&amp;gt;Business Rules&amp;lt;/h3&amp;gt; %s', string_agg(foo.sql, '&lt;br /&gt;
')) as br&lt;br /&gt;
from (&lt;br /&gt;
select upper(right(b.caller,-4)) as msg,&lt;br /&gt;
  format('&lt;br /&gt;
&amp;lt;h5&amp;gt;Hook: %s; Order: %s&amp;lt;/h5&amp;gt; &lt;br /&gt;
 %s',b.hook, b.ruleorder, replace(b.sql,'&lt;br /&gt;
', '&lt;br /&gt;
 ')) as sql&lt;br /&gt;
from businessrules b&lt;br /&gt;
where not b.del&lt;br /&gt;
order by b.hook, b.ruleorder) as foo  &lt;br /&gt;
group by foo.msg ) bar on upper(bar.msg) = s.start_code&lt;br /&gt;
where not s.del&lt;br /&gt;
order by s.start_code;|}}&lt;/div&gt;</summary>
		<author><name>Catriona</name></author>
		
	</entry>
</feed>