<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[My Visual Database — Edit User Data]]></title>
		<link>https://myvisualdatabase.com/forum/viewtopic.php?id=7167</link>
		<atom:link href="https://myvisualdatabase.com/forum/extern.php?action=feed&amp;tid=7167&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Edit User Data.]]></description>
		<lastBuildDate>Sat, 05 Dec 2020 18:04:43 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Edit User Data]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=39236#p39236</link>
			<description><![CDATA[<p>Brian,<br />Worked perfectly.</p><p>Thanks</p><br /><p>and the other suggestions too are now in my toolbox..</p><p>Alan</p>]]></description>
			<author><![CDATA[null@example.com (asawyer13)]]></author>
			<pubDate>Sat, 05 Dec 2020 18:04:43 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=39236#p39236</guid>
		</item>
		<item>
			<title><![CDATA[Re: Edit User Data]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=39227#p39227</link>
			<description><![CDATA[<div class="quotebox"><cite>ehwagner wrote:</cite><blockquote><p>Derek, Alan,</p><p>Or you could use one line of code to retrieve the record without going through a tablegrid. See attached.</p></blockquote></div><p>I&#039;m about to do something like this. Anyway. if you already have that frmUser form. You can open it and change Form1<br /></p><div class="codebox"><pre><code>frmUser.ShowRecord(&#039;_user&#039;, Application.User.id); // current logged on user</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (brian.zaballa)]]></author>
			<pubDate>Sat, 05 Dec 2020 02:46:36 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=39227#p39227</guid>
		</item>
		<item>
			<title><![CDATA[Re: Edit User Data]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=39226#p39226</link>
			<description><![CDATA[<p>Derek, Alan,</p><p>Or you could use one line of code to retrieve the record without going through a tablegrid. See attached.</p>]]></description>
			<author><![CDATA[null@example.com (ehwagner)]]></author>
			<pubDate>Sat, 05 Dec 2020 01:49:19 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=39226#p39226</guid>
		</item>
		<item>
			<title><![CDATA[Re: Edit User Data]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=39225#p39225</link>
			<description><![CDATA[<p>Hi Alan,<br />I would take the userid of the person who has logged on, copy that to form1.edit1 which is then used as the value to filter the tablegrid down to a single record.&nbsp; The script then clicks the &#039;edit&#039; button and displays the first and last names of the relevant user.<br />I&#039;ve added an optional line to the script which hides the menu bar if the user does not have administrator privileges but you might already be doing that another way.<br />In the attachment, all passwords are the same as the userid&#039;s.<br />Derek.</p>]]></description>
			<author><![CDATA[null@example.com (derek)]]></author>
			<pubDate>Sat, 05 Dec 2020 00:39:18 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=39225#p39225</guid>
		</item>
		<item>
			<title><![CDATA[Re: Edit User Data]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=39223#p39223</link>
			<description><![CDATA[<p>Would it be best to use the sqlexecute technique to load the grid with the one row i want?</p>]]></description>
			<author><![CDATA[null@example.com (asawyer13)]]></author>
			<pubDate>Fri, 04 Dec 2020 23:28:22 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=39223#p39223</guid>
		</item>
		<item>
			<title><![CDATA[Re: Edit User Data]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=39221#p39221</link>
			<description><![CDATA[<p>Derek,</p><p>Thanks,</p><p>How can I add a filter so that when there are many rows in the table like _user to only filter for the current logged in user?</p><p>Alan</p>]]></description>
			<author><![CDATA[null@example.com (asawyer13)]]></author>
			<pubDate>Fri, 04 Dec 2020 22:37:21 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=39221#p39221</guid>
		</item>
		<item>
			<title><![CDATA[Re: Edit User Data]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=39220#p39220</link>
			<description><![CDATA[<p>Hi,<br />For me, the easiest way is to continue using a grid - even if there is only record, it doesn&#039;t matter.<br />However, if you want to make it more user friendly, just make the grid and the edit button invisible. <br />So you&#039;d use a script to <br />1.&nbsp; highlight the only record in the grid<br />2.&nbsp; click the &#039;edit&#039; button<br />Please see the attached.<br />There are other ways (using an editable grid is a &#039;no script&#039; option) but I think this stays closest to basic MVD functionality.<br />Derek.</p>]]></description>
			<author><![CDATA[null@example.com (derek)]]></author>
			<pubDate>Fri, 04 Dec 2020 22:10:21 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=39220#p39220</guid>
		</item>
		<item>
			<title><![CDATA[Edit User Data]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=39219#p39219</link>
			<description><![CDATA[<p>This might be a dumb question, but every sample app I look at uses a Grid to show the records and then you either double click or select Edit to modify the data.</p><p>How does one edit a record when there is only one record, or only one record that the user sees, for example, how does the user edit his first name and last name on his _user record when using roles?</p><p>I have a form called frmUser that has the fields but I don&#039;t understand how to load the data into it??? Is the best way onShow to grab the data for the user and put it in the text boxes, etc??? or is there a better way?</p><p>Thanks<br />Alan</p>]]></description>
			<author><![CDATA[null@example.com (asawyer13)]]></author>
			<pubDate>Fri, 04 Dec 2020 20:53:55 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=39219#p39219</guid>
		</item>
	</channel>
</rss>
