Products A-Z All Services Can't find what you're looking for? Chat Live!
Products A-Z Can't find what you're looking for? Chat Live!
Can't find what you're looking for? Chat Live!
oConstit = (CRecord)searchscreen.SelectedDataObject; oConstituentForm = new CConstituentForm(); oConstituentForm.set_ConstituentObject(ref oConstit);
the 3 line causes compilation error. cannot convert CRecord into IBBDataObject
Could you please help me how to set the correct type of the parameter in the method set_ConstituentObject. Thank you very much.
Try this:
IBBDataObject dataObj = null;
oConstit = (CRecord)searchscreen.SelectedDataObject; oConstituentForm = new CConstituentForm();
oConstituentForm.Init(sessionContext); dataObj = (IBBDataObject)constit;
oConstituentForm.set_ConstituentObject(ref dataObj);
David