Tag Info

Hot answers tagged

5

The client wants to actually display 20,000 items on a single page, without paging? I cannot imagine a valid use case for this. No one is going to read 20,000 items. Tell them it's not possible. Then try to find out what they actually need and see if there is a solution. If they push back and insist on giving the users the capability to scroll through 20,000 ...


4

Here’s the code you should put on your pages: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script type="text/javascript" src="http://path to the script/StickyHeaders_v2.9BETA.js"></script> You can download StickyHeaders_v2.9BETA.js from here


3

Have you looked into using Reporting Services? You can set your site as a data source and query any list on the site as a dataset. The only catch is that you cannot "join" lists together in a single dataset, although you could still include multiple lists on the report. I once tried doing something similar with a Data View Web Part, that I would NOT ...


3

One of the available columns that you can add to the view is titled "Edit", and it usually works best to place this column first in the view. It will display as a small icon that, when clicked, will bring up the edit form for the record.


2

You have three options to open up an edit form from the list. Edit Title Edit opens the edit from, while title opens the view form, from which you can navigate to edit from also. You can enable these columns by modifying the view. Other way is to create a calculated column and adding a link to the form if you know the URL like: ="<a ...


2

Try innerHtml += " <a href='Mypage.aspx?AgeOfPerson=" + Age + "'>"; Remove ' from after the = sign. If it doesn't work then paste your full code.


2

Just wanted to add on to Kaylee's answer and user22005's comment. To open the new item form in a pop up, we can use the following code snippet: <form> <input type="button" value="Button Text Goes Here" onclick= "javascript:SP.UI.ModalDialog.ShowPopupDialog('http://yoursite/yourlist/NewForm.aspx;);return false;"/> </form>


2

Along the same lines as Taran, you can paste the following code into a Script Editor Web Part. Be sure to link to your NewForm.aspx. <form> <input type="button" value="Button Text Goes Here" onclick="window.location.href='http://yoursite/yourlist/NewForm.aspx'" /> </form> Also keep in mind that if you change your default NewForm, this ...


2

Could be a language / culture issue. Try this script instead. It renames the list for all in SPWeb supported cultures. Add-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue $web = Get-SPWeb http://mysite ForEach($culture in $web.SupportedUICultures) { [System.Threading.Thread]::CurrentThread.CurrentUICulture=$culture; $list ...


2

Check this blog Create the query: $list = (Get-Spweb http://devmy101).GetList("http://devmy101/Lists/smarEnteredTerritorialWaters") $query = New-Object Microsoft.SharePoint.SPQuery; $query.ViewAttributes = "Scope='Recursive'"; $query.RowLimit = 2000; $query.Query = '<Where><Gt><FieldRef Name="Created"/><Value Type="DateTime" ...


2

First I am assuming that you're using SharePoint 2013. I would suggest you to use SharePoint's Client Side Rendering Framework. I would suggest this blog to understand how to apply CSR. The code which you can write to modify column names is as below (I am currently modifying "Title"): (function () { function preTaskFormRenderer(renderCtx) { ...


2

Comment solving issue posted as answer Check the list definitions. Make sure they have different IDs in the Type attribute. Then check the list instances and make sure the IDs in their TemplateType attribute matches the ID from the list definition Type attribute they should use.


2

The most common reason (when there is no error in the formula) is that sites with different regional settings uses different characters as a delimiter. For European countries, commas works (,) work while English uses semicolon (;). So try to change all the semicolons (,) to commas (;) for it to work in your English page and vice versa. Use find and ...


1

In the View Settings: Add the Created and Modified dates to your view open the Group-By section and group by the your date field. sort Descending Open the (View) Totals section (below the Group By) and Total by Count for your date field


1

It's SharePoint so they are referred to as lists, not tables. (not trying to be pedantic, but if you're googling, then this is an important distinction.) While we could make copies of all list items from a bunch of different lists and put those copies in a master list, this tends to be difficult and unwieldy (what happens if a list item is updated, for ...


1

What you should look for is Cascading filters sharepoint and infopath. Cascading filters is the most common term to describe what you want. This page explains it very well as well as the video http://www.nothingbutsharepoint.com/2012/05/25/sharepoint-how-to-create-multiple-cascade-drop-downs-using-infopath-2010-aspx/ ...


1

Looks like a no. I don't believe this is possible using Data for the ListInstance. I tried saving a list as a template including data which had a list item with an attachment. Then downloaded the STP, renamed to a CAB and extracted the manifest.xml. There wasn't any attributes which stood out and the STP also contained a file called ...


1

I presume you want this in a View. CSR - Client Side Rendering (SP2013/Online only) On SP2013 you can use CSR - Client side Rendering to change how a Column is displayed (on both Views and Forms) The context will then get you the iid: var iid = GenerateIIDForListItem( inCtx , listItem ); Besides a lot more scaffolding code than this one line, this ...


1

Not every field you create in a list can be used in lookup columns, Name appears to be one of them, but you also won't see things like Multiple Lines of Text fields. SharePoint can only perform a lookup of values from columns that contain a ‘text’ value, and then only if it contains a single line of normal text (ie. “Single line of text”, a “number”, ...


1

You can modify item properties, except ID like this. public override void ItemAdding(SPItemEventProperties properties) { string mycol_internal = ""; using (SPWeb web = properties.OpenWeb()) { mycol_internal = web.Lists[properties.ListId].Fields["My Column"].InternalName; } properties.AfterProperties[mycol_internal] = "your new ...


1

By default, there is an Attachments column in the SharePoint List, some people want to display attachments name and click name can open the documents in List View. In this article, we would show you the method with REST API, JSLink and jQuery. Hope this article helps you: Show Attachments in SharePoint 2013 Custom List View EDIT: I just made everyhing ...


1

You can do this via Powershell. Since the previous workflow versions get a different name on replacement, you could check against the name (you could also check against the creation date, of course). For example $listName = "ABC" $workflowName = "ABC-WF" $site = Get-SPSite("http://myspsite") $web = $site.OpenWeb() $list = $web.Lists.TryGetList($listName) ...


1

Kindly Specify which version of SharePoint you are using. I'll go the hard way and assume "Office 365". You can achieve this with the help of Client Side Object Model of SharePoint. You can create the HTML in CEWP and the fire events through ECMA scripts or SPServices to perform various actions. for e.g. SpServices code to add a new item: $().SPServices({ ...


1

Please make sure that the column in view Title (linked to item with edit menu) is checked in Columns section while editing view.


1

After you get the list, enable versioning. Then load the list and call execute query async


1

Using JavaScript: You can use PreSaveAction() function to write your custom code before submitting the form. Just do a javascript redirect like function PreSaveAction(){ window.location.replace("thanks for your submission page url"); }


1

You could always create a extra calculated column. Take a look at my example, "Choice" are the column name. Replace it to your column name. =IF([Choice]="Success","1",(IF([Choice]="Processing","2",(IF([Choice]="Failed","3")))) This is the result:


1

Here is your answer (function () { var fieldContext = { Templates: { Fields: { ID1: { View: function (ctx, b) { b.AllowGridEditing = false; return ctx.CurrentItem.ID1; } } } } }; ...


1

Is is possible and quite easy to disable field in quick edit mode using client side rendering (a.k.a CSR or JSLink). Here is the sample of doing this http://chuvash.eu/2014/11/28/disabling-a-column-in-quick-edit/


1

Try to debug in browser console if you are receiving proper object, check for the null object before you access its property while (listEnumerator.moveNext()) { var currentItem = listEnumerator.get_current(); elmt = (currentItem.get_item('_x0072_zb6')); if(elmt != null && elmt !== undefined){ var sum = 0; for ...



Only top voted, non community-wiki answers of a minimum length are eligible