As of April 17, 2018, this site is now in read-only mode. To start new Blackbaud Developer’s discussions, you will find Developer Discussions in the Blackbaud CRM Community.
To post or respond to Blackbaud Community discussions, you will have to login using a www.blackbaud.com login. Learn how to login here. If you have questions or need assistance, please email email@example.com.
I am developing a custom report and the BB-SDK UI Model Wizard generates me the input form. As part of the requirement, I am trying to develop the UI Model with C#. When I generate the UI Model, I don’t see the objects and methods that I have defined in the procedure coming to Visual Studio IDE as I have them in VB.Net.
Is there a part that I am missing? Do you have a reference material / sample on how to develop custom UI model using C#?
When you create a UIModel for a report that has form fields and UI actions/fields, there is a codegen file created as well as a code behind file. In the codegen, the fields and actions will be defined but will not be hooked up to handlers. The code behind file is given an OnCreated method, which the code behind calls after all of the fields have been created.
If you want to add handlers to any of your events, add them in the OnCreated method:
private void SITEID_ValueChanged(object sender, Blackbaud.AppFx.UIModeling.Core.ValueChangedEventArgs e)
partial void OnCreated()
this.Loaded += ActionsReportUIModel_Loaded;
this.SITEID.ValueChanged += SITEID_ValueChanged;