Subject | Re: [firebird-support] editing a header/detail document. |
---|---|
Author | Sergio H. Gonzalez |
Post date | 2008-08-30T22:56:35Z |
From: ""Sasha Matijasic""
now, It's true that I'm still a newbie in a lot of points. I use Delphi 6 & IBX
and the database is FB2.1
I don't understand why is that bad what I'm doing. But you may know much more
than I do, so it's very important to me to have your opinion. I'm curious: can
you describe me (just the main steps, of course) how you edit a header/detail
document? I'm interested in the detail records...
I like to open the document with the same form that I use to make a new one. I
think that the concept is similar to what hapens when you open a .DOC with Word.
Probably it has nothing to do with it (sorry if I'm wrong!) But what if you open
a .DOC, change just a character and save it againg? Don't *all* the document is
saved again? I'm just asking... I actually don't know what happens !
By the way, I do not delete records constantly. The records are deleted only
when the user opens an existing document (lets say an invoice) changes someting
and saves it. It's true, however, that if the only change whas the invoice date,
all the detail is deleted and inserted again without changes. I could work on
that. But if I'm totally out direction, I'd rather change everything.
Thanks for your time
-s
> What language/tools you use? Depending on those, you can get few generalHi Sasha, no offence at all. And though I've been working with FB for 4 years
> pointers on what you need to study further.
> If you continue writing code this way, very soon you'll have massive ammounts
> of unnecessary code that will be hard to maintain and debug. That's not the
> way the software is developed.
> And from a perspective of database alone, it's even worse. The mere idea that
> you constantly delete and insert data that does not change at all is a mess.
> The future performance issues are least of your problems, because I frankly
> doubt that you can produce anything of value this way.
now, It's true that I'm still a newbie in a lot of points. I use Delphi 6 & IBX
and the database is FB2.1
I don't understand why is that bad what I'm doing. But you may know much more
than I do, so it's very important to me to have your opinion. I'm curious: can
you describe me (just the main steps, of course) how you edit a header/detail
document? I'm interested in the detail records...
I like to open the document with the same form that I use to make a new one. I
think that the concept is similar to what hapens when you open a .DOC with Word.
Probably it has nothing to do with it (sorry if I'm wrong!) But what if you open
a .DOC, change just a character and save it againg? Don't *all* the document is
saved again? I'm just asking... I actually don't know what happens !
By the way, I do not delete records constantly. The records are deleted only
when the user opens an existing document (lets say an invoice) changes someting
and saves it. It's true, however, that if the only change whas the invoice date,
all the detail is deleted and inserted again without changes. I could work on
that. But if I'm totally out direction, I'd rather change everything.
Thanks for your time
-s