<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://mh-svr.de/mw/index.php?action=history&amp;feed=atom&amp;title=PoNG_Module%3A_Master_Details_View</id>
	<title>PoNG Module: Master Details View - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://mh-svr.de/mw/index.php?action=history&amp;feed=atom&amp;title=PoNG_Module%3A_Master_Details_View"/>
	<link rel="alternate" type="text/html" href="https://mh-svr.de/mw/index.php?title=PoNG_Module:_Master_Details_View&amp;action=history"/>
	<updated>2026-08-23T23:06:57Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in MH</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://mh-svr.de/mw/index.php?title=PoNG_Module:_Master_Details_View&amp;diff=86&amp;oldid=prev</id>
		<title>Mh: Die Seite wurde neu angelegt: „Category:PoNGThis module creates a view of a record and details tables for any associated data in a resource view.   Please have a look at the other [[PoNG…“</title>
		<link rel="alternate" type="text/html" href="https://mh-svr.de/mw/index.php?title=PoNG_Module:_Master_Details_View&amp;diff=86&amp;oldid=prev"/>
		<updated>2014-03-30T16:38:33Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „&lt;a href=&quot;/mw/index.php/Kategorie:PoNG&quot; title=&quot;Kategorie:PoNG&quot;&gt;Category:PoNG&lt;/a&gt;This module creates a view of a record and details tables for any associated data in a resource view.   Please have a look at the other [[PoNG…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:PoNG]]This module creates a view of a record and details tables for any associated data in a resource view. &lt;br /&gt;
&lt;br /&gt;
Please have a look at the other [[PoNG_Modules#Standard_Modules_coming_with_PoNG|standard modules coming with PoNG]]. &lt;br /&gt;
&lt;br /&gt;
Requires: [[PoNG Module: Table View|PoNG Table View]]&lt;br /&gt;
&lt;br /&gt;
== Usage in &amp;quot;structure&amp;quot; ==&lt;br /&gt;
Simply &amp;lt;code&amp;gt;&amp;quot;type&amp;quot;: &amp;quot;pong-table&amp;quot;&amp;lt;/code&amp;gt; to the &amp;lt;code&amp;gt;rows&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;cols&amp;lt;/code&amp;gt; resource. Example [[PoNG Structure Specification|structure file]] extract:&lt;br /&gt;
 {&lt;br /&gt;
   &amp;quot;layout&amp;quot;: {&lt;br /&gt;
      ...&lt;br /&gt;
      &amp;quot;rows&amp;quot;: [&lt;br /&gt;
      {&lt;br /&gt;
        &amp;quot;rowId&amp;quot;: &amp;quot;bla&amp;quot;,&lt;br /&gt;
        &amp;quot;resourceURL&amp;quot;: &amp;quot;Products&amp;quot;,&lt;br /&gt;
        &amp;#039;&amp;#039;&amp;#039;&amp;quot;type&amp;quot;: &amp;quot;pong-master-details&amp;quot;&amp;#039;&amp;#039;&amp;#039;,&lt;br /&gt;
        ...&lt;br /&gt;
      },&lt;br /&gt;
      ...&lt;br /&gt;
    ],&lt;br /&gt;
    ...&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
== Definition of the Master Details View ==&lt;br /&gt;
The resource will load the table definition from the URL &amp;lt;code&amp;gt;../svc/XYZ/pong-table&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example JSON definition from &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;../svc/&amp;lt;resourceUrl&amp;gt;/pong-master-details&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
 {&lt;br /&gt;
    &amp;quot;label&amp;quot;: &amp;quot;Customers&amp;quot;,&lt;br /&gt;
    &amp;quot;description&amp;quot;: &amp;quot;CRM demo data&amp;quot;, &lt;br /&gt;
    &amp;quot;searchFilter&amp;quot;: {&lt;br /&gt;
         &amp;quot;searchFields&amp;quot;: [ {&amp;quot;id&amp;quot;:&amp;quot;name&amp;quot;, &amp;quot;label&amp;quot;:&amp;quot;Name&amp;quot;}, {&amp;quot;id&amp;quot;:&amp;quot;phone&amp;quot;, &amp;quot;label&amp;quot;:&amp;quot;Phone&amp;quot;} ]&lt;br /&gt;
    },&lt;br /&gt;
    &amp;quot;fields&amp;quot; : [&lt;br /&gt;
       { &amp;quot;id&amp;quot;: &amp;quot;customerId&amp;quot;, &amp;quot;label&amp;quot;: &amp;quot;ID&amp;quot;, &amp;quot;cellType&amp;quot;: &amp;quot;id&amp;quot; }, &lt;br /&gt;
       { &amp;quot;id&amp;quot;: &amp;quot;name&amp;quot;, &amp;quot;label&amp;quot;: &amp;quot;Name&amp;quot;, &amp;quot;cellType&amp;quot;: &amp;quot;text&amp;quot; }, &lt;br /&gt;
       { &amp;quot;id&amp;quot;: &amp;quot;phone&amp;quot;, &amp;quot;label&amp;quot;: &amp;quot;Phone&amp;quot;, &amp;quot;cellType&amp;quot;: &amp;quot;text&amp;quot; },  &lt;br /&gt;
       { &amp;quot;id&amp;quot;: &amp;quot;addr&amp;quot;, &amp;quot;label&amp;quot;: &amp;quot;Address&amp;quot;, &amp;quot;cellType&amp;quot;: &amp;quot;text&amp;quot; }  &lt;br /&gt;
     ],&lt;br /&gt;
     &amp;quot;associations&amp;quot; : [&lt;br /&gt;
       { &amp;quot;resourceURL&amp;quot;: &amp;quot;svc/demoOrders&amp;quot;, &amp;quot;label&amp;quot;:&amp;quot;Customers Orders&amp;quot;, &amp;quot;tableDef&amp;quot;: &amp;quot;detail-tbl-meta&amp;quot; },&lt;br /&gt;
       { &amp;quot;resourceURL&amp;quot;: &amp;quot;svc/blog&amp;quot;, &amp;quot;label&amp;quot;:&amp;quot;Messages from Customer&amp;quot;, &amp;quot;listDef&amp;quot;: &amp;quot;pong-list&amp;quot;, &amp;quot;filterField&amp;quot;:&amp;quot;authorID&amp;quot; }&lt;br /&gt;
     ]&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
For the associations you must provide a [[PoNG Module: Table View|table view]] definition at the specified resourceURL. &lt;br /&gt;
The field &amp;lt;code&amp;gt;tableDef&amp;lt;/code&amp;gt; is optional, by default it will use &amp;lt;code&amp;gt;pong-table&amp;lt;/code&amp;gt; for the columns definition of the details table view. &lt;br /&gt;
An alternative to &amp;lt;code&amp;gt;tableDef&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;listDef&amp;lt;/code&amp;gt;, which triggers to render a [[PoNG Module: List View|list view]] instead of a table.&lt;br /&gt;
&lt;br /&gt;
If the ID field of the details view differs from the master ID name, you have to define it as &amp;lt;code&amp;gt;&amp;quot;filterField&amp;quot;:&amp;quot;&amp;lt;details ID column name&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Simple example ==&lt;br /&gt;
This is the result of the definition above:&lt;br /&gt;
&lt;br /&gt;
[[Datei:PoNG-MasterDetails.png]]&lt;br /&gt;
&lt;br /&gt;
== CSS ==&lt;br /&gt;
You can use the following CCS elements to modify thy styles:&lt;br /&gt;
* TODO&lt;/div&gt;</summary>
		<author><name>Mh</name></author>
		
	</entry>
</feed>