New answers tagged

0

Trimmed security applies to the contents of the View, not the View itself. Do not create a View in the List, instead Create a Page (for admins only) with a ListView on it. You might want to create a separate Pages library so its easier to govern permissions, and exclude the content from being indexed by Search


2

For SP 2010 You can edit it with SharePoint designer > then convert it to data view > edit date to look like <xsl:value-of select="ddwrt:FormatDate(string(@StartDate), 1033, 3)"/> The syntax is <xsl:value-of select="ddwrt:FormatDate(string(@StartDate), [LCID],[FORMAT FLAG])"/> For SP 2013 Got List Settings > Click on your date column ...


0

You can do this using PowerShell First get all Pages libraries in the Site Collection. For that you can use SPSiteDataQuery as explained in - List all Pages Libraries using PowerShell and SPSiteDataQuery? Once you have the Library object. You can modify the view as explained Updating a view using powershell Final code will look something similar $...


0

If I understand your question correctly, what you need to do is create a view with your filtering already in place. If you are using SharePoint 2013 you should be able to create a view, either public or private. Private may be a good idea if the view is filtering to your name and will only be useful to you. You can create views from list settings. If ...


0

After lot's of googling and efforts I found the below solution. I've added JavaScript in Content editor webpart. I've tested it in IE, Chrome and Firefox browsers. My script is as below: <script type='text/javascript' language='javascript'> var jsGridContainer = null; var jsGrid = null; var viewId = '{9002394D-CBB9-4DDF-98DC-13DAC7C05449}'; //...


0

You can apply this css property on all the th element of the list Suppose you want to disable Title's column filtering and sorting. Then you the below code. SP.SOD.executeFunc('inplview.js', 'InitGridFromView', function () { }); SP.SOD.executeOrDelayUntilScriptLoaded(function () { if (window.InitGridFromView) { var ...


3

Using JSOM you can find the current user login and create the View URL dynamically. var clientContext = new SP.ClientContext.get_current(); var oWeb = clientContext.get_web(); var currentUser = oWeb.get_currentUser(); clientContext.load(currentUser); clientContext.executeQueryAsync(function() { //currentUser.get_loginName(); //currentUser.get_id(); }...


0

The way which we normally follow is via Site Backup and Restore. This will be done first time. Then going forward the future releases are scripted using PowerShell.


1

If you place the parent library on web part page set with the view you want, you can export that view. The option to export should be in the dropdown that allows you to edit the web part. You can the upload it to the web part gallery.


0

The itemArray is not needed (unless you are using it elsewhere) because this line: clientContext.load(itemArray[itemArray.length-1]); is also not needed and may in fact be causing you problems. To update a list item all you need is that update() call followed by the clientContext.executeQueryAsync call.


0

I think additional overhead of an index and multiple indices don’t give you additional performance gain ** Example For every defined index, SharePoint stores the index value for every list item in a separate table. Having a list with let’s say 50000 items means that we have 50000 rows in AllUserData and 50000 additional rows in the NameValuePair table. ...


0

Should you check this code Create a new function and rename it as bulkupdate Function BulkUpdate() { for(var i = 1; i<= 5; i++){ updateListItem(int i); } } } var siteUrl = '/sites/MySiteCollection'; function updateListItem(int i) { var clientContext = new SP.ClientContext(siteUrl); var oList = clientContext.get_web()....


0

Options: 1) Item level security Set-level security item list. This allows to reach the maximum level, but it has two problems. It is complex to administer. On the other hand you can meet with the ceiling of security elements in a list. 2) Item level security (c#) The second option is a variant of 1. You can set permissions from an event handler. The ...


0

I'm not sure what version this is for, but for 2013/O365 you can use the AJAXRefreshView function provided by SharePoint. Example using the list title prop, you can use the property that suits you: AJAXRefreshView({ currentCtx: g_ctxDict[ Object.keys(g_ctxDict).filter(function(v) { return "Tasks" === ...


0

Is this in the navigation? It is possible to use managed metadata in order to create a drop down list. I'm using it in my current project. I created a term set in term-set management corresponding to the hierarchy of organization, set it as "use for navigation" then selected it under the navigation options in site settings. Use managed metadata then select ...


0

You could try document.referrer but it isn't failsave when used in combo with MDS Better is to attach an URL parameter to the Edit buttons in the View


1

Click Site Actions, and then click Mange Content and Structure. select your list select some items, in actions menu click 'delete'


0

My suggestion would be similar to Martin Hatch's. Copy and paste the link to each of the view you wish to make available. Then in the navigation, create a new link for each one and apply your Audience to that link, that way, the targeted user only sees the link(s) you want them to rather than all of them. Then in your list, go to Settings > Per Location ...


0

If no filtering then possible solutions are Increase the List View Threshold, if your hardware is enough you can increase it without fear. or Set up the daily time window for the large query. In this case you will access the list during that time frame without any issue. Read more here: http://www.abelsolutions.com/2013-blog/working-with-list-view-...


0

Prashant, Can you confirm the list that shows all list items is from same web application. If its different application then there is setting that can be done on web application that change list view threshold although it is not recommended by Microsoft. The setting for the list throttle Open the SharePoint Central Administration, go to Application ...


2

Threshold is not a boundary or a limit, instead it's a restrictiona in which the default value can't be exceeded unless that value is explicitly modified. You can not set List View threshold for a single list. This can only be done on Web Application level. Follow these steps: Login to Central Admin Go to Application Management -> Manage Web Applications ...


0

You need to change these lines SPQuery objQuery = new SPQuery(); objQuery.ViewFields = string.Format(DROPDOWNLIBRARY_FIELDS, "AGENTID_FIELD","ID_FIELD", "CREATED_FIELD","SALES_FIELD", "SUBMITTEDDATE_FIELD"); ... DataTable fSDataTable = List.GetItems(objQuery).GetDataTable(); With below code SPQuery query = new SPQuery(); string[] viewFields = new ...


0

Just an addition to the answers above but it seems you have to use the masterpage gallery. Calling a jslink file from the style library wouldn't work for me. ~sitecollection/_catalogs/masterpage/jslinkfile.js vs /style%20library/jslinkfile.js


1

You can set up a Yes/No calculated field with the following formula. =IF(OR(MID(Title,7,1)="7",MID(Title,7,1)="6",MID(Title,7,1)="5"),"Yes","No") Just change "Title" to your Tracking Number field.



Top 50 recent answers are included