DOJO Example
2 answers
dojo scripts are used for attribute customizations, which are already connected to the repository, when they are invoked, since they are invoked in the context of a working instance.....
you may want to explore the below links on some samples using dojo scripts:
https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_for_Javascript
https://jazz.net/wiki/bin/view/Main/AttributeValueProviders
if this does not help you, please elaborate on if your need to connect to repository through dojo api is something out of attribute customizations...
you may want to explore the below links on some samples using dojo scripts:
https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_for_Javascript
https://jazz.net/wiki/bin/view/Main/AttributeValueProviders
if this does not help you, please elaborate on if your need to connect to repository through dojo api is something out of attribute customizations...