# Extjs Artikel Suche

**URL:** <https://forum.shopware.com/t/extjs-artikel-suche/33875>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [25. Januar 2016 um 10:42 UTC](https://forum.shopware.com/t/extjs-artikel-suche/33875 "2016-01-25T10:42:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![an999](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@an999](https://forum.shopware.com/u/an999)\
**Post date:** [25. Januar 2016 um 10:42 UTC](https://forum.shopware.com/t/extjs-artikel-suche/33875/1 "2016-01-25T10:42:57Z")

</div>

Hallo, aus meinem „Model“ wird eine Form mit Feldern generiert. Wie kann ich statt dem normalem Eingabe Feld, ein Artikel Suchfeld anzeigen lassen? [color=orange]//model/main.js[/color] ` Ext.define('Shopware.apps.Test.model.Main', { extend: 'Shopware.data.Model', configure: function() { return { controller: 'Test', detail: 'Shopware.apps.Test.view.detail.Container' }; }, fields: [{ name: 'id', type: 'int', useNull: true }, { name: 'number', type: 'string', useNull: false}] }); ` [color=orange]//view/detail/container.js[/color] ` Ext.define('Shopware.apps.Test.view.detail.Container', { extend: 'Shopware.model.Container', padding: 20, configure: function() { return { controller: 'Test' }; }, }); ` [color=orange]//Bsp.:[/color] ` createArticleSearch: function() { var me = this; return Ext.create('Shopware.form.field.ArticleSearch', { name: 'number', fieldLabel: me.snippets.articleSearch, returnValue: 'name', hiddenReturnValue: 'number', articleStore: Ext.create('Shopware.store.Article'), allowBlank: false, getValue: function() { return this.getSearchField().getValue(); }, setValue: function(value) { this.getSearchField().setValue(value); } }); }, `

---

<div class="post-metadata">

**Author:** ![nitrox](https://avatars.discourse-cdn.com/v4/letter/n/8797f3/32.png) [@nitrox](https://forum.shopware.com/u/nitrox)\
**Post date:** [5. April 2016 um 15:53 UTC](https://forum.shopware.com/t/extjs-artikel-suche/33875/2 "2016-04-05T15:53:20Z")

</div>

Würde mich auch Interessieren. Hast du dazu bereits eine Lösung?
