Create N to N relationship in Javascript (Associate and Dissasociate)

To associate and dissasocite N to N relationships I found this very usefull libraries thanks to Dave Berry.

To use it we simply have to call:

//AssociateEntities(relationshipSchemaName, entity1SchemaName, entity1KeyValue, entity2SchemaName, entity2KeyValue, skipCheck)

AssociateEntities("lema_lema_sitevisit_epa_noncompliance", "epa_noncompliance", CIID, "lema_sitevisit", createResponse, true);

Find here the Associate Library. As usual I upload it as a .doc file. Rename it to .js to view it.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s