# Account values in multiple reconciliations

**URL:** <https://community.silverfin.com/t/account-values-in-multiple-reconciliations/574>\
**Category:** Templates\
**Tags:** drops, drop\_period\
**Created:** [January 8, 2018, 2:30pm UTC](https://community.silverfin.com/t/account-values-in-multiple-reconciliations/574 "2018-01-08T14:30:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![marnixcoudre](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@marnixcoudre](https://community.silverfin.com/u/marnixcoudre)\
**Post date:** [January 8, 2018, 2:30pm UTC](https://community.silverfin.com/t/account-values-in-multiple-reconciliations/574/1 "2018-01-08T14:30:31Z")

</div>

Dear,

We have in one reconciliation the option to drag and drop accounts (the code below).

```auto
{% assign accounts_a = period.accounts | range: custom.accounts.a %}
{% input custom.accounts.a as:account_collection range:0,6,7 %}

|:-4%--|:-42%-------|--15%---:|:-8%---:|--15%--:|--12%---:|-4%--:+{%for account in accounts_a %}
{% stripnewlines %}
|
|{% ic %}&nbsp;&nbsp;{% endic %}{{ account.link }}
|{%=$1+ account.value %}

```

Once the user has made a selection of certain accounts I want to display (without capture) the same selection of accounts in another template. I have tried the code below in the second template but it doesn’t work.

```auto
{%for account in accounts_a %}
|----------------
|{{ account.link }}
|{{ account.value }}{% endfor %}

```

Could anyone please help me with this matter?

Thanks!

---

<div class="post-metadata">

**Author:** ![Jelle](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/jelle/32/246_2.png) [@Jelle](https://community.silverfin.com/u/Jelle)\
**Post date:** [January 9, 2018, 8:32am UTC](https://community.silverfin.com/t/account-values-in-multiple-reconciliations/574/2 "2018-01-09T08:32:36Z")

</div>

Hi Marnix,

You can refer to specific selections in variables by using the following reconciliation in the other template:

period.reconciliation.handle.custom.accounts.a

The ‘handle’ within this variable, depends on the handle you’ve set for your template.  
These handles can be managed/assigned within your templates:

 ![19](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/62c1a25795ac8b925f72c53211fabf0428dd775c.png)

 ![handle_reconciliation](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/65956335393183f0a3f5162c23af5bdd5b422436.png)

Does this help you further?

---

<div class="post-metadata">

**Author:** ![marnixcoudre](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@marnixcoudre](https://community.silverfin.com/u/marnixcoudre)\
**Post date:** [January 9, 2018, 11:03am UTC](https://community.silverfin.com/t/account-values-in-multiple-reconciliations/574/3 "2018-01-09T11:03:10Z")

</div>

Hi Jelle,

Your below code doesn’t work.

Is it possible to take a look into my code to see what solution should work?

Kind regards,

Marnix

---

<div class="post-metadata">

**Author:** ![Jelle](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/jelle/32/246_2.png) [@Jelle](https://community.silverfin.com/u/Jelle)\
**Post date:** [January 9, 2018, 12:47pm UTC](https://community.silverfin.com/t/account-values-in-multiple-reconciliations/574/4 "2018-01-09T12:47:49Z")

</div>

Hi Marnix,

I seem to have missed the ‘s’ in reconciliation above, the correct naming convention is:

period.reconciliation **s**.handle.custom.accounts.a

I’ve made a similar case in my own environment, and adjusted both scripts a bit:

```auto
{% assign accounts_a = period.accounts | range: custom.accounts.a %}
{% input custom.accounts.a as:account_collection range:0,6,7 %}

{%for account in accounts_a %}
|:-4%--|:-42%-------|--15%---:|:-8%---:|--15%--:|--12%---:|-4%--:+
||{% ic %}&nbsp;&nbsp;{% endic %}{{ account.link }}|{%=$1+ account.value %}

{%endfor%}

```

You can then use the following script to fetch the selected accounts, in which you use the reconciliation to define your range:

```auto
{% assign accounts = period.accounts | range:period.reconciliations.marnix_test.custom.accounts.a %}
{%for account in accounts %}

|-------40%-------|------:+
|{{ account.link }}|{{ account.value }}
{% endfor %}

```

Does this work for you?

---

<div class="post-metadata">

**Author:** ![marnixcoudre](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@marnixcoudre](https://community.silverfin.com/u/marnixcoudre)\
**Post date:** [January 9, 2018, 2:29pm UTC](https://community.silverfin.com/t/account-values-in-multiple-reconciliations/574/5 "2018-01-09T14:29:21Z")

</div>

Yes it works.

Thanks a lot!
