# ID vom aktuellen Blog in tieferem ExtJS

**URL:** https://forum.shopware.com/t/id-vom-aktuellen-blog-in-tieferem-extjs/45151
**Category:** Programmierung
**Created:** [10. April 2017 um 16:14 UTC](https://forum.shopware.com/t/id-vom-aktuellen-blog-in-tieferem-extjs/45151 "2017-04-10T16:14:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Sheppard](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@Sheppard](https://forum.shopware.com/u/Sheppard)
#### Post date: [10. April 2017 um 16:14 UTC](https://forum.shopware.com/t/id-vom-aktuellen-blog-in-tieferem-extjs/45151/1 "2017-04-10T16:14:23Z")

</div>

Hallo,

ich überschreibe gerade den Options bereich im Blog im Backend, nun brauche ich für das Speichern der Attribute die ID vom aktuellen Blog. Wie erhalte ich diese ?  
Und ist folgender Code richtig um das zu speichern ?

&nbsp;

```
                Ext.Ajax.request({
                    method: 'POST',
                    url: '{url controller=AttributeData action=saveData}',
                    params: {
                        _foreignKey: me.record.get('id'),
                        _table: 's_blog_attributes',
                        __attribute_ec_CategoryId: newValue
                    }
                });

```

&nbsp;
