If you are upgrading to SalesLogix v8 and want to migrate your Opportunity Snapshot component forward you will need to make some adjustments to handle a breaking change in v8.
The first thing is you should add a using statement:
Next you will need to replace the obsolete GetSystemInfo calls. These should be something like:
Where “LockOpportunityRate” is the name of the System Option to retrieve.
What you should do to replace these is to add a new line in the OnFormBoundEvent() method. At the very beginning add the line:
var systemInfo = Sage.Platform.Application.ApplicationContext.Current.Services.Get<Sage.SalesLogix.Services.ISystemOptionsService>(true);
Now that we have a reference to the new SystemOptionsService we can use that in place of the old call of FormHelper.GetSystemInfoOption(string).
So for instance this line:
chkLockRate.Enabled = FormHelper.GetSystemInfoOption(“LockOpportunityRate”);
chkLockRate.Enabled = systemInfo.LockOpportunityRate;