Please consider registering
guest

Log In Members

Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
How to grab the last record of a list and then get a column from that record
May 2, 2012
1:23 am
New Member
Forum Posts: 2
Member Since:
May 2, 2012
Offline

I have a SharePoint list that holds problem tickets. Each record has a column called ticketNum which has the ticket number. What I'd like to do is grab the last record and then grab the value from the ticketNum column of that last record. Thanks very much in advance to all who reply!

May 2, 2012
1:58 am
Admin
Forum Posts: 212
Member Since:
May 30, 2010
Offline

You have add a script in your Newform that will grab the data you needed from the last item

 

check my post Display List Item Id of the new item in Newform.aspx – SharePoint 2010

May 2, 2012
4:12 pm
spdailytips
Guest

Get items from list Desc Created by

 

CAML – >

var _query =”<view><query><where></Where></Query><orderby><fieldref Name='Created' Ascending=’FALSE’/></OrderBy></View>";

 

and then get the first item and get it's id.

 

enjoy

http://spdailytips.blogspot.com

May 2, 2012
7:15 pm
New Member
Forum Posts: 2
Member Since:
May 2, 2012
Offline

Thanks for the tips and links guys! Much appreciated.

Forum Timezone: UTC 0

Most Users Ever Online: 91

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Member Stats:

Guest Posters: 1114

Members: 16881

Moderators: 0

Admins: 1

Forum Stats:

Groups: 3

Forums: 10

Topics: 1141

Posts: 2552

Administrators: Learning SharePoint (212)