in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

echef

From the cluttered (and clustered) brain of Josef Nielsen... A great place for Food, Friends, and... uh... SharePoint of course!

Adding "Jump to ID#" to a list view...

So there have been a few times where a user has wanted to jump to a specific record number in larger lists... This little bit is nice on the top of the page.  Add a content editor web part to the top of your page and add the following code in the source editor:

<script language="javascript">
function SubmitSearchForm()
    {
        var IdToGet = document.getElementsByName("IdSearchField")(0);
        if(IdToGet)
            window.location.href="dispform.aspx?Id=" + IdToGet.value;
    }
</script>

<table cellpadding="5">
<tr>
<td>Enter the ID number to filter on</td>
<td><input type="text" name="IdSearchField" value=""/><input type="button" value="Go" onclick="java-script:SubmitSearchForm()"/></td>
</tr>
</table>

Take out the "-" in java-script above (Blog blocks it as a script otherwise)... :)


Comments

 

Links (6/8/2008) « Steve Pietrek - Everything SharePoint said:

Pingback from  Links (6/8/2008) &laquo; Steve Pietrek - Everything SharePoint

June 8, 2008 7:06 PM

About josef.nielsen

I'm a long time computer nerd, living and loving technology wherever I can find it. I've recently shifted from a focus in MS SQL server, MSCS Clustering, and High Availability Engineering to focus on collaboration technologies, including SharePoint 2007. I recently moved from my long-time home in Seattle Washington to Salt Lake City.

Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts