# Getting joined data for widget scope

**URL:** <https://meta.discourse.org/t/getting-joined-data-for-widget-scope/42264>\
**Category:** Development\
**Created:** [Avril 8, 2016, 10:00 UTC](https://meta.discourse.org/t/getting-joined-data-for-widget-scope/42264 "2016-04-08T22:00:01Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)\
**Post date:** [Juillet 25, 2016, 10:02 UTC](https://meta.discourse.org/t/getting-joined-data-for-widget-scope/42264/14 "2016-07-25T10:02:02Z")

</div>

I’d like to follow this topic… In mentioned `poster-name` widget you have explained how to access User `custom_fields`.

From the same widget I’d like to access columns in `user_stats` table instead.

I know that any of `user_stats` variables needs to be passed to widget as `attrs` so I’d like to extend underlying functions.

I believe that the data source is `post_serializer.rb` and then also `transform-post.js.es6` creates `attrs` in `transformBasicPost(post)`.

This doesn’t work, I must be missing something… Thx in advance.

---

_[View the full topic](https://meta.discourse.org/t/getting-joined-data-for-widget-scope/42264)._
