Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - AjithPadman

Pages: [1]
1
 :)Thanks a lot that worked well

2
I did the below code
Code: [Select]
var connection = currentElement.Connectors.AddNew("TemplateBinding","TemplateBinding");
Session.Output(connection.Name);
connection.SupplierID = el.ElementID;
var tempbinding = connection.TemplateBindings.AddNew("TemplateBindings",el.ElementGUID);
tempbinding.FormalName = "ReturnType";
tempbinding.ActualName = "Test";
tempbinding.Update();
connection.TemplateBindings.Refresh();
connection.Update();
el.Update();
currentElement.Connectors.Refresh();
currentElement.Update();

But this code does not seems to update the parameters substitution. Also I see the templatebinding Collection marked readOnly in the Connector Class Specification.

3
I would like to create Template binding connection and the corresponding parameter Substitution specification of a large set of Classes with the Java Script based EA automation. I am able to successfully create a connector using the Element.Connectors.Addnew(""."Templatebinding") api. But I am not able to add the Formal and Actual Parameters to the connector using any automation methods.  I found that there is a Templatebindings Collection on a connector class. But This seems to be marked Read only and not able to update this collection. Does anybody know there is a possibility to create the templateBinding objects with definition for the Formal and actual and add it to the TemplateBinding Connector?

Pages: [1]