Announcement

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 community@blackbaud.com.

1.7k questions

3.2k answers

401 users

Categories

1.7k questions

3.2k answers

401 users

I have separate add and edit dataforms that are sharing the same UIModel code. The code is 99% shared, but I have a couple of things that are specific for the edit form. Is there a way for me to tell which dataform is calling the UIModel code form the UIModel vb class?

asked by raldin (195 points)

1 Answer

I would advise against using the same exact UIModel file for two different specs. We've seen some issues when you do this (mainly because of the codegen class). Instead, the solution we use is to create a common helper class that is shared by both UIModel classes. The common helper class can handle the common stuff, while each UIModel class can remain specific to that spec. If you pass a reference of your UIModel to your common helper, then the helper class can do everything you need, even catching events on specific fields, etc.

answered by krismahon (564 points)
...