# Unable to load detail window - record property missing

**URL:** https://forum.shopware.com/t/unable-to-load-detail-window-record-property-missing/63587
**Category:** Programmierung
**Created:** [16. Dezember 2019 um 16:39 UTC](https://forum.shopware.com/t/unable-to-load-detail-window-record-property-missing/63587 "2019-12-16T16:39:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![xaviergerard](https://avatars.discourse-cdn.com/v4/letter/x/e480ec/32.png) [@xaviergerard](https://forum.shopware.com/u/xaviergerard)
#### Post date: [16. Dezember 2019 um 16:39 UTC](https://forum.shopware.com/t/unable-to-load-detail-window-record-property-missing/63587/1 "2019-12-16T16:39:51Z")

</div>

Hi everyone,&nbsp;

I’m trying to build my first backend screen, and I’m struggling on a (stupid I guess) issue for a week now.&nbsp;

I have a window showing tranmission records (traces of a sending towards an external system), and each transmission can have one or several logs associated. Therefore, I build a list with the tranmsissions, and this is working fine.

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/4/47bb311af4b730a1341ee679e0ae3808cad84bb9.png)

However, when I click on the pencil to get the details, I always get the same message:&nbsp;

„Shopware.apps.TransmissionLogs.view.detail.Window: Component requires a passed Shopware.data.Model in the `record` property.“

I checked my code thousands of times and I’ve been looking everywhere, but I can’t figure out what’s wrong.&nbsp;

Here is my view/detail/window.js:&nbsp;

```
Ext.define('Shopware.apps.TransmissionLogs.view.detail.Window', {

    extend: 'Shopware.window.Detail',

    alias: 'widget.transmission-detail-window',

    title : 'Transmission Logs details',

    height: 270,

    width: 680,

    configure: function() {

        return {

            associations: ['logs'] ,   

            controller: 'TransmissionLogs',

            detail: 'Shopware.apps.TransmissionLogs.view.detail.Log'

        }

    } 

});

```

&nbsp;

Here is the /view/detail/Log.js:&nbsp;

```
Ext.define('Shopware.apps.TransmissionLogs.view.detail.Log', {

    extend: 'Shopware.grid.Association',

    alias: 'widget.transmission-detail-log-grid',

    title: 'Log',

    height: 300, 

    configure: function() {

        return {

            controller: 'TransmissionLogs',

            columns: {

                request: {            

                }

            }

        }

    }

 });

```

And here is the model/log.js, that I think I link correctly to the log.js detail window

```
Ext.define('Shopware.apps.TransmissionLogs.model.Log', {
    extend: 'Shopware.data.Model',
    configure: function() {
        return {
            related: 'Shopware.apps.TransmissionLogs.view.detail.Log'
        };
    },
    fields: [
        { name: 'id', type: 'int' },
        { name: 'orderId', type: 'int' }
    ]

});

```

&nbsp;

Can anyone tell me what I’m doing wrong?

Thank you!

&nbsp;

Xavier.

---

<div class="post-metadata">

### Author: ![xaviergerard](https://avatars.discourse-cdn.com/v4/letter/x/e480ec/32.png) [@xaviergerard](https://forum.shopware.com/u/xaviergerard)
#### Post date: [16. Dezember 2019 um 18:07 UTC](https://forum.shopware.com/t/unable-to-load-detail-window-record-property-missing/63587/2 "2019-12-16T18:07:48Z")

</div>

Ah, by the way: I found of course this in the tutorial here :&nbsp;[https://developers.shopware.com/developers-guide/backend-components/basics/](https://developers.shopware.com/developers-guide/backend-components/basics/)

&nbsp;

> The only requirement for this component is that you have to provide a property named&nbsp;`record`, which contains a&nbsp;`Shopware.data.Model`&nbsp;instance, while instancing the component. The detail window will be assembled automatically, based on the record.

This seems to be very related to the issue I have, however I have no clue on how I should provide this „record“ property, as in all examples I’ve seen, there’s no code about it, and that everything happens automatically.

Thanks,

Xavier.

---

<div class="post-metadata">

### Author: ![xaviergerard](https://avatars.discourse-cdn.com/v4/letter/x/e480ec/32.png) [@xaviergerard](https://forum.shopware.com/u/xaviergerard)
#### Post date: [20. Dezember 2019 um 08:19 UTC](https://forum.shopware.com/t/unable-to-load-detail-window-record-property-missing/63587/3 "2019-12-20T08:19:06Z")

</div>

Anyone an idea?&nbsp;

Or an idea of where I could find the answer? Is there some active Shopware community on Stackoverflow?

---

<div class="post-metadata">

### Author: ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)
#### Post date: [27. Dezember 2019 um 14:18 UTC](https://forum.shopware.com/t/unable-to-load-detail-window-record-property-missing/63587/4 "2019-12-27T14:18:58Z")

</div>

You passed the form. You need to pass the window

&nbsp;

detail:&nbsp;‘Shopware.apps.TransmissionLogs.view.detail.Window’
