show another dataform programmatically when a value is changed using VB.net/C#
Hello everyone,
Is there anyway to pop up another dataform when a value in existing form is changed using SDK (VB/C#).
I have not problem creating event listener for the value changed, but am still looking for method to make it happen.
server.loaddataform() only loads the form data instead of popping the form.
I aslo tried using a UIAction, but wasnt able to trigger the action on the fly
Dim customFormInvokeArgs = New InvokeFormActionArgs()
'Dim test2 = New ShowCustomFormUIAction()
testAction.Invoke(customFormInvokeArgs)
I am struggling finding a method in SDK to make this happen?
Anyone has any suggestions using vb/c# or instead of using js, or any example I can check in BBCRM to see how it was implemented?
Thanks in advance.
Joe
Comments
-
@Joe Huang
If you're trying to approach this from a strictly VB/C# approach, I would suggest setting up a UIAction that will have your default dataform ID in it. Then have your logic change the dataformid associated with that given UIAction and then whenever you're ready just fire the action either manually or via code. Here's a basic example (please note the xml won't live in the same files as the C#)
<UIAction ActionID="SHOWADDFORM" Caption="ShowAddForm">
<ShowDataForm DataFormInstanceID="de833d24-4bc1-4515-9ed7-02071e5d3654"/></UIAction>
private void SOMETHING_ValueChanged(object sender, Blackbaud.AppFx.UIModeling.Core.ValueChangedEventArgs e)
{
this.SHOWADDFORM.DataFormInstanceId= <YOUR OTHER DATAFORMINSTANCEID HERE>
}After you set your logic up like above you should just be able to invoke the SHOWADDFORM action when you're ready and it should fire the way you expect (only issue would be if you're switching between add and edit/view forms. This same example should work for the CustomFormAction as well.
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 213 bbcon®
- 1.4K Blackbaud Altru®
- 403 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.6K Blackbaud Financial Edge NXT®
- 656 Blackbaud Grantmaking™
- 577 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 939 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.6K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 248 ResearchPoint™
- 119 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 241 Member Lounge (Just for Fun)
- 34 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Grid View Batch
- 3 (Closed) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) 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
- 794 Community News
- 2.9K Jobs Board
- 54 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)