I have the following action in my data form:
//
//_filecontactreport
//
_filecontactreport.Name = "FILECONTACTREPORT";
_filecontactreport.Caption = "File contact report";
_filecontactreport.DataFormInstanceId = new System.Guid("8f5cdf69-8f03-4d3c-b6b5-3f5d29e2fce8");
_filecontactreport.RecordIdDefinition = "Fields!STEPID";
_stepid.LinkedActions.Add(_filecontactreport);
this.Actions.Add(_filecontactreport);
I want to invoke this action when a field is populated instead of waiting for the user to click the action button. I am not sure how to do this. Here is what I've tried unsuccessfully. I'm not sure what the invoke args are supposed to be. This code does not error. It just does nothing.
//invoking this does not seem to work
InvokeFormActionArgs invokeargs = new InvokeFormActionArgs();
System.Collections.Specialized.NameValueCollection parameters = new System.Collections.Specialized.NameValueCollection();
invokeargs.Cancel = true;
invokeargs.Model = _model;
invokeargs.Parameters = parameters;
_filecontactreport.Invoke(invokeargs);
Anyone have any ideas?