Wednesday, November 17, 2010

InfoPath form 2010-Add dropdown items dynamically

I was working on adding items to DropDown control in Infopath form, you can do this as explained below
Before doing this create datasource DataSources["options"]. with XML













private void BindCustomerDropDown()



{


try


{




DataTable dtCustomer = // Load datatable
if (dtCustomer != null && dtCustomer.Rows.Count > 0)


{


string name = string.Empty;


string id = string.Empty;


RemoveFirstItem();


foreach (DataRow row in dtCustomer.Rows)


{


if (row["CustomerName"] != null)


name = row["CustomerName"].ToString();






if (row["CustomerId"] != null)


id = row["CustomerId"].ToString();






AddItem(id, name);


}


RemoveFirstItem();


}


}


catch (System.Exception ex)


{


ShowMessage(ex.Message);


}






}






private void RemoveFirstItem()


{


XPathNavigator DOM = DataSources["options"].CreateNavigator();


if (DOM == null)


return;


XPathNavigator group1 = DOM.SelectSingleNode("//options", NamespaceManager);


if (group1 == null)


return;


XPathNavigator field1 = DOM.SelectSingleNode("//options/option", NamespaceManager);


if (field1 == null)


return;


field1.DeleteSelf();


group1.InnerXml = group1.InnerXml.Replace("\r", " ");


group1.InnerXml = group1.InnerXml.Replace("\n", " ");


}










private void AddItem(string itemId, string itemName)


{


//RemoveFirstItem();


XPathNavigator DOM = DataSources["options"].CreateNavigator();


if (DOM == null)


return;


XPathNavigator group1 = DOM.SelectSingleNode("//options", NamespaceManager);


if (group1 == null)


return;


XPathNavigator field1 = DOM.SelectSingleNode("//options/option", NamespaceManager);


if (field1 == null)


return;


XPathNavigator newNode = field1.Clone();


newNode.SelectSingleNode("value").SetValue(itemId);


newNode.SelectSingleNode("displayname").SetValue(itemName);


group1.AppendChild(newNode);


}
 
you can refer these links for more details
http://www.bizsupportonline.net/infopath2007/programmatically-fill-populate-drop-down-list-box-infopath-2007.htm
http://blogs.catapultsystems.com/sboldt/archive/2009/08/07/populating-a-list-box-in-infopath-2007-form-services-from-a-sql-stored-procedure.aspx

Thursday, October 21, 2010

CRM sample code - Account Entity - retrieve from Account Name.

Below is the sample code which explain retrieving CRM Account details based on the Account name.

I got sample code where you can get Account entity details if you pass guid, but didnot get sample code to retrieve Accoount details by Name.

So tried to give some sample where you can get Accoount details by name.

// Add authentication code here. you can get it from CRM SDK

// Create a column set that holds the names of the columns to be retrieved.



CRMService.CrmSdk.ColumnSet colsContact = new CRMService.CrmSdk.ColumnSet();


colsContact.Attributes = new string[] {"name", "accountid","new_status" };










// Create the ConditionExpression.


CRMService.CrmSdk.ConditionExpression conditionAccount = new CRMService.CrmSdk.ConditionExpression();






// Set the ConditionExpressions Properties so that the condition is true when


// the accountid or the contact is equal to accountId.






// Pass the filter value account id


//conditionContact.AttributeName = "accountid";


//conditionContact.Operator = CRMService.CrmSdk.ConditionOperator.Equal;


//conditionContact.Values = new string[] {"3455D9C5E-B311-DF43-A561-101E0B4CD088"};






// Pass the filter value account name


conditionAccount.AttributeName = "name";


conditionAccount.Operator = CRMService.CrmSdk.ConditionOperator.Equal;


conditionAccount.Values = new string[] { companyName };






// Create the FilterExpression.


CRMService.CrmSdk.FilterExpression filterAccount = new CRMService.CrmSdk.FilterExpression();






// Set the properties of the FilterExpression.


filterAccount.FilterOperator = CRMService.CrmSdk.LogicalOperator.And;


filterAccount.Conditions = new CRMService.CrmSdk.ConditionExpression[] { conditionAccount };






// Create the QueryExpression.


CRMService.CrmSdk.QueryExpression queryAccount = new CRMService.CrmSdk.QueryExpression();






// Set the properties of the QueryExpression.


queryAccount.EntityName = CRMService.CrmSdk.EntityName.account.ToString();


queryAccount.ColumnSet = colsContact;


queryAccount.Criteria = filterAccount;






// Retrieve the contacts.


CRMService.CrmSdk.BusinessEntityCollection myRetrievedAccount = crmService.RetrieveMultiple(queryAccount);


string accountId = string.Empty;

if (myRetrievedAccount != null && myRetrievedAccount.BusinessEntities[0] != null)


{

XPathNavigator navFields = default(XPathNavigator);




CRMService.CrmSdk.account myAccount = (CRMService.CrmSdk.account)myRetrievedAccount.BusinessEntities[0];



// get the values of accoount


accountId = myAccount.accountid.Value.ToString();


myAccount.new_status.name

Error - The remote name could not be resolved - Resolved

I was working on dotnet application, which was trying to connect to CRM application thorugh CRM API.

I was getting error to connect to CRM server when I try to connect through code, but the application was opening in the browser properly.


The Error I was getting is "The remote name could not be resolved". I tried all the methods explained in different websites, but no use.

Finally, It started working after installing "ISA Client". you can download this based on your operating system.

Thursday, October 7, 2010

Could not load file or assembly 'Microsoft.IdentityModel

I was getting this error after upgrading my system from Windows 2008 standard to Windows 2008 R2

[Window Title]

Visual Studio Just-In-Time Debugger
[Main Instruction]
An unhandled exception ('System.IO.FileNotFoundException') occurred in OWSTIMER.EXE [3492].


The Just-In-Time debugger was launched without necessary security permissions. To debug this process, the Just-In-Time debugger must be run as an Administrator. Would you like to debug this process?

[V] View process details [Yes, debug OWSTIMER.EXE] [No, cancel debugging]


[Expanded Information]
Process Name: OWSTIMER.EXE
User Name: NETWORK SERVICE
 
Could not load file or assembly 'Microsoft.IdentityModel ...........
 
 
try this
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=eb9c345f-e830-40b8-a5fe-ae7a864c4d76&displaylang=en

Wednesday, September 29, 2010

InfoPath 2010: Send Email on button click ( Custom Code)

I was searching for sending Mail from Infopath form, on click of button through custom code.

Initially I tried this by googling,

EmailAdapterObject myEmailAdapter =

((EmailAdapterObject)thisXDocument.DataAdapters["Email Submit Internal"]);
 myEmailAdapter.To = list@example.com;
 myEmailAdapter.Subject = "Status Report";
 myEmailAdapter.Submit();

But in above code, I was not able to get "thisXDocument" reference.

Then I used below code to send Email

Microsoft.Office.Interop.Outlook.Application objOutlook = new Microsoft.Office.Interop.Outlook.Application();



Microsoft.Office.Interop.Outlook.MailItem objOutlookMsg = (MailItem)objOutlook.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem);





objOutlookMsg.To = "  To Address ";


//objOutlookMsg.CC = AddressCC;


//objOutlookMsg.BCC = AddressBCC;


objOutlookMsg.Subject = "TestMail";
objOutlookMsg.Body = "Body of email";

// If you want to attach image 

objOutlookMsg.Attachments.Add(@"\image\header.jpg", Microsoft.Office.Interop.Outlook.OlAttachmentType.olByValue, objOutlookMsg.Body.Length + 1, "My Attachment");


objOutlookMsg.Importance = Microsoft.Office.Interop.Outlook.OlImportance.olImportanceNormal;


//objOutlookMsg.Display(true);


objOutlookMsg.Send();


objOutlook = null;
objOutlookMsg = null;

InfoPath 2010 : How to make Text fields Visible False

I was just trying to figure our, how can we make the fields visible false in Infopath designer 2010.

I didnot find any direct way, but what we can do is, while designing, create textfield, appropriate field name will get create under "MYfields". Later delete the Text field from UI, but stil you can work with the fields declared under "MyFields".

Wednesday, September 15, 2010

Infopath 2010 - Error while connecting to Web service

I was trying to populate data in Infopath form by calling webservice .

I was getting below error when I try to call webservice through code.

Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

After doing so many R&D, I found this can be solved by adding "Full" trust in Web.config, but in Infopath project, we won't get Web.config file. We have only App.Config file.

After searching in Infopath Form, where you can set Full Trust.

Open Infopath 2010 form in Design Mode.
Click on Langauge Tab.


Under Security and Trust - Select Full Trust option.

This will solve your problem

Monday, September 6, 2010

Error while opening Infopath file

When I was trying to open Infopath file (.xsn) , I was getting below error.

This form cannot be opened because it requires the domain permission level

Error Details:
Forms that require the domain permission level contain features
that access information on a network, such as data connections, linked images, and code.
 
The solution for this is very simple.
Right click on the file, select "Design" option. this will work

Wednesday, August 25, 2010

Solution for the error while setting session using javascript

I was working on setting projectid into session using javascript.

where I was using below code
if (projectid) {

// URL to get states for a given country
CreateXmlHttp();
// If browser supports XMLHTTPRequest object
if (XmlHttp) {
var requestUrl = "AJAXServlet.aspx?projectid=" + projectid + "";
//Initializes the request object with GET (METHOD of posting),
//Request URL and sets the request as asynchronous.
XmlHttp.open("GET", requestUrl, true);
//Setting the event handler for the response
XmlHttp.onreadystatechange = HandleResponse;
//Sends the request to server
XmlHttp.send(null);
}
else {alert("Unable to populate project session");
}
}
 
which was populating on click of list of projects with radio button, but it was working only for 2 clicks, after that If I select any other project session was not populating, but I was getting correct response message with XmlHttp.status = 200.
 
I sat to fix this for about 2 hours, but I didnot find any issue with ajax code.
 
Then, just for testing I append random number to the url, surpricingly it started working properly,
 
below is the change I have made
var rand_no = Math.random();
var requestUrl = "AJAXServlet.aspx?projectid=" + projectid + "&ran= "+ rand_no +"";
 

Friday, August 20, 2010

SQL query "when Null" will not work

SQL query Null will not work for the below case
select case amount when null then 0 else amount end from [Table]

Change this as below, this will work
select case when Amount is null then 0 else amount end from [Table]



Tuesday, July 20, 2010

Change the size of the column in SQL

To change the size of the column in SQL

ALTER TABLE [Deliverables] alter column [LastModifiedBy] nvarchar(50)

Tuesday, June 22, 2010

SharePoint Workflow not triggering when item changed - issue resolved

I was working on SharePoint designer 2010 workflow, I was stuck in one workflow problem, where the workflow was not triggering when I change the item, even though I have selected the option of auto trigger when item change.

After lot of analysis, I found that, its the problem with not comple the previous workflow.

whenever, you are working with multiple condition workflow, complete the first workflow, then only the next workflow will gets triggered, because Sharepoint workflow is sequential, you can't run two workflow parallaly on the same item.

Sunday, June 20, 2010

Customizing themes in SharePoint 2010

I was trying to apply custom themes for the SharePoint 2010 Online site.

thought of making seperate theme, instead of applying for each site manually.

The steps to create the themes are explained in this link using power point

http://office.microsoft.com/en-us/powerpoint-help/customize-and-save-a-theme-in-powerpoint-2007-HA010250106.aspx

follow the above steps, create thmx file, navigate to Site Settings, themes, upload this file in to the themes gallary.

you can see your custom theme available in themes list.

Thursday, June 10, 2010

SharePoint 2010 Calculated Column - Get Days Left from Due date to current date

I was trying to Get day's remaining from the Due Date to current date using SharePoint calculated column in of our SPO2010 MileStone List.

I used ths technique to get days left

Create a dummy column Today with Single line of text

Create a DaysLeft calculated column
Enter this value in formula place
=(DATEDIF(Today,[DueDate],"d"))-INT(DATEDIF(Today,[DueDate],"d")/7)*2-IF((WEEKDAY([DueDate])-WEEKDAY(Today))<0,2,0)+1
Make the above output as Single Line text

Note: You should have column with name "DueDate"

After doing this, click Ok, than delete the column "Today". come back to your list, you will see number of days remaining under the column "DaysLeft"



Monday, June 7, 2010

SharePoint designer 2010 - Changing the alternate Style of List View

To change the alternate style of List view,
Open page in designer,
Select the rows
Select Row Formatting option
Click on Advanced option enter  position() mod 2=0

or view code, enter the below code in place of




ms-alternating




Replace with



ms-rteBackColor-4
ms-rteBackColor-5



Save the file.

Friday, June 4, 2010

SharePoint Designer 2010 - Error in Approval Workflow

I was working on Sharepoint 2010 workflow in Designer, I was creating simple approval workflow.

I was surprised to see the result, even I say rejected, I was getting mail has approve. did some R&D.

later, found it solved by enabling Content Approval flag.

To do this , Go to Library Settings - Version settings, select Enable content approval option

Friday, May 28, 2010

Office Excel 2010 - Publish to SharePoint option not available

I was working on SharePoint 2010 Excel Services, where you can see in the Office Excel 2010, publish option to sharepoint is moved to "Save & Send" option, which comes under File, which is different from Office 2007.

But, If you go to that location,you will see Save to SharePoint option, but you will not see browse option to save that excel work sheet in to SharePoint Library.

This is because, your office installation is not uptodate. you may have to upgrade your Office Professional Plus 2010.

check this for upgrading details.
http://support.microsoft.com/kb/983473/en-us?p=1

Monday, May 24, 2010

SharePoint 2010 : Table Of Content (TOC) webpart error

I was getting "Unable to display this Web Part" error, when I try to add Table Of Content WebPart in SharePoint 2010 page with Team Site.

Error Details : Could not load XSL, the system cannot find the file specified.


I did some googling, later, tried activating publishing feature in Team Site and than tried to add this webpart, it started working.

Friday, May 21, 2010

SharePoint 2010 - A Microsoft SharePoint Server State Service error occurred while processing your request

I was getting below error when I was working with Chart Webpart with SharePoint 2010

 A Microsoft SharePoint Server State Service error occurred while processing your request


To solve this problem, Go Central Administration
Go to Configuration wizard
Go to
Farm Configuration

Launch the Farm Configuration Wizard

Complete the wizard, this will solve your problem

Thursday, May 20, 2010

Server error: http://go.microsoft.com/fwlink?LinkID=177673

I was getting below error, after installing patch in SharePoint 2010

Server error: http://go.microsoft.com/fwlink?LinkID=177673


When I check in Event Viewer, I got below details
There is a compatibility range mismatch between the Web server and database "SharePoint_AdminContent_78377fc8-8ddf-4456-a370-a9c1f525531e", and connections to the data have been blocked to due to this incompatibility. This can happen when a content database has not been upgraded to be within the compatibility range of the Web server, or if the database has been upgraded to a higher level than the web server. The Web server and the database must be upgraded to the same version and build level to return to compatibility range.

I tried running this, but got command line error.
"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14"
stsadm –o upgrade –inplace –url  central admin URL –forceupgrade

After that, just opened ShrePoint 2010 Production configuration window, navigated to all windows by clicking Next and clicked in Finish
Solved My problem.

Tuesday, May 18, 2010

SharePoint 2010 - the request failed with http status 401 unauthorized

I was getting below error, when I am trying to connect to SharePoint 2010 SiteData.asmx webservice. from VS 2010 asp.net website
the request failed with http status 401 unauthorized

Solution
System.Net.NetworkCredential myCredential = new System.Net.NetworkCredential();

myCredential.UserName = "";
myCredential.Password = "";
 
The above code has been changed as
myCredential = new NetworkCredential("username", "password", "domain");
 
Started working

Monday, May 17, 2010

operation is not valid due to the current state of the object.

I got below error, when I am trying to add SharePoint 2010 Site Data web service in to my Visual Studio 2010 website. "operation is not valid due to the current state of the object."

The above error is due to proxy authentication.

This can be solved by adding the below lines to web.config






Inline Editing - SharePoint Designer 2010

If you are working with Data Form Webpart in SharePoint designer 2010.
If you want to use Inline Editing option, Make sure that the Inline Editing option is selected under the default view of the custom List to get the below properties

• Show edit item links
• Show delete item links
• Show insert item link

New SharePoint 2010 training materials

New SharePoint 2010 training materials has been released
check this link

http://blogs.msdn.com/vesku/archive/2010/05/12/new-advance-sharepoint-2010-training-material-released.aspx

Sunday, May 16, 2010

Data View and Data Form Web Part



Data view Webpart was the basic webpart with the “view” functionality, later the DataFormWebPart was introduced  with "view" and “form” functionality to write back to various data sources.


 Data View generically used to refer to the feature set but actually it means DataForm.
SharePoint Designer’s UI still uses the term Data View in the places of Data Form

Thursday, May 6, 2010

KR Puram Lake – Fantasy Lagoon

I used to go in and around KR Puram Lake many times but I never observed the improvements happend in the lake.

Now, the lake was mantained by private body and they have named it has "Fantasy Lagoon".
I heard it for the first time, it may not be a famous as "Lumbini Garden" in Nagavara Lake, but good improvement.

check this http://www.travelingbeats.com/blog/kr-puram-lake-fantasy-lagoon

Tuesday, May 4, 2010

SharePoint 2010 : Cannot start service SPUserCodeV4

Error occurred in deployment step 'Activate Features': Cannot start service SPUserCodeV4 on computer

I got the above error while trying to deploy one simple webpart, when I Searched in google, many people said check the Services on Server in Central Admin and make sure Microsoft SharePoint Foundation User Code Service is started.

But, in my case "Microsoft SharePoint Foundation User Code Service" is started but still i was not able to deploy.

After doing some trial and error, I figured out the solution.

Go to Services.msc
Select "Windows SharePoint Services User Code Host V4" - Click on Properties

Select LogOn tab

Re-enter your password, click on Apply.

it started working properly.

One reason for this may be, if you have changed your windows password, you may face this issue

Thursday, April 29, 2010

Office Assistant not available in 2007

The Office Assistant was a Microsoft Office feature to assist users by way of an interactive animated character, which interfaced with the Office help content. It used technology initially from Microsoft Bob and later Microsoft Agent, offering advice based on Bayesian algorithms. In Microsoft Office for Windows, it was included in versions 97 to 2003.

In Microsoft Office for Mac, it was included in versions 98 to 2004. The default assistant in the English Windows version was named Clippit, nicknamed Clippy, not in citation given after a paperclip. The character was designed by Kevan J. Atteberry . The feature drew a strongly negative response from many users. Microsoft turned off the feature by default in Office XP, acknowledging its unpopularity in an ad campaign spoofing Clippit.


The feature was removed altogether in Office 2007 and Microsoft Office 2008 for Mac, as it drew criticism from customers and even Microsoft employees.

Ref : http://en.wikipedia.org/wiki/Office_Assistant

SharePoint 2010 supporots .NET4.0 or .NET 3.5

What is the framework we should actually use, when developing application in SharePoint 2010.

When I was working with MOSS 2007, all the development activities was done using Visual Studio 2.0, where at that time VS 3.0 and VS 3.5 was not stabilized to use in MOSS 2007.

Now again it was said that, SP2010, we use VS 3.5 not VS 4.0. 
We may have to wait untill Microsoft gives the answer.

check this link http://www.demiliani.com/blog/archive/2009/11/19/6569.aspx

Wednesday, April 28, 2010

Ooty Trip

ವು ಊಟಿಗೆ ಪ್ರವಾಸ ಹೋಗಬೇಕು ಅಂತ ಡಿಸೈಡ್ ಮಾಡಿ, ೨೪ ರ ಶನಿವಾರ ಮಂಡ್ಯಧಿಂದ ಹೊರಟೆವು .
ನಂಜನ ಗೂಡು ತಲುಪಿ ಪೂಜೆ ಮುಗಿಸಿ ಗುಂದ್ಲುಪೆಟ್  ಮಾರ್ಗವಾಗಿ ಊಟಿನ  around 11 ಗೆ  ತಲುಪಿದೆವು.
ಊಟಿಯಲ್ಲಿ Botanycal Garden ನೋಡಿಕೊಂಡು Boating ಮುಗಿಸಿ ದೊಡ್ಡ ಬೆಟ್ಟ ನೋಡಿಧೆವು.
ಅಲ್ಲಿಂದ ನಾವು ಮಿಳಿಟರಿನಲ್ಲಿ ಕರ್ನಲ್ ಆಗಿರುವ Param ಅವರ ಮನೆಗೆ ಹೊರಟೆವು.
ಅವರ ಮನೆ Weligton ನಲ್ಲಿರುವ Military Camp ನಲ್ಲಿದೆ. ಅವರ ಮನೆಗೆ ಹೋದಮೇಲೆ ನಮ್ಮ ಊಟಿ ಪ್ಲಾನ್ Change  ಆಗೋಯ್ತು.

ಅವರ ಮನೆ ತುಂಬ ಸುಂದರವಾಗಿತು, Guest ಗಳಿಗೆ ಅಂತಾನೆ ತುಂಬ Facility ಇತ್ತು.
ಕರ್ನಲ್ Param ಅವರ ಬಗ್ಗೆ ಕಂಡಿತ ಹೇಳಲೇ ಬೇಕು. ಅವರು ಹಾಸನ ಮೂಲದವರು, ಮಿಲಿಟರಿನಲ್ಲಿ ೧೭ ವರ್ಷದಿಂದ ಸೇವೆ ಮಾಡ್ತಾ ಇದಾರೆ, ಅವರ ಜೊತೆ ಸ್ವಲ್ಪ ಹೊತ್ಹು ಮಾತಾಡಿದ್ರೆ ಸಾಕು ನಿಮಗೆ ದೇಶ ಪ್ರೇಮ ಸ್ವಾಭಿಮಾನ ಹುಕ್ಕಿ ಬರುತ್ತೆ.

ಅವರ ಶ್ರೀಮತಿಯವರನ್ನು ನೋಡಿದಗಾ, ಇಬ್ಬರದು  ಒಳ್ಳೆ ಜೋಡಿ ಅನ್ನಿಸಿತು, Both treated us so nicely Which I never expected from ಮಿಲಿಟರಿ people . ಮಿಲಿಟರಿಯವರು ತುಂಬ Rough ಅಂದುಕೊಂಡಿದೆ but ಈ family ನೋಡಿದ ಮೇಲೆ ನನ್ನ ಅಬಿಪ್ರಾಯ ಬದಲಾಯ್ತು.
ಹೆಂಗಸರೆಲ್ಲ  ಹೊಳಗೆ ಹರಟುತ ಈರಬೇಕದ್ರೆ ನಾವು ಮೂವರು (Including kumar ) ಹೊರಗೆ Open terrace ನಲ್ಲಿ ಹರಟುತ ಕುಳಿತೆವು. ಅವರ ಮನೆ ಸುಂದರವಗಿತು, ಇಬ್ಬರು ಕೆಲಸದವರು ಎಲ್ಲ ಕೆಲಸ ಮಾಡಿ ಕೊಡ್ತಾ ಈದ್ದರು.     

ರಾತ್ರಿ    ೧೨ ಗಂಟೆತನಕ ಹರಟುತ ಕುಳಿತೆವು, ಸಮಯ ಹೋಗಿದ್ದೆ ಗೊತ್ಹಗಲ್ಲಿಲ. He was telling all his exp in military , How strong is our military, how people behave inside and outside military campus and all those stuff.
He was also telling about how he fight with government organization for not to give bribes, By talking with Param my way of looking Military has been completly changed  also his two kids are too ಸ್ಮಾರ್ಟ್.
ಅವರ ಲೈಫ್ ಸ್ಟೈಲ್, ಥಿಂಕಿಂಗ್ ತುಂಬ ಇಷ್ಟ  ಆಯಿತು.

We dropped the plan of seeing other places in Ooty , Enjoyed  in Param house. next day , Sunday got up at 9 Spend some more time with his family took group ಫೋಟೋಸ್, went to military Canteen for purchasing. Visited nearby tea estate had nice ಲುನ್ಚ್ in his house .
ಮಿಲಿಟರಿಗೆ ಜೋಇನ್ ಆಗೋದಕ್ಕೆ ನನ್ನ ವಯಸ್ಸು  ಅಗೊಯುತು , ಬೇರೆಯವರಿಗದ್ರು ಜೋಇನ್ ಆಗೋದಕ್ಕೆ ಹೇಳಬೇಕು ಅಂದುಕೊಂಡು left  ಊಟಿ around ೩.೩೦ .

It was heavily raining in ooty we took Kalhathi falls ರೋಡ್, check this link
http://raj-gowda.blogspot.com/2010/04/never-do-these-mistake-while-driving-i.html
for adventure we did in this road .

It was really nice and ಮೆಮೊರಬ್ಲೆ ಊಟಿ  ಟ್ರಿಪ್.

Tuesday, April 27, 2010

Pre-Requisite for SharePoint 2010

Below are the Order of Installation for SharePoint 2010

 1  Microsoft Windows Server 2008 Standard SP2
   http://go.microsoft.com/fwlink/?LinkId=166500

 2  Microsoft .NET Framework 3.5 Service Pack 1
  http://go.microsoft.com/fwlink/?LinkId=131037


3 Windows Server 2008 with SP 2 FIX:
A hotfix that provides a method to support the token
authentication without transport security or message encryption in WCF is
available for the .NET Framework 3.5 SP1
http://go.microsoft.com/fwlink/?LinkID=160770

4 Windows PowerShell 2.0 
http://go.microsoft.com/fwlink/?LinkId=161023

5. Microsoft SQL Server 2008 SP1

http://go.microsoft.com/fwlink/?LinkId=166490

6. Cumulative update package 2 for SQL Server 2008 Service Pack 1
http://go.microsoft.com/fwlink/?LinkId=165962

7. Microsoft SQL Server 2008 Native Client

http://go.microsoft.com/fwlink/?LinkId=166505

8. Microsoft SQL Server 2008 Analysis Services ADOMD.NET
http://go.microsoft.com/fwlink/?LinkId=130651

9. ADO.NET Data Services v1.5 CTP2 for Windows Server 2008 SP2

http://go.microsoft.com/fwlink/?LinkId=158354

10 Windows Identity Framework for Windows Server 2008
http://go.microsoft.com/fwlink/?LinkID=160381

11 Microsoft Sync Framework v1.0
http://go.microsoft.com/fwlink/?LinkID=141237&clcid=0x409

12 Microsoft Filter Pack 2.0

http://go.microsoft.com/fwlink/?LinkId=166504
 
13 Microsoft Chart Controls for Microsoft .NET Framework 3.5

http://go.microsoft.com/fwlink/?LinkID=141512

14 Microsoft Server Speech Platform

http://go.microsoft.com/fwlink/?LinkID=179612

15 Speech recognition language for English
http://go.microsoft.com/fwlink/?LinkID=179613

16 Microsoft Silverlight 3
http://go.microsoft.com/fwlink/?LinkId=166506

17 SQL Server 2008 R2 November CTP Reporting Services Add-in for Microsoft SharePoint Technologies 2010

http://go.microsoft.com/fwlink/?LinkID=164654&clcid=0x409




Ref:  http://technet.microsoft.com/en-us/library/cc262485(office.14).aspx






























































SharePoint 2010 - Site Template is now saving as wsp

Observed that, the Site Template which was with the extension .stp in SharePoint 2007 is now  saving as .wsp in SharePoint 2010 and the site gallary will not be available instead templates are stored in Solution Gallaries.

"wsp" file extension was used for solution packaging in SharePoint 2007.


Go to Site Action -  Select the option "Save site as template"






 
When you save the site, you can observe that, the file has been saved with the extension .wsp


Monday, April 26, 2010

Never do these mistake while driving – I shouldn’t be Alive


Last Saturday and Sunday (24 & 25 Apr 2010), we visited Ooty, it was nice trip, till this incident happens !!!


While coming from Oooty to Mysore, we took the short cut root (Sigur Ghat Road) which is of complete hair pin curves road, this road is the toughest road to drive, any small mistake can be big disaster.


We started from Ooty at 3.30, Reached kallathi falls place at around 4.30, Kalhatti Falls is about 13 Kms. from Ooty on Sigur Ghat Road.it was lightly drizzling, we are about 1 km away from Kallathi falls, I saw few people standing and watching the downside of hills and taking snaps, I also wanted to check the places and take some snaps, I parked my car just few meter after the Scorpio, and all my family members get down from the car and we started taking the snaps.


I observed, light smoke from my car tier(at brake plate) when the rain water falls on it, I thought, because I came by applying break frequently because of the slope, the brake might have got heated up, because of friction. I put some water to the tier, now more smoke started coming and the tier was getting cool and I was encouraged by this and put water to all the tiers.


The people in the Scorpio, who are watching this, shouted from their place, said don’t put water, break will not apply. Anyway I have put water to all the tiers by that time and I didn’t take those words seriously.


We decided to move from that place, all my family members sat inside the car, I sat in the driver places, before starting, just put my leg on break, there was no effect of break, I don’t see any difference between my clutch and break, but still thought that, after ignition it may start work, I started the car. And put the gear to neutral, put my leg on break, nothing is happening; car is moving even after pressing the break till bottom. Suddenly put the hand break, put the car in 1st gear, switched of the ignition key,, My car was in such a steep place that, even after this car moved little bit and I turned the tier completely right side, so that tier will not get easy straight way, finally car stopped, I told everybody to get down immediately and put the stones for all the four tier.


Again went back to the Scorpio people, said this is what happened, after discussing for some time, we decided to bring the car to little bit back side, as it was standing in steep place and in the center of road.


So, I again alone sat in the car, remembering all the gods, any mistake of mine would straight away take me to bottom of the hill.


Started my car putting in reverse gear, by applying full accelerator with no breaks managed to bring the car to straight road. I observed that the breaks are applying little bit as I keep pressing the break.


So, decided to go in same way (against steep road) so that, my car tier again gets heated up, went like that for about 2 km with hand brake and by keep pressing the leg brake, after that the leg brake started working, took reverse and came back to the same place where my family members are waiting, they are all in tension(except my daughter, saying pa paa.. as soon as she saw the car) thinking, will I come back or not. Everybody came and sat in the car holding there breath till we reach the down line of the hill.


It was a horrible experience in my life, If I just imagine, what would have happened if that Scropio people were not told me on pouring water or if I would not check the brakes before I start !!!!

I just wanted to share my experence, so that you don’t do these mistake while driving.


Things you should take care with your car brakes:


Never put water on tier, even if you think it is getting heated up in a long driving.


While driving in rain, make sure that, your car is in control, never take chance on driving too fast and your brake may not work effectively, if you want to stop immediately while raining.


If you are driving in Hill station, if you have parked your car in any place and if there is heavy rain, make sure that, before you start the car, the brakes are applying properly.



What you should do immediatly, if brake not working because of water ?
Keep pressing the brake pedal, so that fuel gets injected.


 Check this to know, how brake works

http://auto.howstuffworks.com/auto-parts/brakes/brake-types/brake.htm



Wednesday, April 21, 2010

How to write blog content in kannada

ಕನ್ನಡದಲ್ಲಿ ಬ್ಲಾಗ್ ಮಾಡೋಣ ಅಂತ ಅನ್ನಿಸಿ ಹೇಗೆ ಬರೆಯೋದು ಅಂತ ಹುಡುಕುತ ಇರುವಾಗ ಈ ಲಿಂಕ್ ಸಿಕ್ಕಿತು http://www.google.com/support/blogger/bin/answer.py?hl=en&answer=58226
ಕೊನೆಗೂ ಕನ್ನದಲ್ಲಿ ಬ್ಲಾಗ್ ಮಾಡೋದು ಕಲಿತೆ
Directly go to settings Enabling the Transliteration Feature - Select the option Kannada, than start writing new post, enter letters in english like kannada - which converts in to kannada language.
    
The button toggles the transliteration feature on and off. (You can also use Ctrl+G as a shortcut.) When it's on, it affects the title, labels, and body of your post. or you can type your text with the transliteration button turned off. Then select all your text and click the button. Everything selected will be transliterated at once

Tuesday, April 20, 2010

Function Point Analysis – Quick Reference

I have tried putting the method of calculating functional point in simple words by removing the detailed explanation, you can check the attached document for quick  reference.




One example of using is given below,



In EI’s the points are defined for low/Average/High are given as below,



Complexity
Points/Weight
Low
3
Average
4
High
6


During calculation consider the above table for multiplication.



EI
5 Low
x 3 =
15


3 Average
x 4 =
12


3 High
x 6 =
18
45




What is a ``Function Point''?
Function points are a standard unit of measure that represent the functional size of a software application. In the same way that a house is measured by the square feet it provides, the size of an application can be measured by the number of function points it delivers to the users of the application. A simple five step counting process To start at a high level, there are five steps in the process of counting FPs.

They are: 1. Determine the type of count.
 2. Identify the scope and boundary of the count.
3. Determine the unadjusted FP count.
4. Determine the Value Adjustment Factor.
5. Calculate the Adjusted FP Count.

 Five standard "functions" In counting FPs there are five standard "functions" that you count. The first two of these are called Data Functions, and last three are called Transaction Functions.
The names of these functions are listed below.
1. Data Functions: 1. Internal logical files (ILF)
2. External interface files (EIF)
2. Transactional Functions:
1. External Inputs (EI)
2. External Outputs (EO)
3. External Inquiries (EQ)

Important terms used
User identifiable Defined requirements for processes and/or groups of data that are agreed upon, and understood by, both the users and software developers. Control information This is data that influences and elementary process of the application being counted. It specifies what, when, or how data is to be processed. Elementary process An elementary process is the smallest unit of activity that is meaningful to the user. An elementary process must be self-contained and leave the business of the application being counted in a consistent state. Data Element Type, or DET A data element type is a unique, user recognizable, non-repeated field. This definition applies to both analyses of data functions and transactional functions. Record Element Type, or RET A record element type is a user recognizable subgroup of data elements within an Internal Logical File or External Interface File. FTR is a "file type referenced", so it can be either an ILF or an EIF.

(1) Data Functions - Internal Logical Files (ILFs) ILFs represent data that is stored and maintained within the boundary of the application you are counting. When counting ILFs you are basically counting the data functions that your application is being built to maintain. Samples of things that *can* be ILFs include: 1. Tables in a relational database. 2. Flat files. 3. Application control information, perhaps things like user preferences that are stored by the application. 4. LDAP data stores. RETS Data Element Types (DETs) 1-19 20-50 51+ 1 L L A 2 to 5 L A H 6 or more A H H Weights: Complexity Points Low 7 Average 10 High 15

(2) Data Functions - External Interface Files (EIFs) EIFs represent the data that your application will use/reference, but data that is not maintained by your application. Data Element Types (DETs) RETS 1-19 20-50 51+ 1 L L A 2 to 5 L A H 6 or more A H H EIF Weights: Value No. or Function Points Low 5 Average 7 High 10

 (3) Transaction Functions - External Inputs (EI's) An external input (EI) is an elementary process that processes data or control information that comes from outside the application boundary. The primary intent of an EI is to maintain one or more ILFs and/or to alter the behavior of the system. Examples of EIs include: 1. Data entry by users. 2. Data or file feeds by external applications. FTR's Data Element Types (DET's) 1-4 5-15 16+ 0-1 L L A 2 L A H 3 or more A H H Weights: Complexity Points/Weight Low 3 Average 4 High 6

(4) Transaction Functions - External Outputs (EO's) An external output (EO) is an elementary process that sends data or control information outside the application boundary. The primary intent of an external output is to present information to a user through processing logic other than, or in addition to, the retrieval of data or control information . The processing logic must contain at least one mathematical formula or calculation, create derived data maintain one or more ILFs or alter the behavior of the system. EO examples include: 1. Reports created by the application being counted, where the reports include derived information. FTR Data Element Types (DET) 1-5 6-19 20+ 0-1 L L A 2-3 L A H 4 or more A H H Complexity Points/Weight Low 4 Average 5 High 7

(5) Transaction Functions - External Inquiries (EQ's) An external inquiry (EQ) is an elementary process that sends data or control information outside the application boundary. The primary intent of an external inquiry is to present information to a user through the retrieval of data or control information from an ILF of EIF. The processing logic contains no mathematical formulas or calculations, and creates no derived data. No ILF is maintained during the processing, nor is the behavior of the system altered. Examples of EQs include: 1. Reports created by the application being counted, where the report does not include any derived data. 2. Other things known as "implied inquiries", which unfortunately, are a little out of scope for this paper. FTRs Data Element Types (DETs) 1-5 6-19 20+ 0-1 L L A 2-3 L A H 4 or more A H H Complexity Points/Weight Low 3 Average 4 High

 Function Point Calculation Step 1: Determine the count resulting from ILF's
Objectives of Function Point Analysis 1. Measure software by quantifying the functionality requested by and provided to the customer. 2. Measure software development and maintenance independently of technology used for implementation. 3. Measure software development and maintenance consistently across all projects and organizations.
ILF No. RETs No. DETs Complexity Function Points
Project 1 3 Low 7
Entity 1 6 Low 7
Process Group 1 2 Low 7
Process 3 13 Low 7
Total: 28      


Step 2 : Determine the count resulting from EIF's - No data Step 3 : Determine the count resulting from EI's The table below lists the External Inputs in the application. It also lists the number of DETs and FTRs for each process, and the complexity that results from the number of DETs and FTRs.
Process # DETs FTR Names # FTRs Resulting Complexity # FPs
Create Project 5 Project 1 Low 3
Add Entity 7 Project, Entity 2 Average 4
Edit Entity 7 Project, Entity 2 Average 4
Delete Entity 4 Project, Entity 2 Low 3
Add Process Group 3 Project, ProcessGroup 2 Low 3
Edit Process Group 3 Project, ProcessGroup 2 Low 3
Delete Process Group 4 Project, ProcessGroup 2 Low 3
Add Process 9 Project, Process, ProcessGroup 3 High 6
Edit Process 9 Project, Process, ProcessGroup 3 High 6
Delete Process 5 Project, Process, ProcessGroup 3 High 6
Clone Process 3 Project, Process, ProcessGroup 3 Average 4
        Total: 45

Step 3 : Determine the count resulting from EO's
Process DETs FTRs Resulting Complexity # FPs
UFPC Report 7 3 Average 4
      Total: 4

Step 4 : Determine the count resulting from EQ's
Process DETs FTRs Resulting Complexity # FPs
ILF/EIF Report 6 2 Average 5
Display List of Entities 5 2 Low 4
Display List of Process Groups 2 2 Low 4
Display List of Processes 7 3 Average 5
Implied Inquiry - Process Group ComboBox on the Add/Edit Process Dialog 1 2 Low 4
      Total: 22

Final Calculation
Function Type Complexity Multiplier Line Item Sub-Total Section Total
ILF 4 Low x 7 = 28  
  0 Average x 10 = 0  
  0 High x 15 = 0 28
         
EIF 0 Low x 5 = 0  
  0 Average x 7 = 0  
  0 High x 10 = 0 0
         
EI 5 Low x 3 = 15  
  3 Average x 4 = 12  
  3 High x 6 = 18 45
         
EO 0 Low x 3 = 0  
  1 Average x 4 = 4  
  0 High x 6 = 0 4
         
EQ 3 Low x 4 = 12  
  2 Average x 5 = 10  
  0 High x 7 = 0 22
         
      Unadjusted Function Point Count: 99


Reference http://www.devdaily.com/FunctionPoints/