I think I could not explain well the issue. Let's try again.
I've got a view where I show a Grocery CRUD that need to have the set_relation active because help valorize some of the fields of the form. Let's say
----------------------------
| id | id_store | my_value |
----------------------------
The ID is hidden, ID_STORE is the field with relation setted to the store table. In this way, while adding / editing, is quite easy choosing the right "id" selecting the store from a dropdown menu.
When I export this data, I need to export the original ID_STORE and not the name, because I need to "upload" this csv / xls in a different web app. Actually, the system is exporting not the ID_STORE, but the related "view" for the relation (STORE_NAME). I need to export the ID_STORE field, like when you do a "dump" of the mySQL related table.
I actually download
------------------------------------------------
| 1 | san francisco store 1 | text valorized 1 |
------------------------------------------------
| 1 | san francisco store 2 | text valorized 2 |
------------------------------------------------
| 1 | chicago store 1 | text valorized 3 |
------------------------------------------------
but I would like to download
----------------------------
| 1 | 1 | text valorized 1 |
----------------------------
| 1 | 2 | text valorized 2 |
----------------------------
| 1 | 3 | text valorized 3 |
----------------------------
I hope I've been more clear now.
Thanks a lot.