You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

dataLoaded event not firing

Accepted answer
edited Nov 6, 2015 6:19PM in UI Extensibility 3 comments



Could someone please tell me where I am going wrong with the following:

I have two dataLoaded events - dataLoaded and dataLoaded1. My add-in has a button that creates a new incident when clicked, I then want the dataLoaded1 event to fire after this. When I run in debug mode it creates the new workspace okay but then skips back to my original dataLoaded event. Please see code below:

private IRecordContext _recordContext;
private IRecordContext recContext;

//dataLoaded event for original workspace

void dataLoaded(object sender, EventArgs e)
            incident = _recordContext.GetWorkspaceRecord(WorkspaceRecordType.Incident) as IIncident;

            ccUserControl.CreateComplaintClicked += createComplaintClicked;

 //method for when button on workspace is fired 

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!