Monthly archives: June, 2017

Updating a list item using date() function

I have a column [ScheduleTime] which is a DateTime type in my List. Using JavaScript i need to update the [ScheduleTime] column which should be Current Day whenever my script loads. But here I need to update [ScheduleTime] column’s Date only. Time should remain same. I am gonna use set_item function. Please help me out …

SBS 2011: can’t open web-based Sharepoint Designer

I’m quite a newbie with Sharepoint, so please bear with me if I can’t even ask the question appropriately… We installed SBS 2011 (Sharepoint 2010) a couple of years ago and it’s running fine. We never used Sharepoint features. Now we wanted to explore Workflow features so I went to sites and logged in as …

List Field Iterator Create New Item by Code

I have a web part and I dynamically add a List field iterator to it: //contentType is the content type ID SPList list = web.Lists[listName]; SPContentType spct = web.AvailableContentTypes[contentTypeName]; Iterator = new ListFieldIterator() { ControlMode = SPControlMode.Display, TemplateName = spct.NewFormTemplateName, ListId = list.ID }; Iterator.ListItem[“ContentTypeId”] = contentType; Iterator.EnableViewState = true; var currentMode = SPControlMode.New; Iterator.ControlMode …

How to restore SharePoint from SQL backups?

I have been tasked with restoring our SharePoint instance for our Disaster Recovery Procedure. We store our backups of SharePoint onto tape via Netvault, we use the SQL plugin and also backup the entire system. So my understanding so far is that I need to backup the unattached content database then import it again into …