<?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_Modal_Form_Dialog</id>
	<title>PoNG Module: Modal Form Dialog - 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_Modal_Form_Dialog"/>
	<link rel="alternate" type="text/html" href="https://mh-svr.de/mw/index.php?title=PoNG_Module:_Modal_Form_Dialog&amp;action=history"/>
	<updated>2026-08-24T02:34:02Z</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:_Modal_Form_Dialog&amp;diff=89&amp;oldid=prev</id>
		<title>Mh: Die Seite wurde neu angelegt: „Category:PoNGThis module enables you to use forms in modal dialogs in PoNG.   Typically you can add a configuration dialog to your resource view. You o…“</title>
		<link rel="alternate" type="text/html" href="https://mh-svr.de/mw/index.php?title=PoNG_Module:_Modal_Form_Dialog&amp;diff=89&amp;oldid=prev"/>
		<updated>2014-03-30T16:41:58Z</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 enables you to use forms in modal dialogs in &lt;a href=&quot;/mw/index.php/PoNG&quot; title=&quot;PoNG&quot;&gt;PoNG&lt;/a&gt;.   Typically you can add a configuration dialog to your resource view. You o…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:PoNG]]This module enables you to use forms in modal dialogs in [[PoNG]]. &lt;br /&gt;
&lt;br /&gt;
Typically you can add a configuration dialog to your resource view. You only have to define the fields of the configuration form, that&amp;#039;s it. &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;
== Usage in &amp;quot;structure&amp;quot; ==&lt;br /&gt;
Simply add a action to the &amp;lt;code&amp;gt;actions&amp;lt;/code&amp;gt; array with &amp;lt;code&amp;gt;&amp;quot;type&amp;quot;: &amp;quot;modal-form&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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;XYZ&amp;quot;,&lt;br /&gt;
        ...&lt;br /&gt;
        &amp;quot;actions&amp;quot; : [ &amp;#039;&amp;#039;&amp;#039;{ &amp;quot;actionName&amp;quot;: &amp;quot;Config&amp;quot;, &amp;quot;type&amp;quot;: &amp;quot;modal-form&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;
== Definition of the form ==&lt;br /&gt;
This modal-form module will then generate a form. The field definition is loaded from the URL &amp;lt;code&amp;gt;../svc/XYZ/modal/Config/meta&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example definiton from &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;../svc/&amp;lt;resourceUrl/modal/&amp;lt;actionName&amp;gt;/meta&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
 {&lt;br /&gt;
    &amp;quot;propertiesList&amp;quot; : [&lt;br /&gt;
        { &amp;quot;name&amp;quot; : &amp;quot;a&amp;quot;, &amp;quot;type&amp;quot; : &amp;quot;text&amp;quot;, &amp;quot;label&amp;quot;: &amp;quot;Bla&amp;quot; },&lt;br /&gt;
        { &amp;quot;name&amp;quot; : &amp;quot;b&amp;quot;, &amp;quot;type&amp;quot; : &amp;quot;int&amp;quot;, &amp;quot;label&amp;quot;: &amp;quot;Blub&amp;quot; }  &lt;br /&gt;
    ], &lt;br /&gt;
    &amp;quot;width&amp;quot;: &amp;quot;800&amp;quot;, &lt;br /&gt;
    &amp;quot;height&amp;quot;: &amp;quot;600&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Available types:&lt;br /&gt;
* text&lt;br /&gt;
* password&lt;br /&gt;
* int&lt;br /&gt;
* textarea&lt;br /&gt;
&lt;br /&gt;
Result:&lt;br /&gt;
&lt;br /&gt;
[[Datei:PoNG-Module Modal-Form.png]]&lt;br /&gt;
&lt;br /&gt;
== Interaction with the resource ==&lt;br /&gt;
The values are loaded with a GET call to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;../svc/&amp;lt;resourceUrl/modal/&amp;lt;actionName&amp;gt;?&amp;lt;name&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Name is the value of name in the properties list.&lt;br /&gt;
&lt;br /&gt;
The form will submit its values using POST to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;../svc/&amp;lt;resourceUrl/modal/&amp;lt;actionName&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Mh</name></author>
		
	</entry>
</feed>