<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://greggsmith.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Send_WaitCall_attrSync_fetch</id>
		<title>Send WaitCall attrSync fetch - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://greggsmith.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Send_WaitCall_attrSync_fetch"/>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Send_WaitCall_attrSync_fetch&amp;action=history"/>
		<updated>2026-07-28T12:01:12Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.1</generator>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Send_WaitCall_attrSync_fetch&amp;diff=4081&amp;oldid=prev</id>
		<title>Kowy at 08:30, 9 September 2010</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Send_WaitCall_attrSync_fetch&amp;diff=4081&amp;oldid=prev"/>
				<updated>2010-09-09T08:30:30Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 08:30, 9 September 2010&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-l17&quot; &gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&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: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* ''attr_name'' - name of attribute on which the action is called&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* ''attr_name'' - name of attribute on which the action is called&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: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* ''factory_name'' - the factory you want to call against (could be anything like pcat, cnt, cr, alg, ...)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* ''factory_name'' - the factory you want to call against (could be anything like pcat, cnt, cr, alg, ...)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* ''query'' - &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;the so called &lt;/del&gt;query determining what record(s) you want to be returned&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;* ''query'' - query determining what record(s) you want to be returned&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;; query is on an Object level (so you can use similar queries used in Stored Queries, Additional Search arguments or bop_odump command)&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: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* ''rs_type'' - the type of recordset you want returned. Should be one of these options:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* ''rs_type'' - the type of recordset you want returned. Should be one of these options:&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: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** STATIC&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** STATIC&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kowy</name></author>	</entry>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Send_WaitCall_attrSync_fetch&amp;diff=3828&amp;oldid=prev</id>
		<title>Kowy: New page: __NOTOC__ Category:Customizations Category:r11 Category:Spell Code {{Global Header}} {{Global Announcement}} == Overview == This method synchronously fetch list of items from S...</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Send_WaitCall_attrSync_fetch&amp;diff=3828&amp;oldid=prev"/>
				<updated>2009-05-04T08:59:03Z</updated>
		
		<summary type="html">&lt;p&gt;New page: __NOTOC__ &lt;a href=&quot;/wiki/index.php?title=Category:Customizations&quot; title=&quot;Category:Customizations&quot;&gt;Category:Customizations&lt;/a&gt; &lt;a href=&quot;/wiki/index.php?title=Category:R11&quot; title=&quot;Category:R11&quot;&gt;Category:r11&lt;/a&gt; &lt;a href=&quot;/wiki/index.php?title=Category:Spell_Code&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Spell Code (page does not exist)&quot;&gt;Category:Spell Code&lt;/a&gt; {{Global Header}} {{Global Announcement}} == Overview == This method synchronously fetch list of items from S...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
[[Category:Customizations]]&lt;br /&gt;
[[Category:r11]]&lt;br /&gt;
[[Category:Spell Code]]&lt;br /&gt;
{{Global Header}}&lt;br /&gt;
{{Global Announcement}}&lt;br /&gt;
== Overview ==&lt;br /&gt;
This method synchronously fetch list of items from SD database. It can be called in [[Spel_Reference_Guide|Spell Code]] using [[send_wait]] method.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
void send_wait (int timeout, object top_object, &amp;quot;call_attr&amp;quot;, string factory_name, &amp;quot;sync_fetch&amp;quot;, string rs_type, string query, int unknown, int param_num [, var parameters])&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* ''timeout'' - how long (?in seconds?) should the method wait for finishing the method (0 means infinite)&lt;br /&gt;
* ''top_object'' - root object for the method (on which the method is called)&lt;br /&gt;
* ''attr_name'' - name of attribute on which the action is called&lt;br /&gt;
* ''factory_name'' - the factory you want to call against (could be anything like pcat, cnt, cr, alg, ...)&lt;br /&gt;
* ''query'' - the so called query determining what record(s) you want to be returned&lt;br /&gt;
* ''rs_type'' - the type of recordset you want returned. Should be one of these options:&lt;br /&gt;
** STATIC&lt;br /&gt;
** DYNAMIC&lt;br /&gt;
** MLIST_STATIC&lt;br /&gt;
** MLIST_DYNAMIC&lt;br /&gt;
** RLIST_STATIC&lt;br /&gt;
** RLIST_DYNAMIC&lt;br /&gt;
* ''unknown'' - don't know, but usually -1&lt;br /&gt;
* ''param_num'' - number of following  parameters&lt;br /&gt;
* ''parameters'' - variable number of parameters based on given query (for each ? must be exactly one parameter, which value will provide data for corresponding ?)&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
On success the resulted list is filled into a global array '''msg''' as follows:&lt;br /&gt;
* msg[0] - the recordset (object)&lt;br /&gt;
* msg[1] - the length of the recordset (records returned, int) &lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// get template by its persistent id&lt;br /&gt;
send_wait(0, top_object(), &amp;quot;call_attr&amp;quot;, &amp;quot;cr_tpl&amp;quot;, &amp;quot;sync_fetch&amp;quot;, &amp;quot;RLIST_DYNAMIC&amp;quot;, &amp;quot;template = ?&amp;quot;,  -1, 1, cr.persistent_id);&lt;br /&gt;
// get group by id&lt;br /&gt;
send_wait(0, top_object(), &amp;quot;call_attr&amp;quot;, &amp;quot;grp&amp;quot;, &amp;quot;sync_fetch&amp;quot;, &amp;quot;RLIST_STATIC&amp;quot;, &amp;quot;id = ? AND delete_flag = 0&amp;quot;, -1, 1, new_group);&lt;br /&gt;
// get list of all remote referencies&lt;br /&gt;
send_wait( 0, top_object(), &amp;quot;call_attr&amp;quot;,&amp;quot;rrf&amp;quot;,&amp;quot;sync_fetch&amp;quot;, &amp;quot;RLIST_DYNAMIC&amp;quot;, &amp;quot;&amp;quot;, -1, 0);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kowy</name></author>	</entry>

	</feed>