Category: Miscellaneous

Make SP.SOD.executeFunc and SP.ClientContext Function Properly In SharePoint Online

Running the code above with a proper function implementation in executeOrDelayUntilScriptLoaded will work 100% of the time. <script src=””></script> SP.SOD.executeFunc(‘sp.js’, ‘SP.ClientContext’, function () { console.log(“Initiating SP.ClientContext”) }); SP.SOD.executeOrDelayUntilScriptLoaded(someFunction,”sp.js”);

Sharepoint : Changing date format using javascript

I would recommend to use : Moment.js library (link) Format Dates moment().format(‘MMMM Do YYYY, h:mm:ss a’); // December 6th 2018, 11:55:15 am moment().format(‘dddd’); // Thursday moment().format(“MMM Do YY”); // Dec 6th 18 moment().format(‘YYYY [escaped]...

Delete a user profile (Domain) on a Windows 7

To clear user local profile via registry: Click Start → Run → Regedit Navigate to the following registry key :HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList Under ProfileList navigate to binary key’s like this: S-1-5-21-3656904587-1668747452-4095529-500 On the right side...