Showing posts with label SharePoint Designer. Show all posts
Showing posts with label SharePoint Designer. Show all posts

Wednesday, March 17, 2021

unable to install SP1 for my sharepoint designer, error “The expected version of the product was not found on the system”

Open Command Prompt use below command


C:\path_of_download_directory\spdsp2013-kb2817441-fullfile-x86-en-us.exe  PACKAGE.BYPASS.DE

Wednesday, July 13, 2016

How to get friendly URL of the current page in Sharepoint

string url = HttpContext.Current.Request.Uri.OriginalString;
TaxonomyNavigationContext class ontains several properties which will help you to work with friendly URLs programmatically,
For Example:
 HasFriendlyUrl and ResolvedDisplayUrl (all properties can be found here).
you can get friendly URL using the following code:

  string url = "";
if (TaxonomyNavigationContext.Current != null &&
     TaxonomyNavigationContext.Current.HasFriendlyUrl)
 {
     url = SPUtility.GetFullUrl(SPContext.Current.Site,
          TaxonomyNavigationContext.Current.ResolvedDisplayUrl);
  }

Monday, June 20, 2016

Content editor webpart overrides Sharepoint CSS

 CSS, Selectors and its rules for CSS Specificity and you will be able to master any CSS problem.

In your scenario you can wrap your content in a DIV unique  selectors ID

<div id='myCEWP'>
  <H1>Hello World!</H1>
</div>
And then apply your CSS only to that one H1 in the DIV :

<style>
   #myCEWP > H1 {
     color:green;
   }
</style>

Thursday, June 9, 2016

How do I know if the page is in Edit Mode from JavaScript?


Server Side Code: SPContext.Current.FormContext.FormMode var inDesignMode = document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value; if (inDesignMode == "1") { // page is in edit mode } else { // page is in browse mode } <input type="hidden" name="MSOLayout_InDesignMode" id="MSOLayout_InDesignMode" value="1" /> Update: for wiki pages, you will need _wikiPageMode parameter: var wikiInEditMode = document.forms[MSOWebPartPageFormName]._wikiPageMode.value; if (wikiInEditMode == "Edit") { // wiki page is in edit mode } else { // wiki page is not in edit mode } CSOM or ECMA Script: SP.Ribbon.PageState.Handlers.isInEditMode() Returns true or false. I use this in publishing pages.

Friday, May 20, 2016

Hide/Show field on list form based on value from another field SharePoint 2013

<script src="/Shared%20Documents/jquery-1.10.2.min.js"></script> //Edit your correct path
<script src="/Shared%20Documents/sputility.min.js"></script> //Edit your correct path

<script>
// wait for the window to load
$(document).ready(function () {

    var WorskspaceSetupField = SPUtility.GetSPField('WorkspaceSetup');

    var showOrHideField = function() {
        var workspaceSetupFieldValue = WorskspaceSetupField.GetValue();

        if(workspaceSetupFieldValue  == 'No') {
            SPUtility.HideSPField('LaptopSetup');
        }
        else {
            SPUtility.ShowSPField('LaptopSetup');
        }
    };

    // run at startup (for edit form)
    showOrHideField();

    // make sure if the user changes the value we handle it
    $(WorskspaceSetupField.Dropdown).on('change', showOrHideField);
});
</script> 

Tuesday, March 15, 2016

How to Backup & Restore a SharePoint Designer workflow and add it another site?


  • Go to the site you have the workflows on
  • Select Site Actions -> Edit in SharePoint Designer.
  • Select “All Files” in the Navigation, then click “Workflows”
  • Right-Click the workflow And go to “Copy”
  • SharePoint Designer. Go to your destination site.
  • Go to Site Actions -> Edit in SharePoint Designer.
  • Right Click and choose “Paste”. 
  • The workflows should be there, but they are not associated with the list 
  • SharePoint recognizes and attaches workflows to Lists and Libraries using their ListID. 
  • We can change that through the .xoml.wfconfig.xml
  • Select the “All Files” again in the navigation, then click “Workflows”, then click the workflow name.
  •  Open With -> SharePoint Designer (Open as XML).
  • Delete the ListID, and paste the ListID you copied earlier here.

Tuesday, February 23, 2016

Before Days send reminder mail SharePoint workflow 2013 or Send an email through Sharepoint workflow one week before a date

In this blog, you can write the mail-address to the log,

Declare duedate =29/02/2016 & minus 7 days stored in date variable

After that we added condition,


Date time field only split date format only in SharePoint Designer 2013 workflow



In this article ,we have option for equal (ignoring time ) action in Sharepoint workflow.



Friday, February 12, 2016

Hide Ribbons to the anonymous users?


Hide Ribbons to the anonymous users in SharePoint based on the PermissionsString ......

<SharePoint:SPSecurityTrimmedControl ID="SPSecurityTrimmedControl2" runat="server"
        PermissionsString="AddListItems" AuthenticationRestrictions="AuthenticatedUsersOnly">
     
 <script type="text/javascript">
            document.getElementById("s4-ribbonrow").style.display = "block";
            document.getElementById("suiteBar").style.display = "block";
     
        </script>

    </SharePoint:SPSecurityTrimmedControl>

How to remove left navigation and ribbon controls from Newform, editform and viewform of a Sharepoint List

User pass query string IsDlg=1 for list OOTB list forms,

 IsDlg=1
 IsDlg=0

How to add History Log to OOTB Sharepoint custom List

Scenario :

Submitted, User1, 01/11/2016
Approved, User2, 02/11/2016
Rejected, User3, 05/11/2016
Completed,User4, 05/11/2016


Set WFvar1 to Current Item:Status
Set WFvar2 to [%Variable: WFvar1%] "New Status Update Line"
Set Status to Variable:WFvar2
Set WF3 to Currentdate 

Friday, February 5, 2016

Using Dictionary Actions variables from SharePoint Designer 2013 Workflows?

Dictionary is a new kind of variable that can be used to save multiple values during the workflow .

 Three actions specifically designed for the Dictionary SharePoint WorkFlow. 


  1. Build Dictionary 
  2. Count Items in a Dictionary 
  3. Get an Item from a Dictionary 


Build Dictionary 

  • create a variable of type Dictionary. 
  •  Type of variable available in the SharePoint 2013 Workflow platform.


Count Items in a Dictionary   

  • Count Items in a Dictionary action to count the variables that a Dictionary contains
  •  return  Integer variable.  item count to loop through the Dictionary.


Get an Item from a Dictionary 


  •  Get an Item from a Dictionary action to retrieve a variable from Dictionary
  •  dictionary stored in a stand-alone variable.
  • returns retrieve a value by entering the name of the variable. 
The variable types available:


  • Boolean: A Yes or No value
  • Date/Time: A date and time
  • Dictionary: A collection of variables
  • Guid: A Globally Unique Identifier (GUID)
  • Integer: A whole number without decimals
  • Number: A number that can contain decimals
  • String: A string of characters




Wednesday, December 9, 2015

Step by step procedure to use Filter Option for lists and libraries using SharePoint Designer

Creating filter in list using SharePoint designer

Document link to do it

https://drive.google.com/file/d/0B3uSrVh6pnvNWTZpWDc5VWVkWkU/view?usp=sharing

In SharePoint 2013, before the SP2 update the list view filter does not works, but if you use the SharePoint designer, you can achieve it easlity