Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

What do I need to cater for when a Contact based add-in is used on an Incident workspace

$
0
0

Topic by RNFlybe Flynn

Content

I have a workspace add-in which is designed to work with Contact based workspaces.  When I place my add-in on an Incident workspace, it works mostly.  I need to cater for the scenarios where it doesn't work.  Can somebody help me out please.

Incident workspace has contact id, firstname and last name on it and an Incident field, plus my add-in.

When I create a new incident, the firstname and lastname fields are disabled, until I search for a contact (via the ID field) or add a new contact, at which point the firstname and lastname fields are no longer disabled and contain the name from the selected/new contact.  I can then edit the names from the fields on the contact workspace.

When I open an existing Incident, the firstname and lastname fields contain the contact data and they are not disabled and I can change the names.

My add-in is not disabled and once a contact has been selected/created or it is an existing incident then my add-in works ok.

But, if I type something in before a contact is selected then I get problems (The usual Object reference not set to an instance of an object).  Also, when a Contact is selected (on a new incident) my add-in does not get the data.

The recordContext.DataLoaded event does not fire, so I can't use that.

Is there some other event I should be subscribed to that would help know when to fetch the Contact data and when to disbale/enable the control?

Version

May 2016

Viewing all articles
Browse latest Browse all 2504

Trending Articles