<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://gsbelarus.com:80/gs/wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>https://gsbelarus.com:80/gs/wiki/index.php?action=history&amp;feed=atom&amp;title=Gedemin_TLB.IgsQueryList.AddMasterDetail</id>
		<title>Gedemin TLB.IgsQueryList.AddMasterDetail - История изменений</title>
		<link rel="self" type="application/atom+xml" href="https://gsbelarus.com:80/gs/wiki/index.php?action=history&amp;feed=atom&amp;title=Gedemin_TLB.IgsQueryList.AddMasterDetail"/>
		<link rel="alternate" type="text/html" href="https://gsbelarus.com:80/gs/wiki/index.php?title=Gedemin_TLB.IgsQueryList.AddMasterDetail&amp;action=history"/>
		<updated>2026-07-16T16:35:32Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.19.16</generator>

	<entry>
		<id>https://gsbelarus.com:80/gs/wiki/index.php?title=Gedemin_TLB.IgsQueryList.AddMasterDetail&amp;diff=6751&amp;oldid=prev</id>
		<title>SYSDBA: Новая страница: «{{MethodDef_Template|unit={{#explode:{{PAGENAME}}|.|0}}|visibility=public|class={{#explode:{{PAGENAME}}|.|1}}|src=procedure AddMasterDetail(const MasterTable: Wid…»</title>
		<link rel="alternate" type="text/html" href="https://gsbelarus.com:80/gs/wiki/index.php?title=Gedemin_TLB.IgsQueryList.AddMasterDetail&amp;diff=6751&amp;oldid=prev"/>
				<updated>2016-01-17T10:14:44Z</updated>
		
		<summary type="html">&lt;p&gt;Новая страница: «{{MethodDef_Template|unit={{#explode:{{PAGENAME}}|.|0}}|visibility=public|class={{#explode:{{PAGENAME}}|.|1}}|src=procedure AddMasterDetail(const MasterTable: Wid…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{MethodDef_Template|unit={{#explode:{{PAGENAME}}|.|0}}|visibility=public|class={{#explode:{{PAGENAME}}|.|1}}|src=procedure AddMasterDetail(const MasterTable: WideString; const MasterField: WideString; const DetailTable: WideString; const DetailField: WideString); safecall;}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;onlyinclude&amp;gt;Устанавливает отношение Master-Detail между двумя gsQuery.&amp;lt;/onlyinclude&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 set qMaster = BaseQueryList.Query(BaseQueryList.Add(&amp;quot;Doc&amp;quot;, 0))&lt;br /&gt;
 qMaster.SQL =   &amp;quot; SELECT doc.ID, &amp;quot; &amp;amp; _&lt;br /&gt;
                 &amp;quot;……&amp;quot; &amp;amp; _&lt;br /&gt;
                 &amp;quot; FROM GD_DOCUMENT doc &amp;quot; &amp;amp; _&lt;br /&gt;
                 &amp;quot; ……&amp;quot;&lt;br /&gt;
 set qDetail = BaseQueryList.Query(BaseQueryList.Add(&amp;quot;DocLine&amp;quot;, 0))&lt;br /&gt;
 qDetail.SQL =   &amp;quot; SELECT doc.PARENT AS MASTERKEY, &amp;quot; &amp;amp; _&lt;br /&gt;
                 &amp;quot;……&amp;quot; &amp;amp; _&lt;br /&gt;
                 &amp;quot; FROM GD_DOCUMENT doc &amp;quot; &amp;amp; _&lt;br /&gt;
                 &amp;quot; ……&amp;quot;&lt;br /&gt;
                 &amp;quot; ORDER BY doc.DOCUMENTDATE&amp;quot;                            &lt;br /&gt;
  qMaster.Open&lt;br /&gt;
  qDetail.Open&lt;br /&gt;
  call BaseQueryList.AddMasterDetail(&amp;quot;Doc&amp;quot;, &amp;quot;ID&amp;quot;, &amp;quot;DocLine&amp;quot;, &amp;quot;MASTERKEY;DOCUMENTDATE&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
Оба Query должны быть открыты. В параметре DetailField после поля, по которому идет связка (MASTERKEY), через «;» перечисляются поля, по которым идет сортировка.&lt;/div&gt;</summary>
		<author><name>SYSDBA</name></author>	</entry>

	</feed>