Jump to content


Photo

Save and Load CSV File With Father And Son in Tree Structure Columm

Delphi Tree Columm Structure Tree Columm

  • Please log in to reply
37 replies to this topic

#21 Adilson Pedro

Adilson Pedro
  • Members
  • 24 posts

Posted 10 June 2016 - 06:42 PM

Boki Hello!
 
Congratulations on your site changes, was clean and modern.
 
I wonder if you have any news on the import of xml files as our historic this topic.
 
Thank you!
 
Regards


#22 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,586 posts
  • Gender:Male

Posted 10 June 2016 - 07:16 PM

Hi Adilson,

I forgot to update you. I have tested your demo and all seems to work fine. I am thinking that maybe you are using slightly older version and I have fixed it in meanwhile?
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.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.

#23 Adilson Pedro

Adilson Pedro
  • Members
  • 24 posts

Posted 22 June 2016 - 09:06 PM

Boki Hello!
 
I do not know where I may be missing, since reinstalled the components, including a new PC. Which version of Delphi are you using? I'm using Delphi 6, with the suite version 5 and 6 installed. Where do you think I am missing?
 
Thanks for the feedback!


#24 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,586 posts
  • Gender:Male

Posted 22 June 2016 - 11:36 PM

Hi,

Nothing, I will try to make now one demo in Delphi 6 only and make it very simple.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.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.

#25 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,586 posts
  • Gender:Male

Posted 22 June 2016 - 11:43 PM

Hi,

It seems that Delphi 6 old shorter string is making a problem. I am working on it.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.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.

#26 Adilson Pedro

Adilson Pedro
  • Members
  • 24 posts

Posted 30 August 2016 - 07:06 PM

Your implentaƧƵes to save XML were great.
 
We have an application that requires autosave every change in the contents of the grid. Within the framework we use, the faster rescue occurred with files in CSV format. In this format it is saved only the data, which is what we need. In XML format, it takes about 2 minutes to save, and in CSV format, takes about 2 seconds; It is a pretty good time in relation to XML.
 
We use Tree column, we would like to know if you can include a field where you can store where begins the tree column and ends.
 
Ideally it would be to open the file in this format, would be loaded automatically, but I have the impression that it would be too much work for you. Obviously it would be a great implementation for those who just want to save the data.
 
I am sending a project in Delphi 6, with a similar structure to the one we use.
 
 
 
In this example, to include the lines are not included the Tree Columns, only manually by clicking on the desired row. But every 4 rows, use a Tree Column 4 or more rows.
 
Thank you for your kind attention.
 
Adilson


#27 Adilson Pedro

Adilson Pedro
  • Members
  • 24 posts

Posted 30 November 2016 - 08:34 PM

Hello Boki!
 
I know you are very busy with the implementation of Version 6, so when you have a little time, how kind, could you give a review in the post up? If you think implementation is possible, we will be more relaxed.
 
All the best!
 
Adilson


#28 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,586 posts
  • Gender:Male

Posted 06 December 2016 - 08:20 PM

Hi Adilson,

Sorry for huge delay, I wasn't sure how to add this feature. I was trying to have CSV format for flat structures only.

I will look at it now again, maybe I have some suggestion.

If you want, you can also use my code from my Grid and adopt it in your project. Maybe I can give some suggestions what tho change?
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.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.

#29 Adilson Pedro

Adilson Pedro
  • Members
  • 24 posts

Posted 06 December 2016 - 08:55 PM

Hello Boki,
 
Thanks for the feedback.
 
If you can send suggestions, we will be happy to receive them.
 
Best Regards,
 
Adilson


#30 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,586 posts
  • Gender:Male

Posted 07 December 2016 - 02:07 AM

Hi Adilson,

Maybe XML is still better solution, why you don't try with TXMLDocument.

I think that it's included even in Delphi 6 (Internet components tab).

My own NxXMLDocument6 can probably be improved (speed up), but maybe standard TXMLDocument from Delphi can help you and you will still have XML format.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.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.

#31 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,586 posts
  • Gender:Male

Posted 07 December 2016 - 10:57 PM

PS. If you want, I can build short demo to show you have it may write grid into XML doc with standard TXMLDocument

I'm sure that default one is muuuch faster than mine.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.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.

#32 Adilson Pedro

Adilson Pedro
  • Members
  • 24 posts

Posted 07 December 2016 - 11:11 PM

Thanks for the feedback!
 
Thank you very much if you can send a demo.
 
Adilson


#33 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,586 posts
  • Gender:Male

Posted 09 December 2016 - 02:51 AM

Hi Adilson,

Please look for modified demo in attachment.

I have used TXMLDocument and wrote new procedure SaveToXML.

You can further expand it for your needs, but hope it will give you some ideas how to go forward.

Attached File  TreeColumn Save to CSV.zip   4.05KB   7 downloads
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.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.

#34 Adilson Pedro

Adilson Pedro
  • Members
  • 24 posts

Posted 09 December 2016 - 03:59 PM

Hi Boki,
 
Amazing this demonstration. The file is saved in a few seconds. I was very excited about the result. I am studying how to open the saved file in NextGrid, but I have not advanced much. Do you have any idea how I could do this.
 
Thank you very much for your commitment to help.
 
Best regasrds


#35 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,586 posts
  • Gender:Male

Posted 09 December 2016 - 07:48 PM

Hi Adilson,

I suggest that you look at mine method:

LoadFromXML in NxGridSerialization6.pas file (around line 140).

My TNxXMLDocument is in many ways (interface) similar to standard TXMLDocument.

But I most suggest reading couple of TXMLDocument tutorials on web. It's very similar to my code. You have DocumentElement, ChildNodes etc.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.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.

#36 Adilson Pedro

Adilson Pedro
  • Members
  • 24 posts

Posted 05 April 2017 - 10:28 PM

Hello Boki!
 
Thank you for your suggestion and apologize for returning to the subject.
 
I was unable to make any progress on importing the xml file.
 
Do you think it is possible to implement this feature in version 6?
 
It would be fantastic.
 
Best Regards,
 
Adilson Pedro


#37 Adilson Pedro

Adilson Pedro
  • Members
  • 24 posts

Posted 21 June 2017 - 04:34 PM

Hello Boki!
 
Sorry for my insistence, but do you think it's possible to implement the feature we dealt with in the last conversations?
 
It exports to xml perfectly, as per the demonstration in the project you submitted. Could you send an example import in the same project?
 
I would be very grateful for that kindness.
 
Best Regards,
 
Adilson Pedro


#38 Adilson Pedro

Adilson Pedro
  • Members
  • 24 posts

Posted 03 January 2018 - 08:21 PM

Hi, Boki.
 
You're doing a great job on version 6, congratulations!
 
I know this version has taken a lot of your precious time, so I apologize for coming back to the subject of this post. Would you have something new in mind about the issues raised earlier?
 
Thank you and a great 2018 !!!
 
Best Regards.
 
Adilson Martins






Also tagged with one or more of these keywords: Delphi, Tree Columm, Structure Tree Columm

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users