Salesforce

How Do I Handle .NET Object Events? (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

How Do I Handle .NET Object Events? (Magic xpa 4.x)

When you are working with a .NET object, you will often want to execute some code based on an event raised by the object. This is done using a Magic xpa event handler. Handling .NET events is very similar to handling the other types of events in Magic xpa.

  1. In the Logic tab, press Ctrl+H to create a new handler.

  2. Type E to select Event. The Event window will appear.

  3. Set the Event type to .NET.

  4. Tab to the Event field and zoom. The .Net Event window will appear.

  5. In the Variable field, zoom to select the .NET variable.

  6. From the Event field, zoom to select the .NET event from the list.

  7. Press Escape until you are back at the Event handler.

Hint: If you know the name of the object, you can just type it in rather than selecting it.

This event will now be handled by the event handler, for all .NET objects of the same type.

Note: When using .NET events, the issue of propagation is more complex than Magic xpa events. Refer to the Magic xpa Help for additional information.

See also

The Online and Rich Client Samples projects (program NE01 and RNE01)

Reference
Attachment 
Attachment