angularjs - getting an error using breeze - The 'structuralTypeName' parameter must be a 'string' -
I am going through the elder father's SPA course and I think the 'Structural Type NA name' parameter should be While using the 'string' string here is the real error that is being thrown away
This error is generating the code MetadataStore.Get Antitize:
Function Extended Metadata () {names var metadataStore = Manager. MetadataStore; var type = metadataastore.guitenty type (); types.forEach (function (type) {if (type instision wind.EntityType) {set (short.name, shortName, type)}}); Function Set (sourceName, entityName) {MetadataStore.setEntityTypeForResourceName (resource name, entity name); } This is called by my main function.
Function Principal () {if (primepromise) return the prime minister / if the prime minister was loaded before the post, just give it back to Prime Minister = $ q.all ([getLookups ()] ). Then (extendMetadata). Then (success); Return Prime Minister; Function success () {setLookups (); Log ('data priority'); } I'm sure the problem is with the air call. Is there any insight into how to fix this? Thank you for your support community.
Nick
Here is the query query information:
function set indicator () {var entityNames = {personnel: personnel}, cto: 'cto' , kkeys: 'kkey', promotion: 'promotion', lo: 'lo'}; service.lookupCachedData = {ctos: _getAllLocal (entityNames.cto, 'ctodate') kkeys: _getAllLocal (entityNames.kkeys, 'keystamp'), promotion: _getAllLocal (entityNames.promotion, 'pdate'), loas: _getAllLocal (entityNames.loa , 'lstrdte')}} function _getAllLocal (resource, order) {EntityQuery.from (resource). Return (command) .using (manager) .executeLocally (); } function getLookups () {EntityQuery.from ('Lookup') using (Manager) .execute (). Then (querySusceeded, _queryFailed) from function query field (data) {log ('recover [lookup] from remote data source', data, true); Back true; }} Function _queryFailed (error) {var msg = config.appErrorPrefix + 'Error retrieving data from errorquery' error. message; Log error (msg, error); Throw error; }
You have to pass in the string to type in the attribute. Sorry i remembered for the first time
MetadataStore.GettyType ('CTO'); In addition to this, when you are trying to call Set () function, but the name of the functions is set () and this is also a keyword that you are not trying to override.
Comments
Post a Comment