<?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 — Table Grid]]></title>
		<link>https://myvisualdatabase.com/forum/viewtopic.php?id=8137</link>
		<atom:link href="https://myvisualdatabase.com/forum/extern.php?action=feed&amp;tid=8137&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Table Grid.]]></description>
		<lastBuildDate>Tue, 24 May 2022 13:51:41 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Table Grid]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=44811#p44811</link>
			<description><![CDATA[<div class="quotebox"><cite>joshuA wrote:</cite><blockquote><p>Nicely done lemodizon.</p><p>Thanks for sharing too.<br />-joshuA</p></blockquote></div><br /><p>Hi joshuA,</p><p>Thank you, I&#039;m a newbie in MVD need more practice. while reading the book &quot;hands-on exercises for my visual database training&quot;&nbsp; when i read the database normalization i checked my tables still need to revised.</p><p>hoping i can finish my simple inventory and make another to be familiarize MVD, SQL and etc.</p>]]></description>
			<author><![CDATA[null@example.com (lemodizon)]]></author>
			<pubDate>Tue, 24 May 2022 13:51:41 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=44811#p44811</guid>
		</item>
		<item>
			<title><![CDATA[Re: Table Grid]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=44810#p44810</link>
			<description><![CDATA[<p>Nicely done lemodizon.</p><p>Thanks for sharing too.<br />-joshuA</p>]]></description>
			<author><![CDATA[null@example.com (joshuA)]]></author>
			<pubDate>Tue, 24 May 2022 11:29:36 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=44810#p44810</guid>
		</item>
		<item>
			<title><![CDATA[Re: Table Grid]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=44809#p44809</link>
			<description><![CDATA[<p>Hi Everyone,</p><p>here is my updated design in my simple inventory.</p><p>Thank you in advance.</p>]]></description>
			<author><![CDATA[null@example.com (lemodizon)]]></author>
			<pubDate>Tue, 24 May 2022 06:27:34 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=44809#p44809</guid>
		</item>
		<item>
			<title><![CDATA[Re: Table Grid]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=44808#p44808</link>
			<description><![CDATA[<div class="quotebox"><cite>derek wrote:</cite><blockquote><p>Hi,<br />If you use a &#039;status&#039; indicator, then there is no need for a temporary table.&nbsp; Not saying one is better than the other, it&#039;s all about giving you choices.<br />If you use a status indicator, there are a couple of options to consider (see the attachment).<br />Option 1 in the attachment - simply click on the &#039;status&#039; cell in frmstockout to change the cell value from &#039;to be confirmed&#039; to &#039;confirmed&#039; (but if you decide to have other statuses as well, clicking on the &#039;status&#039; cell will toggle through each of the various statuses in turn).<br />Option 2 in the attachment - you can use the &#039;status&#039; filter (optionally) to filter records by status and then use the &#039;change to status&#039; combobox (combobox2) to select the status you want to change the records to (giving you the option to change things back if you get something wrong).<br />Again, no right or wrong way, it&#039;s all about what suits your application best.<br />Derek.</p></blockquote></div><br /><p>Hi All,derek</p><p>I got your point.</p><p>Thank you very much..</p><p>I updated my file since i&#039;m still studying SQL I didn&#039;t putted any script code in my tablegrid. I saved all the data in my stockout table so i can use the edit button.</p><p>I chose option1 but i didn&#039;t put any script code in the table. just set the setting what records it will display. </p><p>Questions:</p><p>1. How to check in the tablegrid if the product is in the list already<br />So that my record will not duplicate and the&nbsp; user will&nbsp; go edit button. ( I tried this but using sql&nbsp; checking in the database if it has duplicate).</p><p>2. in my tablegrid &quot;Expdate&quot; how can i set into date only format? ( i already set in the property noting happens)</p><p>3.How do you calcute in the tablegrid every item will will deduct based on the OUT item and display the balance and will removed in my table if the status is &quot;Confirmed&quot;&nbsp; once I clicked the processd button.<br />Once it is done it will update my table products(master list) the quantity and balance&nbsp; field. ( i tried this but in the same form)</p><p>Thank you everyone for guiding me and helping me out .</p>]]></description>
			<author><![CDATA[null@example.com (lemodizon)]]></author>
			<pubDate>Tue, 24 May 2022 06:25:48 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=44808#p44808</guid>
		</item>
		<item>
			<title><![CDATA[Re: Table Grid]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=44807#p44807</link>
			<description><![CDATA[<p>Hi,<br />If you use a &#039;status&#039; indicator, then there is no need for a temporary table.&nbsp; Not saying one is better than the other, it&#039;s all about giving you choices.<br />If you use a status indicator, there are a couple of options to consider (see the attachment).<br />Option 1 in the attachment - simply click on the &#039;status&#039; cell in frmstockout to change the cell value from &#039;to be confirmed&#039; to &#039;confirmed&#039; (but if you decide to have other statuses as well, clicking on the &#039;status&#039; cell will toggle through each of the various statuses in turn).<br />Option 2 in the attachment - you can use the &#039;status&#039; filter (optionally) to filter records by status and then use the &#039;change to status&#039; combobox (combobox2) to select the status you want to change the records to (giving you the option to change things back if you get something wrong).<br />Again, no right or wrong way, it&#039;s all about what suits your application best.<br />Derek.</p>]]></description>
			<author><![CDATA[null@example.com (derek)]]></author>
			<pubDate>Mon, 23 May 2022 18:04:01 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=44807#p44807</guid>
		</item>
		<item>
			<title><![CDATA[Re: Table Grid]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=44806#p44806</link>
			<description><![CDATA[<div class="quotebox"><cite>derek wrote:</cite><blockquote><p>Hi Lemondizon,<br />Can&#039;t you just add a &#039;status&#039; flag to your &#039;stockout&#039; table (&#039;confirmed&#039;, &#039;to be confirmed&#039; - and anything else you might want)?<br />Any entries you make on the &#039;frmstockout_add&#039; form can be created with a default status of &#039;to be confirmed&#039;<br />Then it&#039;s simply a case of a batch update of the status when required.<br />It would also give you the option to filter by &#039;status&#039; which would probably be useful.<br />Derek.</p></blockquote></div><br /><p>Hi derek,</p><p>thanks for your suggestion. I will revised my form.</p><p>here is the updated file. i don&#039;t know if&nbsp; I got your suggestion derek right... i added combobox i&#039;m looking for optional button the only available is checkbox.</p><p>Do I still need the temp table or just stockOut table will do?</p>]]></description>
			<author><![CDATA[null@example.com (lemodizon)]]></author>
			<pubDate>Mon, 23 May 2022 13:08:15 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=44806#p44806</guid>
		</item>
		<item>
			<title><![CDATA[Re: Table Grid]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=44805#p44805</link>
			<description><![CDATA[<p>Hi Lemondizon,<br />Can&#039;t you just add a &#039;status&#039; flag to your &#039;stockout&#039; table (&#039;confirmed&#039;, &#039;to be confirmed&#039; - and anything else you might want)?<br />Any entries you make on the &#039;frmstockout_add&#039; form can be created with a default status of &#039;to be confirmed&#039;<br />Then it&#039;s simply a case of a batch update of the status when required.<br />It would also give you the option to filter by &#039;status&#039; which would probably be useful.<br />Derek.</p>]]></description>
			<author><![CDATA[null@example.com (derek)]]></author>
			<pubDate>Mon, 23 May 2022 11:13:28 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=44805#p44805</guid>
		</item>
		<item>
			<title><![CDATA[Re: Table Grid]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=44803#p44803</link>
			<description><![CDATA[<div class="quotebox"><cite>joshuA wrote:</cite><blockquote><p>Hi lemodizon,</p><br /><p>This is not a complete solution, but hopefully it provides some ideas to work with.</p><br /><p>Most tablegrids are attached to a table in the database, so in my example, I added a TMP table to hold the changes &quot;to be committed&quot;.&nbsp; This gives you a table full of items that need to be updated, so you&#039;ll have to fill-in the SQL to make that happen.</p><br /><p>While it is possible to add items manually to a tablegrid, I believe that defeats their purpose.&nbsp; <em>Someone correct me if I am wrong about that.</em></p><p>-joshuA</p></blockquote></div><br /><p>Hi joshua,</p><p>Thanks for the response.</p><p>TMP table is a temporary table once i clicked the button &quot;confirmed&quot;&nbsp; will it transfers or create a records going to my &quot;StockOUT&quot; table is this possible in MVD?&nbsp; so that StouckOUT table will stored all the item that is been pulled out.</p><p>Edit button</p><p>i tried to create a script code it doesn&#039;t work.</p><div class="codebox"><pre><code>// i created a var that will store all the text fields
var
    Hold_flds_QttyOut: string;
    Hold_flds_Remarks: string;
    Hold_flds_Area: string;
    Hold_flds_NewQtty: string;

///////////////////////////////////////////////////////////////////////////////////////////////////


procedure frmStockOUT_Add_OnShow (Sender: TObject; Action: string);

begin
      if action = &#039;NewRecord&#039; then

    if frmStockOUT_Add.txtProdID.Text &lt;&gt; &#039;&#039; then
    begin
        frmStockOUT_Add.cboProdList.dbItemID := strToInt(frmStockOUT_Add.txtProdID.Text);
        frmStockOUT_Add_cboProdList_OnCloseUp(Sender);
    end;

    begin


    If Action = &#039;ShowRecord&#039; then
    Begin
          frmStockOUT_Add.txtQttyOut.Text:=(&#039;SELECT QttyOut FROM Temp_StockOUT WHERE id_products= &#039;+frmStockOUT_Add.txtProdID.Text.sqlValue+ &#039; &#039;); /// i&#039;m not sure here i don&#039;t know if this is right.
    End;

end;

end;</code></pre></div><br /><p>thanks for helping me out.</p>]]></description>
			<author><![CDATA[null@example.com (lemodizon)]]></author>
			<pubDate>Mon, 23 May 2022 08:13:29 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=44803#p44803</guid>
		</item>
		<item>
			<title><![CDATA[Re: Table Grid]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=44799#p44799</link>
			<description><![CDATA[<p>Hi lemodizon,</p><br /><p>This is not a complete solution, but hopefully it provides some ideas to work with.</p><br /><p>Most tablegrids are attached to a table in the database, so in my example, I added a TMP table to hold the changes &quot;to be committed&quot;.&nbsp; This gives you a table full of items that need to be updated, so you&#039;ll have to fill-in the SQL to make that happen.</p><br /><p>While it is possible to add items manually to a tablegrid, I believe that defeats their purpose.&nbsp; <em>Someone correct me if I am wrong about that.</em></p><p>-joshuA</p>]]></description>
			<author><![CDATA[null@example.com (joshuA)]]></author>
			<pubDate>Mon, 23 May 2022 00:20:18 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=44799#p44799</guid>
		</item>
		<item>
			<title><![CDATA[Re: Table Grid]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=44796#p44796</link>
			<description><![CDATA[<p>here is my project file</p>]]></description>
			<author><![CDATA[null@example.com (lemodizon)]]></author>
			<pubDate>Sun, 22 May 2022 12:57:41 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=44796#p44796</guid>
		</item>
		<item>
			<title><![CDATA[Table Grid]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=44795#p44795</link>
			<description><![CDATA[<p>Hi Everyone,</p><p>i created a stock OUT form.</p><p>I have a two forms (form1) will ADD Only a product one at a time (No saving record yet) once the user knows how many quantity will be out. </p><p>it will display only in my tablegrid.(form2).</p><p>the CONFIRMED button (this button will save the records from my tablegrid). is this possible in MDV?&nbsp; i just want to save all the records added one time.</p><p>while learning MVD i can display the data but i have to use save record then display into my tablegrid.</p><p>hope you can guide me.</p>]]></description>
			<author><![CDATA[null@example.com (lemodizon)]]></author>
			<pubDate>Sun, 22 May 2022 12:55:01 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=44795#p44795</guid>
		</item>
	</channel>
</rss>
