# How to use handles

**URL:** <https://community.silverfin.com/t/how-to-use-handles/658>\
**Category:** Templates\
**Tags:** references, result\
**Created:** [February 19, 2018, 2:34pm UTC](https://community.silverfin.com/t/how-to-use-handles/658 "2018-02-19T14:34:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bart\_Verhaeghe](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@Bart\_Verhaeghe](https://community.silverfin.com/u/Bart_Verhaeghe)\
**Post date:** [February 19, 2018, 2:34pm UTC](https://community.silverfin.com/t/how-to-use-handles/658/1 "2018-02-19T14:34:57Z")

</div>

Hi, if I define a variable with a certain value in a reconciliation template (such as ‘Verworpen Uitgaven’ in the following way:

{% assign var\_a = 0.50 %}

and the template has a handle (here ‘verworpen\_uitgaven’), how can I use that variable var\_a in another template (example: {%assign var\_b = var\_a | plus: 1 %}? Can you give a concrete example with code please?

Thanks!

---

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [February 19, 2018, 8:32pm UTC](https://community.silverfin.com/t/how-to-use-handles/658/2 "2018-02-19T20:32:38Z")

</div>

Hello @Bart_Verhaeghe,

First, you’ll have to add a `result-tag` in the template where the variable is generated :

```auto
{% assign var_a = 0.50 %}

{% result "var" var_a %}

```

So, `var` is sort of a shortcut you can use (that’s the use of the `result-tag`.

Now, the value of that variable can be shown by this code :

```auto
{{ period.reconciliations.verworpen_uitgaven.results.var }}

```

Is this what you’re going for? Do you feel this kind of information is missing from our documentation (the slides of the workshop)?

---

<div class="post-metadata">

**Author:** ![Bart\_Verhaeghe](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@Bart\_Verhaeghe](https://community.silverfin.com/u/Bart_Verhaeghe)\
**Post date:** [February 20, 2018, 4:21pm UTC](https://community.silverfin.com/t/how-to-use-handles/658/3 "2018-02-20T16:21:07Z")

</div>

That’s it. Thanks! This kind of info does help when you are a firm believer in DRY :-).

---

<div class="post-metadata">

**Author:** ![Bart\_Verhaeghe](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@Bart\_Verhaeghe](https://community.silverfin.com/u/Bart_Verhaeghe)\
**Post date:** [March 6, 2018, 2:17pm UTC](https://community.silverfin.com/t/how-to-use-handles/658/4 "2018-03-06T14:17:53Z")

</div>

Hi Sven,

A follow-up question here (if you want me to create an additional topic here, just say so). What would change in the code mentioned above if we’re talking about ‘account templates’ (such as ‘geldbeleggingen’) instead of reconciliation templates?

Thanks!

---

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [March 6, 2018, 2:23pm UTC](https://community.silverfin.com/t/how-to-use-handles/658/5 "2018-03-06T14:23:48Z")

</div>

Hi @Bart_Verhaeghe,

You mean how to call for objects that are made in an account template? Because that was answered here already for you, no?

> [@CASE: how to display details of an account in a text template?](https://community.silverfin.com/t/case-how-to-display-details-of-an-account-in-a-text-template/275/4):
>
> Hi @Bart_Verhaeghe, This is a little more tricky, because the details of the account template “Geplaatst kapitaal” are not saved in the current\_account.details but in regular custom collections. Almost all the account templates have their details saved in details while being “attached” to the current\_account, except for the first made templates by Silverfin. To get to those details that are saved in a custom collection, you’ll have to do this : {% assign current\_account = #100000 | first %} …

If not, then it’s indeed a good option to make a new topic, because it’s not related to the main topic of this one 🙂

---

<div class="post-metadata">

**Author:** ![Bart\_Verhaeghe](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@Bart\_Verhaeghe](https://community.silverfin.com/u/Bart_Verhaeghe)\
**Post date:** [March 7, 2018, 9:33am UTC](https://community.silverfin.com/t/how-to-use-handles/658/6 "2018-03-07T09:33:18Z")

</div>

My apologies … that’s what happens when you’re trying to do 3 things at once and when you’re not a woman :-).

---

<div class="post-metadata">

**Author:** ![Bart\_Verhaeghe](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@Bart\_Verhaeghe](https://community.silverfin.com/u/Bart_Verhaeghe)\
**Post date:** [March 7, 2018, 10:35am UTC](https://community.silverfin.com/t/how-to-use-handles/658/7 "2018-03-07T10:35:53Z")

</div>

Hi Sven,

A related question: for which account templates (being the first ones made by Silverfin) are the details listed in a custom collection? Is it possible to give an exhaustive list?

Thanks!

---

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [March 7, 2018, 10:42am UTC](https://community.silverfin.com/t/how-to-use-handles/658/8 "2018-03-07T10:42:24Z")

</div>

I can only speak for the standard templates from Silverfin (the ones from the template shop) @Bart_Verhaeghe, and those are the only ones :

- Geplaatst Kapitaal
- Deelnemingen
