<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Code Generator &amp;gt; List Page: see only the records created by the user</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Code-Generator-List-Page-see-only-the-records-created-by-the-user-82685</link>
        <description></description>
        <pubDate>Sat, 11 Jul 2026 14:14:16 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Code-Generator-List-Page-see-only-the-records-created-by-the-user-82685" rel="self" type="application/rss+xml" />

                <item>
          <title>Code Generator &gt; List Page: see only the records created by the user</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246595#post2246595</link>
          <description><![CDATA[<p>Hi Dave</p>
<p>It worked! At least I managed to make a simple search form. I will experiment a bit and I might come back with any questions if needed. </p>
<p>Kind regards, </p>
<p>Andreas</p>]]></description>
          <pubDate>Sat, 24 Jun 2023 01:22:27 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246595#post2246595</guid>
        </item>
                <item>
          <title>Code Generator &gt; List Page: see only the records created by the user</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246594#post2246594</link>
          <description><![CDATA[<p>Hi Andreas, </p>
<p>Ok, when the generate the view code you can either check the "Allow Searching" checkbox, or manually set that option to true in the generate code as follows:</p>
<pre class="language-php"><code>'allowSearch' =&gt; true,</code></pre>
<p>You can create a special link that only lists specific records. Just add a ("?") after your url, following by the search conditions (fieldname=value).<br />Example: listViewer.php?color=blue</p>
<p>Multiple search conditions can be combined with ("&amp;").<br />Example: listViewer.php?color=blue&amp;size=XXL</p>
<p>Those search for exact matches, but if you add _keyword to the end it will check for the search term anywhere in the content:<br />Example: listViewer.php?title_keyword=ai</p>
<p>You can create search forms by naming the fields after what you want them to search. Here is a simple search form that searches the "title" field for a keyword.</p>
<p>&lt;form method="POST" action="?"&gt;<br />&lt;input type="text" name="title_keyword" value=""&gt;<br />&lt;input type="submit" name="submit" value="Search"&gt;<br />&lt;/form&gt;</p>
<p> I'd recommend experimenting with modifying the URL and creating forms and refer to our search documentation here: <br /><a href="https://www.interactivetools.com/docs/cmsbuilder/viewer_search.php" rel="nofollow">https://www.interactivetools.com/docs/cmsbuilder/viewer_search.php</a></p>
<p>Hope that helps! Let me know any other questions.</p>]]></description>
          <pubDate>Thu, 22 Jun 2023 15:17:03 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246594#post2246594</guid>
        </item>
                <item>
          <title>Code Generator &gt; List Page: see only the records created by the user</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246593#post2246593</link>
          <description><![CDATA[<p>Hi Dave</p>
<p>Thank you for your interest. </p>
<p>I refer to the list of records created with the PHP viewer code. When I open the file, I see a list of the total number of records of the section. I would like to add some PHP code in the beginning to make some filtering of the returned results.</p>
<p>I hope it makes sense. If it does not, I can provide you with the code or some username/password to log in to this page (it is not free; one needs to log in through the Website Membership plugin to have access to this page). </p>
<p>Kind regards, </p>
<p>Andreas</p>]]></description>
          <pubDate>Wed, 21 Jun 2023 15:29:56 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246593#post2246593</guid>
        </item>
                <item>
          <title>Code Generator &gt; List Page: see only the records created by the user</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246591#post2246591</link>
          <description><![CDATA[<p>Hi Andreas, </p>
<p>Are you referring the the list of records in the CMS itself? Or the list of records you see when you create viewer code and are viewing that PHP file through the browser? </p>
<p>Let me know and I'll try to help, thanks!</p>]]></description>
          <pubDate>Tue, 20 Jun 2023 16:03:04 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246591#post2246591</guid>
        </item>
                <item>
          <title>Code Generator &gt; List Page: see only the records created by the user</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246588#post2246588</link>
          <description><![CDATA[<p>Hi Dave</p>
<p>Is there any available PHP code to make a simple search within my section list-page?</p>
<p>Regards, </p>
<p>Andreas</p>]]></description>
          <pubDate>Tue, 20 Jun 2023 13:25:46 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246588#post2246588</guid>
        </item>
                <item>
          <title>Code Generator &gt; List Page: see only the records created by the user</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246589#post2246589</link>
          <description><![CDATA[<p>Hi Dave</p>
<p>Is there any available PHP code to make a simple search within my section list-page?</p>
<p>Regards, </p>
<p>Andreas</p>]]></description>
          <pubDate>Tue, 20 Jun 2023 13:25:46 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246589#post2246589</guid>
        </item>
                <item>
          <title>Code Generator &gt; List Page: see only the records created by the user</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246586#post2246586</link>
          <description><![CDATA[<p>Andreas, </p>
<p>There's some examples here for creating search fields: <a href="https://www.interactivetools.com/docs/cmsbuilder/viewer_search.php" rel="nofollow">https://www.interactivetools.com/docs/cmsbuilder/viewer_search.php</a></p>
<p>What fields do you want to search on and what do you want it to look like? </p>
]]></description>
          <pubDate>Mon, 19 Jun 2023 20:39:31 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246586#post2246586</guid>
        </item>
                <item>
          <title>Code Generator &gt; List Page: see only the records created by the user</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246585#post2246585</link>
          <description><![CDATA[<p>Thanks anyway</p>]]></description>
          <pubDate>Wed, 14 Jun 2023 10:18:51 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246585#post2246585</guid>
        </item>
                <item>
          <title>Code Generator &gt; List Page: see only the records created by the user</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246584#post2246584</link>
          <description><![CDATA[<p>Andreas, I'm sorry to say I don't know of any pre-existing code.</p>
<p>Perhaps someone else reading this might have ideas or you could contact Interactive Tools consulting.</p>
<p>~ Deborah</p>]]></description>
          <pubDate>Wed, 14 Jun 2023 10:16:52 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246584#post2246584</guid>
        </item>
                <item>
          <title>Code Generator &gt; List Page: see only the records created by the user</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246583#post2246583</link>
          <description><![CDATA[<p>Thanks, Deborah</p>
<p>Unfortunately, I have not been able to manage it as I expected. I am thinking of adding some PHP code inside this list-page (already filtered to contain only records created by the logged in user) that will allow users to search within it using various criteria. Is there some code available?</p>
<p>Regards, </p>
<p>Andreas</p>
]]></description>
          <pubDate>Wed, 14 Jun 2023 09:47:18 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246583#post2246583</guid>
        </item>
                <item>
          <title>Code Generator &gt; List Page: see only the records created by the user</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246580#post2246580</link>
          <description><![CDATA[<p>Glad that worked for you, Andreas.</p>
<p>Depending on what you have in mind for search, one of these methods might work.</p>
<p>1) There's a variety of search methods in the CMS Builder documentation here:<br /><a href="https://www.interactivetools.com/docs/cmsbuilder/viewer_search.php" rel="nofollow">https://www.interactivetools.com/docs/cmsbuilder/viewer_search.php</a></p>
<p>2) To search multiple tables on one page, you can try MultiSearch.php referred to in this forum post:<br /><a href="https://www.interactivetools.com/forum/forum-posts.php?postNum=2246137#post2246137" rel="nofollow">https://www.interactivetools.com/forum/forum-posts.php?postNum=2246137#post2246137</a><br />There's a download link to MultiSearch.php at the bottom of the second post.</p>
<p>Hope that helps!<br />~ Deborah</p>

]]></description>
          <pubDate>Tue, 13 Jun 2023 07:56:20 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246580#post2246580</guid>
        </item>
                <item>
          <title>Code Generator &gt; List Page: see only the records created by the user</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246579#post2246579</link>
          <description><![CDATA[<p>Hi Deborah </p>
<p>Thank you for your reply. </p>
<p>It seems it works. </p>
<pre class="language-php"><code>  // load records from 'aortic_aneurysm_disease'
  list($aortic_aneurysm_diseaseRecords, $aortic_aneurysm_diseaseMetaData) = getRecords(array(
    'tableName'   =&gt; 'aortic_aneurysm_disease',
    'perPage'     =&gt; '10',
    'loadUploads' =&gt; false,
    'allowSearch' =&gt; true,
    'where' =&gt; mysql_escapef('createdByUserNum = ?', $CURRENT_USER['num']),
  ));</code></pre>
<p>What about a search query to search within the file?</p>
<p>Kind regards, </p>
<p>Andreas</p>]]></description>
          <pubDate>Mon, 12 Jun 2023 22:47:28 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246579#post2246579</guid>
        </item>
                <item>
          <title>Code Generator &gt; List Page: see only the records created by the user</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246578#post2246578</link>
          <description><![CDATA[<p>Hi, Andreas.</p>
<p>I've not tried this myself, but the last post on the following forum thread might help.<br /><a href="https://www.interactivetools.com/forum/forum-posts.php?postNum=2245779#post2245779" rel="nofollow">https://www.interactivetools.com/forum/forum-posts.php?postNum=2245779#post2245779</a></p>
<p>Looks like basically this might do it:</p>
<pre class="language-markup"><code>'where' =&gt; mysql_escapef('createdByUserNum = ?', $CURRENT_USER['num']),</code></pre>
<p>~ Deborah</p>]]></description>
          <pubDate>Mon, 12 Jun 2023 04:18:59 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246578#post2246578</guid>
        </item>
                <item>
          <title>Code Generator &gt; List Page: see only the records created by the user</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246577#post2246577</link>
          <description><![CDATA[<p>Hi</p>
<p>I have created the List page of a section with the code generator tool and made all the additions described in the Website Membership plugin so that each user should log in to have access to this page. And this works fine. So when a user logs in with his username/password he/she has access to this specific section list page. <strong>However, he/she has access to the full set of records and not only to those records he/she has created</strong>. This is something I want to avoid as each user should have access only to his/her records. </p>
<p>Can you give me some hints on how to carry on? (Just to remind that each user can have one of three different distinct types of access to records - own, hospital, all-). </p>
<p>And an extra question. As this List page will contain a very large number of records, how could I add a search tool (either at the beginning of the page or on a different page) to filter the retrieved records according to some criteria?</p>
<p>Kind regards, </p>
<p>Andreas Lazaris</p>]]></description>
          <pubDate>Sun, 11 Jun 2023 14:53:57 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246577#post2246577</guid>
        </item>
              </channel>
    </rss>
  