# extjs4 view id anzeigen

**URL:** <https://forum.shopware.com/t/extjs4-view-id-anzeigen/54037>\
**Category:** Programmierung\
**Created:** [12. Juli 2018 um 08:27 UTC](https://forum.shopware.com/t/extjs4-view-id-anzeigen/54037 "2018-07-12T08:27:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wontfix](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@wontfix](https://forum.shopware.com/u/wontfix)\
**Post date:** [12. Juli 2018 um 08:27 UTC](https://forum.shopware.com/t/extjs4-view-id-anzeigen/54037/1 "2018-07-12T08:27:45Z")

</div>

wie zeigen wir die model field “id” in shopware/extjs4 list und detail view?  
(soll natürlich nur readonly sein)

---

<div class="post-metadata">

**Author:** ![wontfix](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@wontfix](https://forum.shopware.com/u/wontfix)\
**Post date:** [12. Juli 2018 um 08:45 UTC](https://forum.shopware.com/t/extjs4-view-id-anzeigen/54037/2 "2018-07-12T08:45:03Z")

</div>

hier ist wo in list view die id ignoriert wird [shopware/Shopware.grid.Panel.js at 5.4 · shopware/shopware · GitHub](https://github.com/shopware/shopware/blob/5.4/themes/Backend/ExtJs/backend/base/application/Shopware.grid.Panel.js#L1177)

```
if (model.idProperty === field.name) {
	return null;
}

```

es würde reichen wenn ich einfach diese feature/bug entfernen könnte. aber dafür müsste ich die komplette createColumn() funktion ersetzten. gibt es da kein einfacheren weg?

---

<div class="post-metadata">

**Author:** ![wontfix](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@wontfix](https://forum.shopware.com/u/wontfix)\
**Post date:** [12. Juli 2018 um 11:16 UTC](https://forum.shopware.com/t/extjs4-view-id-anzeigen/54037/3 "2018-07-12T11:16:56Z")

</div>

hahaa, a wild workaround appears!

addiere folgende field in deine extjs model:

```
{
	name : 'Id',
	mapping: 'id',
	persist: false
}

```

und dank der fehlenden type ist es sogar readonly in detail view.
