You could do something like:
FOR EACH JobHead EXCLUSIVE-LOCK WHERE JobHead.Company = CUR-COMP BY
JobHead.StartDate BY Number01.
END.
If you wanted to sort in a descending order on either the start date or
numeric field then you would put DESCENDING after the field, eg: BY
JobHead.StartDate DESCENDING. You will also need to add in the resource
group selection criteria.
Jarrad Kitching
En>compass Solutions Inc.
-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Ephraim Feldman
Sent: Thursday, 24 January 2013 3:33 p.m.
To: Vantage Yahoo Group
Subject: Re: [Vantage] 4Gl sort records before processing
I'm not so sure because I think you are need a index to do the sort.
FOR EACH JobHead EXCLUSIVE-LOCK WHERE JobHead.Company = CUR-COMP BY
JobHead.StartDate BY Number01.
END.
If you wanted to sort in a descending order on either the start date or
numeric field then you would put DESCENDING after the field, eg: BY
JobHead.StartDate DESCENDING. You will also need to add in the resource
group selection criteria.
Jarrad Kitching
En>compass Solutions Inc.
>Tel 336.790.8881www.encompass-inc.com
>E-mail jarradki@...
-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Ephraim Feldman
Sent: Thursday, 24 January 2013 3:33 p.m.
To: Vantage Yahoo Group
Subject: Re: [Vantage] 4Gl sort records before processing
I'm not so sure because I think you are need a index to do the sort.
On 2013-01-23 3:04 PM, "mmcwilliams22" <mmcwilliams22@...> wrote:
> **
>
>
> I want to create a BPM that pulls in all jobs for a resource group.
> It then needs to sort them by Start Date then a UD Numeric field.
> Finally I want to process the records in that order creating a running
> total from the UD field and stamping it on the current record.
>
> Does this sound feasible using a BPM?
>
>
>
[Non-text portions of this message have been removed]
------------------------------------
Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links