Welcome to Forums Sign in | Join | Help | Forums
in Search


set the constituentForm and its constituent object in C#

Last post 12-07-2009 6:44 AM by David Zeidman. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-06-2009 1:53 PM

    • Gia-thuy Do
    • Not Ranked
    • Posts 1
    • Organization: Legionäre Christi e.V

    set the constituentForm and its constituent object in C#

                     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.

  • 12-07-2009 6:44 AM In reply to

    • David Zeidman
    • Top 25 Contributor
    • User Since: 2002
    • Posts 326
    • Organization: Zeidman Development
    • Products:  Blackbaud Direct Marketing, Blackbaud Enterprise CRM, The Information Edge, The Raiser's Edge

    Re: set the constituentForm and its constituent object in C#

    Try this:

     

        IBBDataObject dataObj = null;

      oConstit = (CRecord)searchscreen.SelectedDataObject;
      oConstituentForm = new CConstituentForm();

      oConstituentForm.Init(sessionContext);
      dataObj = (IBBDataObject)constit;     

      oConstituentForm.set_ConstituentObject(ref dataObj);

     

    David

    David Zeidman
    Zeidman Development
    http://www.zeidman.info

    Check out my RE API blog
    http://www.re-decoded.com
Page 1 of 1 (2 items)