Save and Load CSV File With Father And Son in Tree Structure Columm
#1
Posted 08 December 2015 - 11:47 PM
#2
Posted 10 December 2015 - 03:16 AM
Hi Adilson,
CSV format is more suitable for flat style data. I am not sure how I will write tree structure into file.
Maybe for this kind of data XML is better? There is already a SaveToXML but it only saves a Columns. Maybe I can expand it to content too?
In XML I can easily store tree structure.
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#3
Posted 10 December 2015 - 03:02 PM
#4
Posted 13 December 2015 - 12:15 AM
Hi,
I have started writing XML export procedure. It will take some time. Then I will write Import too.
I hope that it will be good.
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#5
Posted 13 December 2015 - 06:43 AM
Thank you for your return and the great news!
#6
Posted 14 December 2015 - 02:33 PM
Hi Adilson,
I have uploaded 1st alpha of this feature.
Now when you call NextGrid61.Serialize.SaveToXML(FileName, dtContent) it will save content.
Please tell me if we are progressing in correct direction. For first, I am saving only a data, without any formatting.
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#7
Posted 14 December 2015 - 10:59 PM
#8
Posted 05 January 2016 - 02:22 PM
Maybe you could also add JSON-Support in the future?
#9
Posted 06 January 2016 - 06:31 AM
Hi,
Writing part will be fairly easy, but reading is always harder. I think that I will first made non-visual component similar like I do for TNxCSVDocument6.
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#10
Posted 18 January 2016 - 05:14 PM
Hi Boki!
#11
Posted 18 January 2016 - 09:38 PM
Hi Adilson,
Thank you. I didn't yet finalised this feature, but will hurry now for you.
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#12
Posted 18 January 2016 - 09:58 PM
Hi Boki,
Thank you!
#13
Posted 02 March 2016 - 12:58 AM
Last days I am working on XML export/import. In day or two you will be able to save and reload saved.
Unfortunately I was needed to alter format a little bit, but now I am including Version attribute for future.
Example:
<?xml version="1.0" encoding="UTF-8"?> <TNextGrid6 Type="dtContent" Version="1.1.0"> <Rows> <Row> <Cell> <Property Type="String">Mike</Property> </Cell> <Cell> <Property Type="String">56732</Property> </Cell> </Row> <Row> <Cell> <Property Type="String">John</Property> </Cell> <Cell> <Property Type="String">65156</Property> </Cell> <Row> <Cell> <Property Type="String">Ann</Property> </Cell> <Cell> <Property Type="String">77424</Property> </Cell> </Row> </Row> </Rows> </TNextGrid6>This example is for saving content (Kind parameter of SaveToXML method), but can be layout too:
<?xml version="1.0" encoding="UTF-8"?> <TNextGrid6 Type="dtLayout" Version="1.1.0"> <Object Type="TNextGrid6"> <Property name="ActiveViewIndex" type="Integer">0</Property> <Property name="BorderColor" type="Integer">-16777200</Property> <Property name="BorderSize" type="Integer">1</Property> <Property name="Caption" type="String">NextGrid61</Property> <Property name="Color" type="Integer">-16777211</Property> <Property name="Cursor" type="Integer">0</Property> <Property name="DragCursor" type="Integer">-12</Property> <Property name="Height" type="Integer">161</Property> <Property name="HelpContext" type="Integer">0</Property> <Property name="HelpKeyword" type="String" /> <Property name="Hint" type="String" /> <Property name="InactiveSelectionColor" type="Integer">-16777201</Property> <Property name="Left" type="Integer">8</Property> <Property name="Name" type="String">NextGrid61</Property> <Property name="RowCount" type="Integer">3</Property> <Property name="RowHeight" type="Integer">16</Property> <Property name="SelectionColor" type="Integer">-16777203</Property> <Property name="SelectionTextColor" type="Integer">-16777202</Property> <Property name="TabOrder" type="Integer">0</Property> <Property name="Tag" type="Integer">0</Property> <Property name="TagString" type="String" /> <Property name="Top" type="Integer">72</Property> <Property name="Version" type="String">6.0.14</Property> <Property name="Width" type="Integer">269</Property> </Object> <Columns> <Object Type="TNxTextColumn6"> <Property name="Color" type="Integer">-16777211</Property> <Property name="DefaultValue" type="String" /> <Property name="EmptyCaption" type="String" /> <Property name="Filter" type="String" /> <Property name="FixedWidth" type="Integer">80</Property> <Property name="Index" type="Integer">0</Property> <Property name="InsertCaption" type="String" /> <Property name="MaxLength" type="Integer">0</Property> <Property name="MinWidth" type="Integer">8</Property> <Property name="Name" type="String">NxTextColumn61</Property> <Property name="PasswordChar" type="Char">0</Property> <Property name="PlaceholderText" type="String">Text Text</Property> <Property name="Position" type="Integer">0</Property> <Property name="SortedIndex" type="Integer">-1</Property> <Property name="Tag" type="Integer">0</Property> <Property name="TextAfter" type="String" /> <Property name="TextBefore" type="String" /> <Property name="VisibleIndex" type="Integer">0</Property> <Property name="Width" type="Integer">80</Property> </Object> <Object Type="TNxNumberColumn6"> <Property name="Color" type="Integer">-16777192</Property> <Property name="DefaultValue" type="Float">0</Property> <Property name="EmptyCaption" type="String" /> <Property name="EmptyValue" type="Float">0</Property> <Property name="Filter" type="String" /> <Property name="FixedWidth" type="Integer">80</Property> <Property name="FormatMask" type="String">#,##0.00</Property> <Property name="Index" type="Integer">1</Property> <Property name="InsertCaption" type="String" /> <Property name="Max" type="Float">0</Property> <Property name="Min" type="Float">0</Property> <Property name="MinWidth" type="Integer">8</Property> <Property name="Name" type="String">NxNumberColumn61</Property> <Property name="PlaceholderText" type="String">1742.50</Property> <Property name="Position" type="Integer">1</Property> <Property name="Precision" type="Integer">2</Property> <Property name="SortedIndex" type="Integer">-1</Property> <Property name="Tag" type="Integer">0</Property> <Property name="TextAfter" type="String" /> <Property name="TextBefore" type="String" /> <Property name="VisibleIndex" type="Integer">1</Property> <Property name="Width" type="Integer">80</Property> </Object> </Columns> </TNextGrid6>
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#14
Posted 08 March 2016 - 03:08 PM
#15
Posted 08 March 2016 - 03:36 PM
Please try to download latest release and tell me how it works for now.
It need some fine tuning, maybe your ideas can help here?
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#16
Posted 27 May 2016 - 11:42 PM
#17
Posted 28 May 2016 - 12:49 AM
Problem may be if columns are not already added. Maybe I should create and add columns too.
Maybe I can check if there are no columns added yet, and then create them from file.
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#18
Posted 30 May 2016 - 02:51 PM
#19
Posted 30 May 2016 - 04:12 PM
Can you please tell me does it worked if you have already added columns (while loading)?
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#20
Posted 30 May 2016 - 08:49 PM
Also tagged with one or more of these keywords: Delphi, Tree Columm, Structure Tree Columm
NextSuite v5 - VCL Components (Previous version) →
Next Editors →
Suggestion for new componentStarted by array81, 01 Jul 2015 delphi, edit, tag |
|
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users