Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA Enterprise SCADA

MOCGetChangesetsBLT Business Logic Tier (BLT) programming example

MOCGetChangesetsBLT Business Logic Tier (BLT) programming example

  • Last UpdatedApr 24, 2025
  • 1 minute read

The following is an example of how you can program using the MOCGetChangesetsBLT Business Logic Tier (BLT) using the Data Access Layer (DAL):

List<DALBLTParam> bltParameters = new List<DALBLTParam>();

List<DALBLTParam> bltValues = new List<DALBLTParam>();

DALBLTConnection bltConnection = DALBLTClient.GetGlobalConnection("REALTIME", null);

int rowsAffected;

DataSet resultData;

DALBLTExecutionStatus execStatus;

string failureReason;

DebugLogger.Write(DebugLogger.LogLevel.Verbose,

$"About to execute BLT call '{ChangesetBltName}'");

bltConnection.DisplayName = DNAEnvironment.PhysicalDnsMachineName;

if (!bltConnection.ExecuteSync(

"MoCGetChangesetsBLT",

0, // Unlimited rows back

bltParameters,

out bltValues,

out rowsAffected,

out resultData,

out execStatus,

out failureReason))

{

DebugLogger.Write(DebugLogger.LogLevel.Always,

$"BLT call '{ChangesetBltName}' returned a failure of '{failureReason}'");

return null;

}

string[] changesets = resultData.Tables[0].AsEnumerable().Select(dr => dr.Field<string>("changesetId")).ToArray();