<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Populate a section list editor with data from a different section list</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Populate-a-section-list-editor-with-data-from-a-different-section-list-80609</link>
        <description></description>
        <pubDate>Mon, 16 Mar 2026 22:58:06 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Populate-a-section-list-editor-with-data-from-a-different-section-list-80609" rel="self" type="application/rss+xml" />

                <item>
          <title>Populate a section list editor with data from a different section list</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239158#post2239158</link>
          <description><![CDATA[<p>Hi Kurt,</p>
<p>&gt; In this case, if the "master section" is subsequently updated, does it have any effect on the other records?</p>
<p>Yes, functions that are hooked to "record_postsave" will always be called whenever you save a record - adding a new one, or updating an existing record.</p>
<p>In addition to my example code, you should also check if the $tableName is equals to the table name of your master section.<br />So that your script for updating the records of other sections will only get executed when saving a record in your master section.</p>
<p>Cheers,</p>
]]></description>
          <pubDate>Fri, 08 Jul 2016 09:53:17 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239158#post2239158</guid>
        </item>
                <item>
          <title>Populate a section list editor with data from a different section list</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239156#post2239156</link>
          <description><![CDATA[<p>Thanks Daryl,</p>

<p>In this case, if the "master section" is subsequently updated, does it have any effect on the other records? If not, is there a method that would allow the other records to be updated when the "master record" was updated?</p>

<p>Kurt</p>]]></description>
          <pubDate>Fri, 08 Jul 2016 07:02:50 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239156#post2239156</guid>
        </item>
                <item>
          <title>Populate a section list editor with data from a different section list</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239152#post2239152</link>
          <description><![CDATA[<p>Hi Kurt,</p>
<p>One way to do that is to create a custom plugin that is hooked to "record_postsave" plugin hook.</p>
<p>This hook will call the plugin function after a record is saved, ie, in your "master section".<br />The data from the "master" section will be pass over as an argument to your function where you can add/insert them to other section.</p>
<p>Example usage of a plugin hook:</p>
<p><code>&lt;?php<br /> /*<br /> Plugin Name: Example plugin<br /> Description: <br /> */<br /><br /> addAction('record_postsave', 'update_other_sections_records_function', null, 4);<br /> function update_other_sections_records_function($tableName, $isNewRecord, $oldRecord, $recordNum) {<br />  // insert/update records from other sections here<br />}</code></p>
<p>In the above example:</p>
<p>$isNewRecord is equals to "1" if the record is new.<br />$oldRecord is an array that contains the data from the "master section"</p>
<p>Cheers,</p>]]></description>
          <pubDate>Thu, 07 Jul 2016 12:20:45 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239152#post2239152</guid>
        </item>
                <item>
          <title>Populate a section list editor with data from a different section list</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239148#post2239148</link>
          <description><![CDATA[<p>Is there a way to populate a section list editor with the content from a different section list editor?</p>
<p>I have a need to create a number of list editors that will use mostly the same list details, but each needs to be able to be separately edited. It would be really nice if I could create a master section editor that would automatically pre-populate each of the other page section editors..</p>]]></description>
          <pubDate>Thu, 07 Jul 2016 08:44:34 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239148#post2239148</guid>
        </item>
              </channel>
    </rss>
  