Tuesday, January 28, 2014

Add Google Custom Search to your website


Simple!!!

Just click on https://www.google.com/cse/create/new

















Enter your website name and click on create. It will generate a code. Add the code in your Layout Gadgets to display Google Custom Search text box.

Thursday, January 9, 2014

Customise SharePoint Custom List in InfoPath


If you want to customize your Custom List list using InfoPath, Following are the steps


  • Select the Custom List in your site
  • navigate to the list settings on the Ribbon
  • Click on Customise Form button on the Ribbon,
  • Now, List form will be opened in InfoPath
  • Modify the form and Publish it again

Info About InfoPath Forms


InfoPath Tool helps you to quickly develop the forms and deploy it into SharePoint environment.

Open InfoPath form

Design the Form using controls based on requirement.

In Rules Pane, you can 3 different rules

Validation
Format Rule
Actions Rule

1. If you select validation, you can add condition like not empty. Set the screentip as "Field Not Empty"

2. You can format the filed based on the condition

3. If you want a set field with value, you can select Action rule, Set the field value whichever you want.


Content Editor Web Part


SharePoint 2010 doesn't allow you copying and pasting scripts into the editor. 

In SharePoint 2010,  "Rich Text Editor" and "Source Editor" buttons are no longer available.

First Method:

Edit Page, Insert CEWP on Page

Select CEWP WebPart and focus is on webpart area

Go to Ribbon, Click  on HTML -> “Edit HTML source” menu item

Now, Editor will be opened.

Add the sample javascript

<script language ="javascript">
alert("Hi");
</script>

Click on Ok to see the result on the Page

Second Method:

Add all your scripts inside a txt file stored in SharePoint site and then pointing the CEWP to use that file as the source.

First, create a file with all of your code (both Javascript and HTML - basically everything you would have normally pasted into the content editor.) 

Use  <script type="text/javascript"> tag in beginning and save the file with a .txt extension

Next, add a CEWP to your page and select "Edit Web Part." 

In the content editor pane on the right, under "Content Link", add the URL to your txt file and click "Apply" 

See the Action.