Tag Info

Hot answers tagged

4

What you're asking is a bit complex to implement, but it's possible. You need to use AssetPickerDialog to get the same behavior as what you've mentioned, to pick up the image from library. I've implemented AssetPicker once, but that's for a different implementation, kind of searching entity from custom database. And that AssetPicker was triggered from a ...


3

This can be definitely possible while using asset dialog provided OOTB in SharePoint. This dialog uses AssetPickers.js file present in _layouts/15 directory of SharePoint server. I found one blog and try it on my side by creating visual webpart and make the file selector as one of its properties. Link of ...


2

You can use the SP.ListOperation.Selection class getSelectedItems() method to get the selected list items. You will get the IDs of the selected list items based on which you can do the further processing. Here is a good post. You might also want to consider going through this post.


2

Image Web Part doesn't allow specifying usemap attribute, so I'd recommend using Script Editor webpart instead and deal with code. It's not difficult at all. E.g. simplest code for an image tag looks like this: <img src="http://site.com/path/to/your/image.png" /> In your case you should also add usemap attribute: <img ...


2

Edit the page and edit the web part. On the right hand side of the page edit the current view and deselect modified and modified by checkboxes. Save view, save web part, save page and publish (if applicable).


2

One of the challenges when working with Sandboxed Solutions is how to provision Web Parts instances to pages. If you have done this before in a Farm Solution you know, that in order to add a Web Part to a page programmatically in SharePoint you have to retrieve the instance of the SPLimitedWebPartManager class and use it to add the instance of a Web Part to ...


2

You can accomplish that using jquery. The idea is on page load to see if a field exists. This field should exist in view1 and not in view2. Let's name it Field1. If Field1 exists, hide the webart Add for ajax to the page or the master page or in a script editor. Next install firefox+firebug. Open the infopath form in browser, rightclick on the webpart ...


2

I think the way you are going about the whole process of hiding fields based on group is completely mislead. Hiding a field will hide the field for the entire list and for everyone. What you are working with is only a view. You can create a new view that will filter out fields based on group membership, but you will be using CSOM and javascript rather than ...


1

It seems it occurs since sp.js library that contains SP.ClientContext class is not yet loaded when your code runs. Use SP.SOD.executeFunc to ensure that the specified sp.js library is loaded when the code runs. Try to change ApproveRejectRDA function to enclose it in SP.SOD.executeFunc like this: function ApproveRejectRDA(id, approved) { ...


1

My take on these: Server-side code is fun and easy to write, and you can incorporate any feature of SharePoint in order to manipulate it. You can build out vast solutions that touch many different aspects, even outside SharePoint, and bakes it into SharePoint using webparts, timer jobs, event receivers, and the like. It is hard to maintain, and migration ...


1

DataFormWebPart.ViewFlags property gets or sets the type of content to be displayed by the DataFormWebPart. The DataFormWebPart.ViewFlags property return type is SPViewFlags enumeration that describes the view type of a Web Part: [System.Flags] [SubsetCallableType] public enum SPViewFlags : long { None = 0L, Html = 1L, ClientModified = 2L, ...


1

SharePoint 2010 and 2013 scroll within a div called s4-workspace not within the parent window. Based on looking at your script coming from 2003, I think this might need a major re-work... Here are some examples of other questions that have dealt with scrolling issues that have a lot of good background on how scrolling works in modern installations (since ...


1

What I would do is take a look at the OfficeDev Patterns and Practices project on Github. There are plenty of examples for writing CSOM for SharePoint Online. All examples are using the new App Model with plenty of helper classes available to do what you need. The projects in particular that you will want are the Provisioning.Pages and ...


1

What should I do so that if ever the loophole steps are done. My custom web part property will set it to 'Alphabetical'? or it will sort it alpahebtically? Up to you, what does the customer want to happen? You'll get that Web Part Maintenance Page error as it currently as, personally I would handle the exception and present a nicer error message in ...


1

Have you tried starting VS2010 as an administrator account that has permission to perform IISRESET? It could be that the user you are currently running VS2010 does not have this permission and give you this error when VS2010 is trying to reset IIS. If Run As Administrator does not work you can use the Runas command from the CMD to start VS2010 as which ...


1

first off, its a sharepoint app part. Secondly i understand you gave control but where? have you given control though the app part? first edit the app part by going to properties -> now select the permission on the left side to show you the permissions for the application part. You should see several dropdowns, I presume the app part is only trying to ...


1

Go to Edit web part. Then click Edit the current view. Then Uncheck the modified and modified by. This will hide your columns.


1

Exposing the data sources directly through JavaScript is not recommended. You can customize the form using InfoPath or a Visual Webpart and replace the new item form with the visual webpart.


1

SP.ListOperation.Selection Class provides static methods for selecting lists or list items. SP.ListOperation.Selection.getSelectedItems() method returns the list of items being selected. Selected list item contains the following properties: id - list item id fsObjType - file system object type The following example demonstrates how to retrieve selected ...


1

Not sure if this is possible with an image web part but if you used a content editor webpart then you could create a good old fashioned image map. http://sharepointadmin.wordpress.com/2010/04/02/cewpimagemap/


1

Yes you have two options for this. Using a customized page layout - This will contain the moto at some place. When you need, you can change the page layout and publish it. Create a custom webpart that will show the moto, which is a text taken from a property bag value. In that case, you do not need to do anything with the webpart. You just have to change ...



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