Posts

Showing posts from January, 2013

Missing site templates in SharePoint 2010

Image
            today i want to create "record center" sub site, then i go to new site and check templates, i am wonder there are two site templates are available. and i check with enterprise feature, is enabled. i confuse how to enable all site templates.                       finally i find the way to enable site templates. In SharePoint 2010, you have to ‘enable’ the other site templates first.  To do so, go to Site Settings –> ‘Page layouts and site templates’ under ‘Look and Feel’ section.  On the ‘Page Layout and Site Template Settings’ page, you can specify which site templates will be available for creating subsites in this site collection (eg. Blog, Records Center)

Sharepoint Solution & Feature depoyment

Working with Solutions the following stsadm command could be used to add a SharePoint solution to SharePoint: stsadm –o addsolution –filename “ D:\Deploy\MySharePointSolution.wsp “ We used the following command to deploy the solution once installed to a specific web application: stsadm –o deploysolution –name MySharePointSolution.wsp –url http://myspwebappp –allowgacdeployment –immediate If we would upgrade an existing solution, we would use the following: stsadm –o upgradesolution –name MySharePointSolution.wsp –filename “ D:\Deploy\MySharePointSolution.wsp ” -immediate And finally, we used the following commands to retract and delete a specific solution from the web application: stsadm –o retractsolution –name MySharePointSolution.wsp –url http://myspwebapp –immediate stsadm –o deletesolution –name MySharePointSolution.wsp Now, let us see how we could do above operations with PowerShell. For this, we use the following PowerShell

Sharepoint 2010 fixed width master page design

Image
 i usually post solution here that i tested well and it suitable for sharepoint 2010 world. i find so many drawbacks to design fixed width master page and finally i found below solution is best. Open up your master Page and remove scroll="no" from the body. If you do not do this there will be no scroll bars on long pop up modal windows In the Master Page search for “s4-workspace” remove this whole DIV tag and its close Div tag at the bottom of the master page. This ID is tied to a JavaScript file that forces a full width on the page. Now Open up your CSS file and add the following: body { overflow:auto !important; } form   { width:980px; margin: auto; } Your Site Should look something like this: If you wanted to add some background color and borders to enhance the centered design replace it with this: body{ overflow:auto !important; background-color: #21374c; } .s4-widecontentarea{ backgr

How to set Current User Name to InfoPath Person/Group Picker

Image
This method also use for get User Profile Information such as First Name , Last Name , Office and etc. In generally we can not set a default value to InfoPath Person/Group Picker. On the other hand we can not get Current Username in the InfoPath. (Yeh it is true that we can use userName() function. But this will return the Current User Account ID not the name). So we want to use SharePoint user profile services to do this. First we need to  create a user profile connection. Thus First go to Manage connection and click add connection. Then go to  receive data  option and  SOAP Web service  and specify the  User Profile Service URL . The URL will be something like ( http://sever/sites/site/_vti_bin/UserProfileService.asmx ). This is depends on your site or site collection. if it is a site collection you can omit  /sites/site/  part from your URL. then proceed to next , select  UserProfileByName  and  un select the Automatically load. Now you have created the

SQL server was not found or not accessible

  after restarting all my form server i am unable to connect site. before is working fine, i wonder and i check Event Viewer then i find below log.   "Unknown SQL Exception xxx occurred. Additional error information from SQL Server is included below. A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) "  i realize and assume sql server service was stopped or machine not in network, but all are enabled. then i ping db machine ip in command prompt, is running. then after i ping server db machine name but i can't able to connect. then again i check all my form servers and i find domain control server was not in network[unfortunately] then i add domain control server to network and now