Introduction
This is quick tip about how to pass parameters and retrieve values from the
Success
method in executeQueryAsync()
.
To pass a parameter in Success method use the following
syntax:
Before passing parameters:
context.executeQueryAsync(Function.createDelegate(this,this.success)),
Function.createDelegate(this, this.failed));
After passing parameters:
context.executeQueryAsync(
Function.createDelegate(this,function(){success(_parameter);}),
Function.createDelegate(this, this.failed));
function success(_parameter)
{
alert("In Success Method! " + _parameter);
}
To retrieve values from Success method use the following syntax:
context.executeQueryAsync(
Function.createDelegate(this, function(){ _returnParam = success(_parameter);}),
Function.createDelegate (this, this.failed));
alert(_returnParam);
Experienced software professional with 7 years+ on Microsoft Technology.
Knowledge of SDLC (System Development Life Cycle).
Technical Team Member experience leading application development on both short and long term projects.
Good team player with excellent work history as regards with work ethics, dependability and willingness to go an extra mile.
Good knowledge of IIS Hosting and Domain management.
Extensive knowledge of ASP.Net, C#.Net, VB.Net, SQL Server, SharePoint development using SharePoint Web Services and SharePoint administration, Business Intelligence & KPIs (Configuration and Creation) Web Parts, Data View Webparts, Integration of External Sources content types, Site Definition, Site templates, Workflow development, customizing and branding a SharePoint portal sites and branding.