Hi,
I create some custom types and , using API, I store it. All the types correctly 
appear in the UI.

The problem appear when I try to visualize in the UI an entity of a custom type.

I get this JS error:

DetailPageLayoutView.js?bust=1542737703263:111

Uncaught TypeError: Cannot read property 'position' of undefined
    at DetailPageLayoutView.js?bust=1542737703263:111
    at underscore-min.js?bust=1542737703263:1
    at Function.s.map.s.collect (underscore-min.js?bust=1542737703263:1)
    at Function.s.sortBy (underscore-min.js?bust=1542737703263:1)
    at N.d.<anonymous> (DetailPageLayoutView.js?bust=1542737703263:110)
    at s (backbone-min.js?bust=1542737703263:1)
    at r (backbone-min.js?bust=1542737703263:1)
    at m (backbone-min.js?bust=1542737703263:1)
    at N.d.k.trigger (backbone-min.js?bust=1542737703263:1)
    at N.d.reset (backbone-min.js?bust=1542737703263:1)



The error is here in the JS code:

                        var valueSorted = 
_.sortBy(collectionJSON.attributes.columns, function(val) {
                            return val.attributes.position; /* attributes is 
undefined */
                        });


If a create e DataSet instance everything works, so I think the problem is 
related to my type.


Thanks for your time 😊

BR

Emiliano Carlesi

Email: [email protected]<mailto:[email protected]>
Skype for Business: 
[email protected]<mailto:[email protected]>
Skype: emiliano.carlesi
Mobile: +39 3487837153
Phone: +39 0650939115
[logo-firma]
Le informazioni contenute nella presente comunicazione e i relativi allegati 
contenuti in questo messaggio sono strettamente riservate ed esclusivamente 
indirizzate al destinatario indicato. Vogliate tener presente che qualsiasi 
uso, riproduzione o divulgazione di questo messaggio è vietata. Nel caso in cui 
aveste ricevuto questa mail per errore, vogliate cortesemente avvertire il 
mittente e distruggere il presente messaggio. La diffusione, distribuzione e/o 
copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal 
destinatario è proibita, sia ai sensi dell’art. 616 c.p. , che ai sensi del 
Regolamento UE 679/2016

Reply via email to