Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 9 of 9 total
Thread Capture detail data / Group By
Tue, Oct 18 2011 3:56 AMPermanent Link

Petter Topp

Hi.

Is it possible to copy the value of a detail field that is "collapsed" with
Group By into a Memo field.
IOW - If the table contains 5 records (query shows the sum of these 5 in one
record) I would like to save/list the "details" of the 5 records in a Memo
field.

Petter
Dbisam 4.30 build 7
Tue, Oct 18 2011 8:17 AMPermanent Link

Robert Kaplan


"Petter Topp" <petter.topp@atcdata.no> wrote in message
news:B32CFF81-B0C8-4E93-9354-506677E657D4@news.elevatesoft.com...
> Hi.
>
> Is it possible to copy the value of a detail field that is "collapsed"
> with Group By into a Memo field.
> IOW - If the table contains 5 records (query shows the sum of these 5 in
> one record) I would like to save/list the "details" of the 5 records in a
> Memo field.
>

I don't know of a way to do this while you're running the aggregate
function, maybe somebody else does, but you should be able to do it with a
script as in (pseudocode)

select id as gid, sum (amount) as gsum, cast('' as memo) gdetails into
gtable from table group by 1;
create index on gtable;
update gtable set gdetails = gdetails + amount from gtable
join table on id=gidl

Robert


Tue, Oct 18 2011 8:53 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Petter


First a sales pitch for ElevateDB - this is easy using LIST Smiley

Back to reality. Until Tim introduced LIST in ElevateDB anytime I needed something like this I ended up using Delphi.

If this is for a report then it may be possible to do something with the main query and a master-detail link.

Roy Lambert [Team Elevate]
Tue, Oct 18 2011 9:56 AMPermanent Link

Petter Topp

Hi Guys.

The need is actaually for an import routine - so I guess that I will go the
scripting way....
As for ElevateDB, I already have the CS license - but never seem to get on
top of my project to start "Elevate it"

Thanks
Petter

"Petter Topp"  skrev i nyhetsmeldingen:
B32CFF81-B0C8-4E93-9354-506677E657D4@news.elevatesoft.com ...

Hi.

Is it possible to copy the value of a detail field that is "collapsed" with
Group By into a Memo field.
IOW - If the table contains 5 records (query shows the sum of these 5 in one
record) I would like to save/list the "details" of the 5 records in a Memo
field.

Petter
Dbisam 4.30 build 7
Wed, Oct 19 2011 11:56 AMPermanent Link

John Hay

> First a sales pitch for ElevateDB - this is easy using LIST Smiley
>

You could always use the DBISAM 4 LIST Function <bg>

John

Wed, Oct 19 2011 1:24 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

John

>You could always use the DBISAM 4 LIST Function <bg>

I wondered about that. My DBISAM is stuck at 4.25 so I don't know about new features.

Roy Lambert
Wed, Oct 19 2011 1:50 PMPermanent Link

John Hay

Roy
>
> I wondered about that. My DBISAM is stuck at 4.25 so I don't know about new features.
>

I refer you to a thread 5/5/10 in this group Smiley

John

Thu, Oct 20 2011 3:39 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

John


>> I wondered about that. My DBISAM is stuck at 4.25 so I don't know about new features.
>>
>
>I refer you to a thread 5/5/10 in this group Smiley

Fair enough - I refer you to my reply

"Shows how out of date I am. I didn't know that had been back ported."

Why should I change my mind now? Smiley

Roy Lambert
Fri, Oct 21 2011 2:27 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Petter,

<< Is it possible to copy the value of a detail field that is "collapsed"
with Group By into a Memo field. >>

As John indicated, you can use the LIST aggregate function for this:

http://www.elevatesoft.com/manual?action=viewtopic&id=dbisam4&product=delphi&version=7&topic=Functions

--
Tim Young
Elevate Software
www.elevatesoft.com
Image