Tag Info

New answers tagged

0

I usually use JavaScript unless there is a specific reason not to: <script> location.replace("http://new.url.here/path/object.ext"); </script> It is near-immediate and replaces the page in history, so you don't have a loop set up if someone uses the back button.


0

You can make yourself an ASPX page in SPD and use a page viewer web part above you list for the form. Then, either use the REST API, CSOM, or SPServices to create the new list item on submit. I like using SPServices myself, but either JQuery list interaction will give the same result for a new list item.


-2

Thanks for Tiago for providing the solution. So here is the code if you want to move description up for Multiple lines of text. $("td.ms-formbody > span > textarea.ms-long").each(function(){ var descriptionElement = $(this).closest('.ms-formbody').contents().filter(function(){ return this.nodeType != 1; }); var descriptionText = ...


0

I've had this before when using a workflow, for me the problem was a column for mobile phone number. I'd put a gap in the phone number (E.g 07712 345678) and when I entered the number with no spaces it worked. I'm no SharePoint expert by any means but maybe just check some of the syntax that's been used?


0

A few more resources: Branding Global Nav Hiding Home Link in SP 2013 Top Nav http:// sharepoint.rackspace.com/branding-top-navigation-in-sharepoint-2013 http://blogs.c5insight.com/Home/tabid/40/entryid/380/Branding-the-SharePoint-2013-Global-Navigation.aspx Customizing SP Global Navigation with CSS and Jquery ...


3

The Name column cannot be referenced in a calculated column. You can see proof of this by looking through the list of Columns available when creating or editing your calculated column formula. If you want to work around the issue, create a second column and then use a workflow to copy the Name column to the new column you created. The new column can be ...


0

I would have two search results pages: one for English, one for French, maybe each with a nation flag at the top for both pages that links to the culture's search page (preserving the search). You can even have some javascript on the search results page that hits the user profile service (through REST) that will try to determine which search result page to ...


0

Publishing features have always been an enterprise sku feature and not available in foundation.


4

I'm sure there is room for improvement, but here is a working sample. jQuery(document).ready(function () { if(location.href.contains('&IsDlg=1')) { $(".ms-dialog td.ms-formbody > span > table > tbody > tr:first-child > td > span.ms-RadioText").each(function(){ //console.log('found the first ...


1

I accomplished this with a simple Sandbox solution in SharePoint 2010. Create an Event Receiver that will attach to a document library. Below is the code that I used: public class DocumentLibraryEventReceiver : SPItemEventReceiver { const string _threeNumPrefixRegex = "^[0-9]{3}.*"; const string _fileErrorMessage = "Non-conforming File Name: ...


0

You will most likely need to create your own custom action in Visual Studio that provides this functionality. This link provides code for a good starting point: http://www.codeproject.com/Articles/408817/Workflow-to-copy-a-file-from-one-site-to-another-s


0

You are currently overriding a field. You can instead override the entire view, and display the fields you wish in whatever manner you wish. You need to set a few extra properties in the overrideCtx.Templates object, but it's rather simple. Here is an example: (function () { var overrideCtx = {}; overrideCtx.Templates = {}; ...


0

Whilst there might be built in functionality to accomplish this, I ended up doing the following: Inserted a second web-part into the form - in particular an HTML Form WebPart, which allows for arbitrary HTML tags, including JavaScript, to execute. Wrote a wrapper around the MS Save buttons to hide them and display another button in their place styled more ...


0

try to get the data from SQL to the External list in SharePoint. Then you can query this list like any other in SharePoint using JavaScript - client side code. I am using SPServices library to help me with the queries, check the method GetListItems. Hiding and filling the fields is then just matter of few lines of JS using jQuery.


0

There is a workaround to add text to the Upload.aspx. Add following javascript code to your masterpage: jQuery(document).ready(function() { if (window.location.href.toLowerCase().indexOf('/_layouts/15/upload.aspx') > 0) { jQuery('input:checkbox').closest("td").append("Message for size limit"); } }); Above code will display message on all ...


0

This typically needs to be done by creating a second, hidden, column for the previous status. When your workflows complete, it updates this hidden field to the current status. Then when the item is edited, you put in your first step to check if the status column equals your hidden status column. If it does, you terminate the workflow. If it does not, you ...


1

Anonymous access is ONLY available for public site hosted on SharePoint (only one public site per Office 365 tenant) it's not possible to implement anonymous access on other SharePoint sites (private) but you can invite external user (ie not Office 365 users) To configure a SharePoint Online site collection for anonymous access 1) Login to Microsoft ...


3

Yes you can achieve this using designer Workflow since SharePoint 2013 designer also supports creation of SP 2010 workflows. Create a Workflow with SharePoint 2010 workflow platform(Since 2013 workflows does not have impersonation step). In the workflow add an impersonation step. Inside impersonation step add Replace List item permissions action. Give the ...


0

Add function following function: private SPList GetBlogList(string url) { using (SPSite site = new Site(url) { using (SPWeb web = site.RootWeb) { return web.Lists["Posts"]; } } } And then in your code, write, SPList listBlog = GetBlogList(actor.ContentUri); Hope this helps!!


0

From your root site collection, Goto Site settings > look and feel > select master page> apply to this site and its subsites. Your master page along with theme will be applied to all subsites. Let me know if this works


0

In this dt.rows.add(actor.contenturi) im getting all the follwing sites.but i need to get subsites list.(post is a default list in all blog list.


0

SPWeb.GetList (string strUrl) – Good using (SPSite site = new SPSite(strSite)) { using (SPWeb web = site.OpenWeb()) { SPList oList = web.GetList(http://Site/list/AllItem.aspx) } } In this case, first retrieves the list GUID from the url (database hit), then it loads the metadata* for that specific list. SPWeb.Lists ...


0

You can easily access the list as SPList posts = spWeb.Lists["Posts"]


0

There was a problem with sharepoint designer cache. It wasn't just skipping the first step, it was ignoring any additional changes. see here: http://blogs.msdn.com/b/sharepointdesigner/archive/2007/03/27/tip-clearing-the-spd-workflow-assembly-cache.aspx Also, I hate Sharepoint.


1

The ImnName property will return the full name when using the Lookup site user property Workflow action.


0

I do not think this is impossible, but you would need to make a Site feature for it using Visual Studios. Have it create your list and your columns when activated. You should be able to crawl to look up the user information using SPUserProfile Services. Then, create new columns with the information you get from each entry in your code. Something like this ...


-2

Have you tried using CQWP for this solution, i guess you can achieve this by using CQWP - http://sharepointlogics.com/2014/07/sharepoint-scrolling-announcement-news.html


0

In SPD 2010 we had two actions for this purpose - pause workflow till date pause workflow for duration. You can use these to pause the workflow till the desired date and then send the mail. P.S., too many workflows in a paused state is not my favorite way of doing things.


0

that is an interesting though, but no, you cannot open sharepoint sites with different versions of the designer


3

try <SharePoint:CSSRegistration ID="CSSReg5" name="<%$SPUrl:~SiteCollection/Style Library/CSS/styles.css%>" After="corev4.css" runat="server"/> the part <%$SPUrl:~SiteCollection points to the root site collection, maybe your code is not pointing to that location! rather the site or sub site, method above explicitly says root site collection ...


1

There are couple of ways to show the default tab. Using query string: http://SiteUrl/page.aspx?InitialTabID=Ribbon.Read Update the tab using client side script. Check this out : http://sharepoint247.wordpress.com/2013/05/24/javascript-to-hide-or-select-specific-tabs-in-sharepoint-ribbon/


0

If you need to use a workflow it can be done using SharePoint designer workflows. I am guessing you do not have SharePoint designer. It is a free tool provided by microsoft, so please download it for the version of SharePoint you have (SharePoint designer for 2013/2010/2007) If you do have it, or once you download it, run your SharePoint designer. Once ...


0

I am having a request to send email from particular address .Anyone know how to do that?I am already invoking a workflow using javascript the mail is sending from default address .So i know to change default address to my preferred address.Can anyone help me on this ASAP?


1

Here are all the CSS reference charts I have encontered so far. SharePoint 2007 http://www.heathersolomon.com/content/sp07cssreference.htm SharePoint 2010 http://erikswenson.blogspot.se/2010/01/sharepoint-2010-base-css-classes.html http://sharepointexperience.com/csschart/csschart.html SharePoint 2013 ...


0

I had a similar problem with getting the LCID within an event receiver. Finally I addressed it like this System.Globalization.CultureInfo.CurrentUICulture.LCID or System.Globalization.CultureInfo.CurrentUICulture.Name It worked for me. Hope it helps.


1

The easiest way I know of to do this is to put each image in a div and then use css to float those divs left. SharePoint already has a float:left class you can tie into: "image-area-left". So your item style in xsl would look like this: <xsl:template name="dvt_1.rowview"> <div class="image-area-left"> <img class="image" ...


1

Their are couple of reasons for the issue. Make sure the imgages are still in the Imgaes folder on 14 hive( all server in farm) Make sure Docicon.xml is correct( sometime its become corrupt or somebody make changes in it which cause broken image).location of file is C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES.


0

I really hate SPD 2013, and what happened to you is one of the many reasons. Go to the code and click anywhere inside the tag. <WebPartPages:DataFormWebPart> and the Add/Remove Columns should be available again, otherwise will gray-out. I hope this helps.


0

There are 3 SharePoint 2013 Workflow courses on Pluralsight: http://beta.pluralsight.com/search/?searchTerm=sharepoint%20workflow SharePoint 2013 Workflow Fundamentals SharePoint 2013 Workflow Advanced Topics SharePoint 2013 Workflow - Web Services


0

You have the workflow set to start on change, and something in that workflow changes that list item. This would create a loop which SharePoint does not allow. See if your logic allows you to use only "start on creation" instead. If not, you can work around this by bouncing workflows between two lists.


1

There is a JavaScript function in SharePoint called "PreSaveAction" that is fired just before the item is validated and saved. You can use this function to call your function. For example: function PreSaveAction(){ SendProject('http://site.com/subsite/Lists/Projects/{@ID}_.000'); return true; } I've used PreSaveAction before for client side form ...


0

ExecuteOrDelayUntilScriptLoaded(getImages,"sp.js") Function getImages (){ var ctx=SP.ClientContext.get_current(); var web=ctx.get_web(); var list=web.get_lists().getByTitle("myImageLibrary") var query=new SP.CamlQuery(); var queryXml="<View><Query><Orderby><FieldRef Name='Created' ...


0

Im not going to paste a straight answer, but I believe that if you use a simple web inspection tool such as IE developer toolbar or firebug for firefox, you will likely find a margin-left for the main place holder, or some other css tweak, provided that you already removed the necessary markup on the left side.


0

You can't, you have to rebuild FrontPage web sites as SharePoint application pages. On an interesting side note, in sps 2013 you can use the Design Manager tool that's able to convert any HTML pages to SharePoint pages for you. Other possibility is check with the 3rd party migration tools may be they have option for this.


1

The Collect Data From User action outputs a list item ID as a variable. This is the item id of the task. You can use that variable to look up to the task list who modified the task item.


0

It is not straight forward. I have worked on something similar. I can't share the code but I will share the algorithm. Add a jquery repeator template in Ascx from reference http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js Create your html within the template. Example: You ecma script in your webpart to get the list items from ...


1

I have a list MyTestList. It has currently two views TestView1 and TestView2. To add serial number in the front follow the following steps: Open the site in SPD Open the List Edit the view in Split mode Select the List, Go to 'List View Tools' in the Ribbon > 'Design' > 'Customize XSLT' > 'Customize Entire View' This will convert the view in detail xslt ...


1

You can use SPD. On a page add the list view, then create a column and insert the following code: <xsl:value-of select="count($thisNode/../*[not($thisNode/@ID=preceding-sibling::*/@ID)])" /> It should render the row number, no matter if you change the view order or filter some information. Hope this helps


0

In order to get the Link to Item with Menu functionality on a field other than Name (Title for lists), you can modify the CAML in Designer. Add the following to the field in the <ViewFields> element: ListItemMenu='TRUE'. For example, your title field would like like: <FieldRef Name='Title' ListItemMenu='TRUE' />


0

What I ended up doing was creating (6) different columns to correspond to each of the job types. For each column I created a nested IF statement that would compute either a "1" if true or a "0" if false. I then created a workflow that would "do calculation" to compute the (number of remaining spots) minus the count of the job type (either a 1 or a 0). This ...



Top 50 recent answers are included