Tag Info

New answers tagged

1

The difference is in "authentication mode" settings. Windows authentication provides real windows user and then this would allow us to make resource requests from ASP.NET while impersonating the Windows identity of whoever was logged on. With forms authentication ASP.NET itself makes requests for system resources using the Application Pool account. Look ...


0

On Central Administration, in the Application Management section, click Manage service applications. On the Manage Service Applications page, click the Service Applications tab to enable the ribbon. In the Create group of the ribbon, click New, and then click the service you want to create. ...


0

You can follow following step: Double click om the file FeatureName.Feature Then on the feature main window press F4. This will show the properties pane.


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 ...


0

The Filter web parts in SharePoint 2013 are available if you activate the Enterprise Feature for your SiteCollection.


2

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) { ...


0

I managed to figure out the answer myself ... not sure if it is the best way to solve it, but is effective and learned me a lot :-) This video helped me to a solution: http://www.youtube.com/watch?v=umB-26Hiqis Create and upload alternate CSS file to site assets Turn on publish features for the site In settings you now have a "Master page" feature that ...


0

You need to create a new object for clientContext. You have missed the word "new" while creating the context. Just change the first statement as follows, var clientContext = **new** SP.ClientContext.get_current(); Thanks.


0

To select from a list of previously submitted forms (either list forms or InfoPath browser forms) and have the form display on the web page you will need to: Add two web parts to a page – 1) the list or library where the forms are saved and 2) an InfoPath Form Web Part Configure the web parts. Create a connection between the list or library and InfoPath ...


0

I am going to Necro this question, and post the .Net implementation for getting the current SharePoint logged in user. var usr = SPContext.Current.Web.CurrentUser; This returns a SPUser object that you can then get the pieces of information pertaining to your situation.


0

your code doesnt show anything todo with the timer itself, just adding some data to cell... 1) bind the list through your code to a table or what ever container your using, like splistview: http://www.codeproject.com/Articles/42399/DataBinding-to-SPListItemCollection 2) now create the timer on the page within code behind to refresh the page x ammount of ...


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 ...


0

Check your App permissions in the App manifest. Remember, that if you are carrying out any actions from your App to your Host web you will need to grant the App permissions to do so. You will also need to specify in your App how you will provision to other Webs below the current one, whether you iterate through the Web collection or specify manually is up ...


0

have you deployment of the list in a Web scope? You should add the list in the feature and set configuration of feature in Web scope


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 ...


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 ...


0

It is not possible to access a list from a parent site (even though it's within the same Site Collection). This can be done using other methods such as using the REST API but cannot be done by using the out of the box visual studio splistview snippet.


-1

You can set attributes to customize the behavior of your Web Part. You can assign properties in the class how the following code: [Category("Custom Properties")] [DefaultValue(c_MyStringDefault)] [WebPartStorage(Storage.Personal)] [FriendlyNameAttribute("Custom String")] [Description("Type a string value.")] [Browsable(true)] ...


0

Add this <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row" /> <xsl:variable name="RowCount" select="count($Rows)" /> <xsl:variable name="IsEmpty" select="$RowCount = 0" /> <xsl:for-each select="$Rows"> <xsl:if test="position() mod 2 = 1"> <div style="" class="Odd" > <DO SOMETHING> </div> ...


0

Click on Settings -> Compatibility View Settings. Add the current site and check "Display intranet sites in Compatibility View". Click Close.


0

This is working on my dev environment from a long time. I guess issue is with single and double inverted commas. Check this <script type="text/javascript" src='<SharePoint:EncodedLiteral runat="server" Text="<%$SPUrl:~sitecollection/Style%20Library/Scripts/jquery-1.11.1.min.js%>" />'></script> <script type="text/javascript" ...


0

Why you should not try like this: <script type="text/javascript" src="server-name/style library/scripts/xyz.js></scripts>


0

A publishing layout is meant to provide a framework for page content. By its very nature, the layout elements are static and only the content controls can be manipulated by the user, i.e. adding text, images, links, etc.. Although web parts can be integrated into a page layout, the web part's settings will be static and not customisable. You may want ...


0

I think the problem is that you have not put the code of ListViewWebPart inside <![CDATA[]]> tag. Something like this: <View List="Lists/ClientCalendar" BaseViewID="2" Type="CALENDAR" WebPartZoneID="Content Zone" WebPartOrder="1" ID="ClientCalandar"> <![CDATA[ <WebPart ...


0

Give permission in App at list level. And check that list permission is inheriting from its parent, it should not break. If it break then you must have permission in that list. Check these things, otherwise things should gonna work perfectly!


0

You can use following code to add list in sharepoint programmatically. public void createList() { // choose your site SPSite site = new SPSite("http://merdev-moss:5050"); SPWeb web = site.OpenWeb(); SPListCollection lists = web.Lists; // create new Generic list called "My List" lists.Add("My List", "My list Description", ...


0

No. Clicking "Make Homepage" will only affect the current site.


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 ...


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 ...


0

What I did is that in my Page_Load, I will check if the list has Null values under the 'Sort' column. If it has null values, then I will set it to Alphabetical, in this way I will not be encountering the Web Part Maintenance Page.


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 ...


0

you can get the web id easily.. use below code to get it. <script src="/_layouts/15/SP.Runtime.js"></script> <script src="/_layouts/15/SP.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js" ></script> <script type="text/javascript"> ...


0

I'm pretty confused about your current setup, as I do not understand why you need to create 2 web sites, and particularly why the ports are changing. You need to: Look into SPCA and identify the Web Application + Site collection path where you plan to deploy Make sure VS solution is actually connected to it (in the project Properties window ), and for ...


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 ...


0

I was able to replicate the issue using out of the box. It seems that having two search boxes and two search results is not a viable way to do things. I used result sources and search navigation instead to have a multi-tab view of the search result. The good thing with the multi-tab approach is that the page looks cleaner as I am only maintaining one ...


0

You can use Sharepoint server object model to get data from External list: SPSite oSpSite = new SPSite("http://spdevserver:1002/"); SPWeb oSPWeb = oSpSite.OpenWeb(); SPList oSpList = oSPWeb.Lists["Products"]; SPListItemCollection oSpListCln = oSpList.Items; foreach (SPListItem item in oSpListCln) { Console.WriteLine(item["Product Name"] + "\n"); } In ...


0

Maybe you should use a Label and in the onLoad method of your webpart you can access this label and write the value of the saved property to its Text.Field. Or you could in the set-Method of the Property set the .Text of the Label to the value entered to the WebPart Property; Tell me if you need more help.


0

You can try to setup WebId property of XsltListViewWebPart


0

You can retrive list item with javascript object model and get the field value from list item: http://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx


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).


1

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


0

Try like this: <asp:Button ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" OnClientClick="return showTermsAndConditions(this);" Style="height: 26px" Text="Submit" ValidationGroup="GrpSubmit" /> var confirmed = false; function showTermsAndConditions(obj) { $("#dialogTermsAndConditions").dialog({ ...


0

@Hardik: You don't need to be site collection admin to view or add web parts. Sheesh! Crystal, SharePoint Online still has a version and also comes in many flavours from Education to Enterprise. I would suggest you find this information out first. Other questions ahd factors to consider: What are you "adding a webpart" to - a web part page, publishing ...


0

Firstly check whether you are a site collection administrator: Navigate through ribbon to Site Settings ->Users and Permissions->Site collection Administrators if you can see the above option then you should get the permissions.


0

Apparently, .NET wants to ensure that what went down with the control is the same thing that came up with the control (ie, make sure that nothing malicious was added to the results coming back from a server-created control). As a result, you can disable the EventValidation, as you did. Visual Studio, then, no longer gives you the error because it's not ...


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

You will need to clarify your situation. SharePoint 2013 server is an on-premises hosting environment while Office 365 is cloud hosted. But at the looks of your description, you are using the on-premises server. You will need to create a custom claims based code to embed with your users. Development using Visual Studio 2012/2013 has a helper class that you ...


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 ...


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.



Top 50 recent answers are included