<?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 — Creating Treeview like panel with new entries and groups]]></title>
		<link>https://myvisualdatabase.com/forum/viewtopic.php?id=8821</link>
		<atom:link href="https://myvisualdatabase.com/forum/extern.php?action=feed&amp;tid=8821&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Creating Treeview like panel with new entries and groups.]]></description>
		<lastBuildDate>Mon, 15 Jan 2024 16:33:01 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Creating Treeview like panel with new entries and groups]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50134#p50134</link>
			<description><![CDATA[<p>Hi guys,</p><p>Thanks a lot sparrow for the steps and insights.<br />I&#039;ll do these asap.</p><p>Yes I had found the xml files of Persona and converted them to csv but I&#039;m not familiar with it yet so I couldn&#039;t use it.<br />attachments-us1-cloud-deskpro-com.s3.amazonaws.com/files/962/294/293258JMXAWQTNQRXRMYY0-Persona-Extra-Samples.zip<br />convertcsv.com/xml-to-csv.htm</p><p>Get back asap with next progress!</p>]]></description>
			<author><![CDATA[null@example.com (franklabre)]]></author>
			<pubDate>Mon, 15 Jan 2024 16:33:01 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50134#p50134</guid>
		</item>
		<item>
			<title><![CDATA[Re: Creating Treeview like panel with new entries and groups]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50115#p50115</link>
			<description><![CDATA[<p>Hi&nbsp; Jean, Frank.</p><p>Jean,<br />Sorry, I just got this mixed up.<br />I have corrected the text below.</p><br /><p>We used Image in this project.<br />As for DBImage, the main obstacle was its functionality, which is different from other components. <br />For example, correct interception of image loading for recording in the database, similar to Edit and Memo.<br />Essentially, the DBImage component is an enhanced Image. Therefore, we used Image and attached some functions to it in the script.<br />If you need a Save button to save a picture from a storage location to another location you need, adding it is no problem.<br />In any case, there is room for creativity in a test project. Add Tree Search, ComboBox for Styles. Apply the color as Derek suggested. <br />A picture for a musician. It is possible to download and view multiple images for an album (requires database modification).<br />I think that at this stage it is necessary to divide this topic into two so as not to disturb Frank with other conversations. If you have any new questions or help, please create a new topic.<br />If any difficulties arise, I will try to help.</p><br /><p>Frank,<br />You can find a description of the base structure for the tree and an example at this link. <a href="http://myvisualdatabase.com/help_en/propertySettings1.html">http://myvisualdatabase.com/help_en/pro … ings1.html</a><br />As far as I understand you, you want to make some kind of analogue of Persona.<br />You don&#039;t have enough database knowledge yet.<br />You have taken on a rather large project.<br />Start small. Don&#039;t try to do everything at once.<br />Let what you drew remain. Start first with the main tree in your project. Get the output to work. <br />Then Enable One Edit field. Let&#039;s say Name (its output in Edit , its editing and saving to the database). <br />At this stage, through trial and error, you will begin to understand how the components interact with each other. <br />The next step is to connect the ComboBox. Etc..<br />And of course read the forum, books, websites. Use examples of solutions from forum members.<br />Persona uses XML in its work. It stores reference books, saved characters, and projects in this format. <br />As you gradually expand your program, you will add data from XML to SQLite tables. Now your database is all in one pile.</p>]]></description>
			<author><![CDATA[null@example.com (sparrow)]]></author>
			<pubDate>Sat, 13 Jan 2024 11:53:28 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50115#p50115</guid>
		</item>
		<item>
			<title><![CDATA[Re: Creating Treeview like panel with new entries and groups]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50114#p50114</link>
			<description><![CDATA[<p>Hello Sparrow<br />Your improvements to the original project are superb.<br />And Cherry on the cake your Drag and Drop function.<br />I always fumbled to integrate it into my applications, it worked but through tortuous paths. Your job is a highway compared to my way of doing things.<br />Do you know why using a classic DBimage with a save button (classic in MVD) did not work in this project?<br />I have always used it in all my other projects, but there, nothing was ever displayed whereas in the \Covers folder (intended to store the cover images), their names appear, proof that the Save button was working. job ?<br />Thank you again for your involvement and to Derek too)<br />Sincerely<br />J.B.</p>]]></description>
			<author><![CDATA[null@example.com (jean.brezhonek)]]></author>
			<pubDate>Sat, 13 Jan 2024 07:16:17 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50114#p50114</guid>
		</item>
		<item>
			<title><![CDATA[Re: Creating Treeview like panel with new entries and groups]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50111#p50111</link>
			<description><![CDATA[<p>Hi all,</p><p>Thanks Derek for that example.</p><p>I came that far with my project in attachment:<br />the project (with the script of interest)<br />paste.c-net.org/StanleyTower<br />the db files<br />paste.c-net.org/ConnellYummy</p><p>I&#039;m not sure about how to get&nbsp; forward with the script as<br />my database design skills are rudimentary and I doubt the schema is correct but it seems<br />I can&#039;t make more connections as per given by the Persona model.</p><p>Could anyone point me toward next recommended steps I should be taking<br />in order to display the database characters names in the treeview?</p><p>I should be able to proceed from there with the tags filtering, likely by using a a 2dn form<br />as with the Persona model.</p><p>Thanks again!</p>]]></description>
			<author><![CDATA[null@example.com (franklabre)]]></author>
			<pubDate>Fri, 12 Jan 2024 19:17:40 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50111#p50111</guid>
		</item>
		<item>
			<title><![CDATA[Re: Creating Treeview like panel with new entries and groups]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50109#p50109</link>
			<description><![CDATA[<p>Hi all,</p><br /><p>New mod, Drag and drop images are now supported.</p>]]></description>
			<author><![CDATA[null@example.com (sparrow)]]></author>
			<pubDate>Fri, 12 Jan 2024 13:09:45 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50109#p50109</guid>
		</item>
		<item>
			<title><![CDATA[Re: Creating Treeview like panel with new entries and groups]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50099#p50099</link>
			<description><![CDATA[<p>Hello Frank,<br /></p><div class="quotebox"><blockquote><p>Avoiding the use of a button? I&#039;d like to display the output straight from clicking the &quot;MUSICIANS&quot; menu if possible.</p></blockquote></div><p>A simple way to &#039;avoid&#039; the use of a button is to actually still use a button with either the &#039;search&#039; or the &#039;sqlquery&#039; function but then hide it.&nbsp; <br />Then use the &#039;incremental search&#039; function (see screen shot in the attachment).&nbsp; This is a &#039;no script&#039; option.<br />Derek.</p>]]></description>
			<author><![CDATA[null@example.com (derek)]]></author>
			<pubDate>Fri, 12 Jan 2024 00:14:03 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50099#p50099</guid>
		</item>
		<item>
			<title><![CDATA[Re: Creating Treeview like panel with new entries and groups]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50098#p50098</link>
			<description><![CDATA[<p>Version of the program with image support.<br />Something like this.</p>]]></description>
			<author><![CDATA[null@example.com (sparrow)]]></author>
			<pubDate>Thu, 11 Jan 2024 23:29:27 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50098#p50098</guid>
		</item>
		<item>
			<title><![CDATA[Re: Creating Treeview like panel with new entries and groups]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50096#p50096</link>
			<description><![CDATA[<p>Thanks sparrow and Derek for the solution hints.</p><p>I found the SQL Query reference in the guide under the button menu<br />(which function requires a tablegrid object for displaying the output rather than my previously used memo3):<br />myvisualdatabase.com/help_en/SQLquery.html<br />(I had been looking for the SQLQuery documentation using the SQLQuery keyword, which returned nothing, but SQL Query did).</p><p>Then got the SQL syntax corrected from this great resource and pointer post:<br />sqlitetutorial.net/sqlite-subquery/<br />myvisualdatabase.com/forum/viewtopic.php?pid=45037#p45037</p><div class="codebox"><pre><code>SELECT  mname
FROM musicians
WHERE musicians.id = (
   SELECT id_musicians
   FROM Alb_info
   WHERE Year = &#039;1978&#039;
);  </code></pre></div><p>It now outputs as expected:<br />ibb.co/D1GTHsr<br />ibb.co/kQkHRKV<br />ibb.co/mtGrFzN<br />ibb.co/p2w9NSf</p><p>The latest script:<br /><a href="https://paste.c-net.org/RapportHendrix">https://paste.c-net.org/RapportHendrix</a></p><p>Sparrow, you mentioned the use of SQLExecute function.<br />Is there some way to output the SQL Query result in a Treeview when using a script with the SQLExecute function?<br />Avoiding the use of a button? I&#039;d like to display the output straight from clicking the &quot;MUSICIANS&quot; menu if possible.<br />If so, do you know of some sample or example I should be referencing?</p><p>Thanks again for your remarks.<br />Regards,<br />Frank</p>]]></description>
			<author><![CDATA[null@example.com (franklabre)]]></author>
			<pubDate>Thu, 11 Jan 2024 09:33:53 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50096#p50096</guid>
		</item>
		<item>
			<title><![CDATA[Re: Creating Treeview like panel with new entries and groups]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50094#p50094</link>
			<description><![CDATA[<p>Salut Jean,<br />With the program that I use to catalogue my CDs, I don&#039;t bother with CD cover images or to capture the lyrics (too much like hard work <img src="https://myvisualdatabase.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" />).<br />But just out of interest, I made a version with CD covers and lyrics just to see how it could be done (I don&#039;t use &#039;treeview&#039; very much and some of the differences between it and the usual tablegrid approach are quite interesting and I need the practice!).<br />I was trying to do everything without any buttons (a combination of interactive tablegrids, treeview and right-click actions but had to admit defeat with saving the images so there is still one button)!! <br />Anyway, I&#039;ve attached it and maybe it helps.<br />Regards,<br />Derek.</p>]]></description>
			<author><![CDATA[null@example.com (derek)]]></author>
			<pubDate>Thu, 11 Jan 2024 01:02:07 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50094#p50094</guid>
		</item>
		<item>
			<title><![CDATA[Re: Creating Treeview like panel with new entries and groups]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50093#p50093</link>
			<description><![CDATA[<p>Hi Frank</p><p>The best tutorial on MVD is this forum.<br />You are using the &quot;SQLQuery&quot; function and not the &quot;SQLExecute&quot; function. Each of these functions has its own syntax and return data.<br />The SQL language in MVD is standard for SQLite and MYSQL.</p><p>The SQLExecute function is quite simple and is only needed to retrieve one field and one record.<br />The SQLQuery function allows you to retrieve multiple fields and records.</p>]]></description>
			<author><![CDATA[null@example.com (sparrow)]]></author>
			<pubDate>Wed, 10 Jan 2024 12:59:32 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50093#p50093</guid>
		</item>
		<item>
			<title><![CDATA[Re: Creating Treeview like panel with new entries and groups]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50092#p50092</link>
			<description><![CDATA[<p>Hello Jean</p><p>For images you need to use a different path.</p><br /><p>I&#039;ll try to make an example</p>]]></description>
			<author><![CDATA[null@example.com (sparrow)]]></author>
			<pubDate>Wed, 10 Jan 2024 12:46:06 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50092#p50092</guid>
		</item>
		<item>
			<title><![CDATA[Re: Creating Treeview like panel with new entries and groups]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50089#p50089</link>
			<description><![CDATA[<p>Hello Sparrow</p><p>Based on your excellent project, I tried to add an additional object: the album cover.<br />In the Alb-Info table, I therefore created an Image field called Covers.<br />When in the OnExit procedure which saves all the entries, I implement this code:</p><p>if (Sender is TdbImage) and (TdbImage(Sender).TagString &lt;&gt; StrToMD5(TdbImage(Sender).Picture))<br />&nbsp; &nbsp;then<br />&nbsp; &nbsp;begin<br />&nbsp; &nbsp; &nbsp;if SQLExecute(&#039;SELECT count(id) FROM &quot;&#039;+TdbImage(Sender).dbTable+&#039;&quot; WHERE id_musicians = &#039;+Form1.TreeView1.sqlValue) = &#039;0&#039; then<br />&nbsp; &nbsp; &nbsp; &nbsp;SQLExecute(&#039;INSERT INTO &quot;&#039;+TdbImage(Sender).dbTable+&#039;&quot; (id_musicians) VALUES(&#039;+Form1.TreeView1.sqlValue+&#039;)&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp;SQLExecute(&#039;UPDATE &quot;&#039;+TdbImage(Sender).dbTable+&#039;&quot; SET &quot;&#039;+TdbImage(Sender).dbField+&#039;&quot; = &#039;+TdbImage(Sender).sqlValue+&#039; WHERE id_musicians = &#039;+Form1.TreeView1.sqlValue);<br />&nbsp; &nbsp; &nbsp; &nbsp;Form1.Label7.Visible := true;<br />&nbsp; &nbsp; &nbsp; &nbsp;TdbImage(Sender).Tag := 0;<br />&nbsp; &nbsp; &nbsp; &nbsp;TdbImage(Sender).TagString := &#039;&#039;;<br />&nbsp; &nbsp; &nbsp; &nbsp;Timer(1000);<br />&nbsp; &nbsp;end;</p><p>I get an incompatibility message between String and Picture.<br />I guesse this problème stands here : StrToMD5(TdbImage(Sender).Picture))<br />There is no way to resolve this anomaly. I ask for your help<br />How convert String and Picture ?<br />thanks in advance<br />Sincerely<br />J.B.</p>]]></description>
			<author><![CDATA[null@example.com (jean.brezhonek)]]></author>
			<pubDate>Wed, 10 Jan 2024 09:04:30 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50089#p50089</guid>
		</item>
		<item>
			<title><![CDATA[Re: Creating Treeview like panel with new entries and groups]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50087#p50087</link>
			<description><![CDATA[<p>Many thanks to everyone for your great insights and contributed scripts!</p><p>I&#039;ve looked and done some tests with Derek&#039;s treeview music m.zip script version from sparrow.<br />Here is my latest modification:<br />paste.c-net.org/GatherLimited</p><p>In summary, I added a GroupBox3 to the form and tried modifying the script<br />by adding a SQL command to the top level tree node { to execute when clicking the &quot;MUSICIANS&quot; treeview Menu }.</p><p>The idea would be to ouptut the Musicians names matching the SQL command inside the <br />Memo3 field in the GroupBox3, upon clicking the MUSICIANS treeview entry.</p><p>I tested the following query which returns a &quot; not enough actual parameters at 38.18&quot; error:<br />ibb.co/JRmPpZK</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SQLQuery(&#039;SELECT mname FROM musicians WHERE musicians.id in (select Alb_info.id_musicians from Alb_info where Alb_info.Year = &quot;1978&quot;)&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ SQLQuery(&quot;SELECT musicians.mname FROM musicians, Alb_info WHERE Alb_info.id = &#039;1978&#039; &quot;); }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ SQLQuery(&#039;SELECT id_musicians FROM Alb_info where Alb_info.Year = &quot;1978&quot; &#039;);&nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ SQLQuery(&#039;SELECT * FROM musicians&#039;); }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Form1.Memo3.Text := Results.FieldByName(&#039;mname&#039;).AsString;</p><br /><p>I also tested the other commented out SQL commands above which return the same error.</p><p>I could not find a solution or helpful suggestion online to this issue despite finding some good resources<br />stackoverflow.com/questions/10829812/sql-query-where-value-of-another-table<br />codeproject.com/Articles/33052/Visual-Representation-of-SQL-Joins<br />stackoverflow.com/questions/5446778/select-from-one-table-matching-criteria-in-another</p><p>Is there some specific SQL syntax to MVD I&#039;m missing? If so could any one point me toward the relevant documentation on this topic?<br />Else any suggestion about likely SQL syntax or logic error pointer would be very appreciated.</p><p>The SQL command above should return the Musician name according to the<br /> search criteria matching the id_musicians value from both tables, <br />but based on the corresponding Year field/colum value matching the 1978 value.</p><p>RUST NEVER SLEEP should be returned for that example.<br />ibb.co/XLfCvFH</p><p>The idea would be next to expand this query to match any &quot;tag&quot; / string value from a given column/field<br />to replicate the original project.<br />And ultimately try to do the same with a second treeview instead of a memo3 field to get the final result<br />of selectable record from the created groups, if possible.</p><p>Many thanks again for your next suggestions!</p><p>Regards,<br />Frank</p>]]></description>
			<author><![CDATA[null@example.com (franklabre)]]></author>
			<pubDate>Wed, 10 Jan 2024 07:20:54 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50087#p50087</guid>
		</item>
		<item>
			<title><![CDATA[Re: Creating Treeview like panel with new entries and groups]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50086#p50086</link>
			<description><![CDATA[<p>Hello Derek</p><p>It took me a while (a few years) to acquire these CDs.<br />But I&#039;ll probably put less into capturing them in the project.<br />Between 15 and 20 a day will eventually do it.<br />J.B.</p>]]></description>
			<author><![CDATA[null@example.com (jean.brezhonek)]]></author>
			<pubDate>Wed, 10 Jan 2024 07:19:19 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50086#p50086</guid>
		</item>
		<item>
			<title><![CDATA[Re: Creating Treeview like panel with new entries and groups]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=50084#p50084</link>
			<description><![CDATA[<p>Hi Jean,<br />The project I posted for user FrankLabre had a few bits taken out to simplify the script so he could see just the things that related to his questions.<br />If you&#039;re going to use it (or some amended version of it), here is the version with some of the functions added back in (colour coding / bold font of nodes and adding counts for the number of tracks on each CD).<br />Unfortunately, in the script I had to hard-code the checks for the &#039;parentid&#039; (I should have reset the sequence number back to zero before I started but forgot - my bad!!&nbsp; <img src="https://myvisualdatabase.com/forum/img/smilies/sad.png" width="15" height="15" alt="sad" />).<br />Good Luck - 500 CDs is a lot!!<br />Derek.</p>]]></description>
			<author><![CDATA[null@example.com (derek)]]></author>
			<pubDate>Tue, 09 Jan 2024 21:06:52 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=50084#p50084</guid>
		</item>
	</channel>
</rss>
