Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Last Entry In Worklog

Status
Not open for further replies.

Cardstang

Technical User
Jun 1, 2011
26
US
Hello all,

I'm using CR12 and pulling from a Remedy database using an OBDC connection.

I'm looking for a way to extract the last entry in a worklog. Here is an example of the worklog:

Code:
Monday, September 05, 2011 10:11:19 AM usnername
Report assigned.

Tuesday, September 06, 2011 4:36:12 PM usnername
Report ready for distribution with a few minor tweaks.

Thursday, September 08, 2011 2:04:22 PM usnername
All tweaks complete. Scheduled to run on Mondays.

What I need is everything from "Thursday" to the end.

The most recent entry will always be at the bottom, and there may be times where there is only one entry.

Any assistance is greatly appreciated.

 
Try:

stringvar array x := split({table.worklog},chr(13)+chr(13));
x[ubound(x)]

This assumes that the "sections" within the field are created by two returns.

-LB

 
It doesn't seem to be two carriage returns to create the sections. The formula grabbed everything in the worklog.

I did get it to grab the last entry by modifying to this:

Code:
stringvar array x := split({table.Work Log},{table.Last Modified By});
x[ubound(x)]

Thanks for the help!
 
Oh and the date/time and usernames are a field. I'm pulling those seperately now and will combine if needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top