MCPcopy Create free account
hub / github.com/DanWahlin/CustomerManagerStandard / getUriKey

Function getUriKey

CustomerManager/Scripts/breeze.debug.js:16338–16354  ·  view source on GitHub ↗
(aspect)

Source from the content-addressed store, hash-verified

16336 }
16337
16338 function getUriKey(aspect) {
16339 var entityType = aspect.entity.entityType;
16340 var resourceName = entityType.defaultResourceName;
16341 var kps = entityType.keyProperties;
16342 var uriKey = resourceName + "(";
16343 if (kps.length === 1) {
16344 uriKey = uriKey + fmtProperty(kps[0], aspect) + ")";
16345 } else {
16346 var delim = "";
16347 kps.forEach(function (kp) {
16348 uriKey = uriKey + delim + kp.nameOnServer + "=" + fmtProperty(kp, aspect);
16349 delim = ",";
16350 });
16351 uriKey = uriKey + ")";
16352 }
16353 return uriKey;
16354 }
16355
16356 function fmtProperty(prop, aspect) {
16357 return prop.dataType.fmtOData(aspect.getPropertyValue(prop.name));

Callers 1

updateDeleteMergeRequestFunction · 0.85

Calls 1

fmtPropertyFunction · 0.85

Tested by

no test coverage detected