Problem creating a form addin with the C# SDK
Hi all,
I'm trying to create a form add-in spec using the C# SDK but the supplementary files (CodeGen, etc.) aren't being created so I can't access the fields of the parent UI model. I found a KB article discussing this issue with a note from BB that they were investigating and would update the article when a solution was found. That was in 2018 and the article in question hasn't been updated. Has anyone found a workaround for this issue?
Thanks,
Ray Porter
Comments
-
I used a decompiler…
0 -
Has any solution or workaround for this issue been found? It was first noted in 2018 and there still doesn't appear to be a solution now, 6 years later.
1 -
@Ray Porter
Hi Ray,The only workaround I have found to this problem is to create the addin in a Visual Basic project, then copy the .CodeGen.vb into a code translator, and paste the translated code back into the code file for your C# addin. Full steps are below. Agreed that this is a problem that should have been solved in the SDK a very long time ago.
To get a CSharp Addin working:
1) Create the addin in a VB project
2) Copy the contents of the .CodeGen.vb file
3) Convert those contents into C# using this converter (the Telerik one wont work for some reason)
https://icsharpcode.github.io/CodeConverter/
4) Copy their results and just paste it into the main CS file (do not try to keep it in a separate file)
5) Add the namespace declaration around the pasted results
6) Replace "Global." with nothing (i.e., get rid of "Global." in the file)
7) Add whatever logic you want to the "OnInit" method.
8) Deploy0 -
@Ray Porter
Just did a quick search and the KB article you mentioned is here:It looks like Blackbaud has no intention of resolving this issue, which is a shame.
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 209 bbcon®
- 1.4K Blackbaud Altru®
- 395 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 648 Blackbaud Grantmaking™
- 567 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 937 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.5K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 247 ResearchPoint™
- 118 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 239 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 31 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 782 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
