Tag Info

New answers tagged

0

I have found the class to manipulate. It is the .ms-rtestate-read. So if I just give .ms-rtestate-read:line-height:70% I get what I need.


-1

Try generating relative URL for you js in your masterpage. <SharePoint:ScriptLink Language="JavaScript" Name="~Site/SiteAssets/File.js" runat="server" OnDemand="false"></SharePoint:ScriptLink> Or <script type="text/javascript" src='<asp:Literal runat="server" Text="<%$SPUrl:~Site/%>" />SiteAssets/File.js'></script> ...


-1

Try generating relative URL for your resource files. <link rel="stylesheet" type="text/css" href='<asp:Literal runat="server" Text="<% $SPUrl:~Site/%>" />SiteAssets/abc111.css' /> Or <SharePoint:CssRegistration Name="<% $SPUrl:~Site/SiteAssets/File.css %>" runat="server"></SharePoint:CssRegistration> Or ...


1

You can't easily. You can try: Page Viewer Web Part, and just consume the library from Subsite A. When setting up the URL to the page, include IsDlg=1 at the end, that'll hide the ribbon and stuff: http://davidlozzi.com/2014/03/25/we-all-know-what-sharepoint-isdlg-does-wait-what-the/ Custom web part which pulls and reads the library, but you would have to ...


0

The ".ms-listviewtable .ms-itmhover" is more specific then just ".ms-itmhover" or ".ms-listviewtable" using in your second picture. So the browser uses that ".ms-listviewtable .ms-itmhover" style.


0

Your only option is to assign the admin account in all audiences. If not, you won't see the web part. It's how SharePoint works.


1

If you a wsp like you mentioned webpart.wsp, then you can deploy it on your production server using SharePoint Management shell. Use powershell if just have to upgrade the solution Update-SPSolution –Identity "<wsp package name>" -LiteralPath "<physical path of the wsp package>" –GacDeployment e.g.: Update-SPSolution –Identity "test.wsp" ...


0

Putting the jQuery script tag in the master page should work. Try a complete hard coded URL of the script file to be sure there is not a problem with the relative address parsing. So something like src="http://........./Style Library/NewsTicker/Scripts/jquery.js" (replace the "........." with the appropriate site collection and site path) Then don't ...


1

Rick, Can you add yourself to the AD group that you gave access to, change the permission settings on the WP, then remove yourself from the AD group?


1

I'm not sure how you can edit it, but you can always append ?contents=1 to the page URL to go to the web part maintenance page. From here, you can delete the web part. Afterwards, you can just add the web part again. This probably isn't what you're looking for, but I thought it might help.


0

Indexing your list columns will allow you to search on the columns that you want to display results on. Go to List Settings -- (under the columns section) click on Indexed columns. Create a new index on the column(s) you would like to search on. For example my list search box will first look for results on "Case Name" then "Case Number" AND then "CU ...


4

Try using the same Google RSS feed URL without HTTPS, then it should work. so instead of https://news.google.com/news/feeds?cf=all&ned=in&hl=en&topic=n&output=rss use http://news.google.com/news/feeds?cf=all&ned=in&hl=en&topic=n&output=rss I did a quick test and it worked in SP when using the HTTP URL but not ...


0

Try the below option: 1) Navigate to Site Settings -> Manage Site Features -> SharePoint Server Publishing 2) Disable the SharePoint Server Publishing feature and try, it works.


1

The question is a bit vague, only because there are quite a few ways to do, and doing an initial search you will find quite a few resources. I will list out 3 possible methods for you: Edit the page with SharePoint Designer. Use a content editor and/or script editor web part on the page. Use display templates - in your list webpart properties there is an ...


1

You are loading two different jquery files with different file names (means both will be loaded by the browser). The one jquery will override the other on runtime. I think while the first jQuery is waiting for the DOM to be ready, it will be overwritten by the second jQuery. => so the $(document).ready of one of the webparts will never be called because ...


0

Check the scope of the Feature. It should be scoped to Site. Since, the project contains visual webpart, you need to specify webapplication paramter if deploying through PowerShell Add-spsolution -LiteralPath c:\WSPNAME.wsp install-spsolution -identity WSPNAME.wsp -gacdeployment -webapplication http://aissp2013


0

Deploy it using Powershell Install-SPSolution -Identity MySolution.wsp -local -GACDeployment or Install-SPSolution –Identity MySolution.wsp -GACDeployment


1

When you use Visual Studio to build your visual web part. In the Feature Design mode we you gave the scope of feature as Farm by mistake and when we try to deploy the solution you will get the error message. "Error occurred in deployment step 'Activate Features': Feature with Id XXXXXXX' is not installed in this farm, and cannot be added to this scope". ...


0

I would create a custom page layout for that. Then create the 200 pages and configure the fields (the propertise of the pages) that the page layout uses to do the queries. Do the queries either with a Search WebPart or a Content Query WebPart.


0

Well the problem was related to the Site Url setting of the project. As a result, the the Custom Tool SharePointWebPartCodeGenerator was never parsing the *.ascx file. Thereby, never creating a *.ascx.g.cs that contains all the designer components equivalent Literal declaration and reference. Once i updated the URL, forced a Run Custom Tool from the ...


0

I would suggest mapping an SP Style folder and creating a new css file within it. It'll be easier managing on the fly, easier to see if it is loaded with browser's dev tools and is considered best practice. Then add this to the top of your ASCX <link href="/_layouts/15/1033/STYLES/Custom_VWP/Custom_VWP.css" rel="stylesheet" /> ...


0

I would just use Content Query Web Part with custom XSL template to get the desired look and feel. In CQWP you can define the actual query, including pointing it to show items from your new list. Edit \Style Library\XSL Style Sheets\ItemStyle.xsl and copy existing template, rename your copy (change name and match properties) and modify the HTML it provides. ...


0

At the end I used this code to impersonate current user to local web service: try { Guid siteid = SPContext.Current.Site.ID; Guid webid = SPContext.Current.Web.ID; using (SPSecurityContext.GetWindowsIdentity().Impersonate()) { Label1.Text = WindowsIdentity.GetCurrent().Name; SOAPService ws = new SOAPService() { ...


-1

Install latest SP1 and run Windows update. This fixes the issue.


2

If you're using an UpdatePanel on your web part, make sure any RegisterClientScriptBlock calls on controls within that UpdatePanel use the UpdatePanel as the control parameter, rather than 'this' - I.E.: ScriptManager.RegisterClientScriptBlock(updatePanel, updatePanel.GetType(), UniqueID, "CloseAddDialog();", true); I have changed my code as above for ...


0

You are loading 2 instances of jQuery and that is what is breaking. I would either include the jQuery reference on your master page or in your page layout. Then your javascript for your web parts don't need to load it.


0

This will help you to load required JS. SP.SOD.executeFunc('sp.js', 'SP.ClientContext', function () { alert("Hii") }); SP.SOD.executeOrDelayUntilScriptLoaded(function () { alert("Hello") },"sp.js");


0

Use this URL /_layouts/<projectname>/folders if any until you find your css files/<cssfile>.css


0

They will be located at a path like http://yoursp.yourdomain.com/sites/site/_layouts/DRM Entry Webpart/css/bootstrap.css in your above image.


0

I know the answer to this problem. Have been researching it for more than a week, thoroughly frustrated with the lack of documentation I've found. My problem was it was showing up in the Production environment but not in my QA environment so I did NOT want a workaround to just NOT DISPLAY the Web Part Error: Access Denied as it did not get to the root ...


0

When you insert the data source, SharePoint:SPDataSource ...must be between the DataSources tags.


0

I just had the same problem; looked everywhere; a million complaints but no solution. I ended up changing the font size and then modifying the dimensions of the rows and columns. If somebody tries to read that on a chromebook/netbook now, they will need binoculars.


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.


3

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.


1

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


1

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



Top 50 recent answers are included