# Export disclosures

**URL:** <https://community.silverfin.com/t/export-disclosures/759>\
**Category:** Exports\
**Tags:** export, drops, for\_loop, drop\_period\
**Created:** [March 22, 2018, 8:59am UTC](https://community.silverfin.com/t/export-disclosures/759 "2018-03-22T08:59:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![svalais](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/svalais/32/2422_2.png) [@svalais](https://community.silverfin.com/u/svalais)\
**Post date:** [March 22, 2018, 8:59am UTC](https://community.silverfin.com/t/export-disclosures/759/1 "2018-03-22T08:59:53Z")

</div>

Hello,

We have created a style where we export all the disclosures available in a dossier.

The problem is that the unstared disclosures also are esported.

Wat can we change in the following code to do this?

``{% capture sf\_default\_detail\_template %}  
{% raw %}  
{% unless current\_account.details.count == 0 and current\_account.value == 0 %}  
{% for detail in current\_account.details %}{% if forloop.first %}|-----|----14%-----:|-----14%------:+{% endif %}  
| {{detail.title}}{% if detail.description != blank %}  
{{detail.description | multiline\_table}}{% endif %}{% if detail.custom.document %}  
{% input detail.custom.doc as:file %}{% endif %} |{% if current\_account.liability\_or\_income %}{{-1\*detail.value | currency}}{% else %}{{detail.value | currency}}{% endif %}| &nbsp; {% endfor %}  
{% endunless %}  
{% endraw %}  
{% endcapture %}

{% for account\_or\_text in period.reconciliations %}

{% if account\_or\_text.is\_account %}

{% if forloop.first %}  
{% if new\_page %}{% newpage account\_or\_text.preferred\_orientation %}{% endif %}{% assign new\_page = true %}  
{% changeorientation account\_or\_text.preferred\_orientation %}  
{::group}  
{% else %}  
{% changeorientation account\_or\_text.preferred\_orientation %}  
{::group}  
{% endif %}

|------------|------15%------:+0097A9  
| {{ account\_or\_text.number }} {{ account\_or\_text.name }} | {{ account\_or\_text.value | currency }}

{{ account\_or\_text.rendered\_template }}

  

{:/group}

{% else %}

{% if forloop.first %}  
{% if new\_page %}{% newpage account\_or\_text.preferred\_orientation %}{% endif %}{% assign new\_page = true %}  
{% changeorientation account\_or\_text.preferred\_orientation %}  
{::group}  
{% else %}  
{% changeorientation account\_or\_text.preferred\_orientation %}  
{::group}  
{% endif %}

|--------  
| **{{ account\_or\_text.name }}**

{{ account\_or\_text.rendered\_template }}

  

{:/group}

{% endif %}

{% endfor %}``

Thanks,

Sylvie

---

<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 26, 2018, 11:52am UTC](https://community.silverfin.com/t/export-disclosures/759/2 "2018-03-26T11:52:21Z")

</div>

Hello @svalais,

You pasted your code not the right way (seen this before - you can see how it should be done [here](https://community.silverfin.com/t/how-to-paste-your-code-in-a-community-post/64) :

I always do 3 backticks, then ENTER ENTER then pasting my code and ENTER ENTER followed again by 3 backticks. Could you try that in the future? Let me know if that doesn’t work for you).

Back on topic:

I think it’s better to call on this :

```auto

{% for account_or_text in export.selected_accounts_and_reconciliation_texts.8 %} 

```

instead of

```auto

{% for account_or_text in period.reconciliations %} 

```

That last is just calling on the details of recon templates; the first let’s you actually decide in the background that unstarred recon details shouldn’t be exported.

---

<div class="post-metadata">

**Author:** ![svalais](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/svalais/32/2422_2.png) [@svalais](https://community.silverfin.com/u/svalais)\
**Post date:** [March 29, 2018, 9:53am UTC](https://community.silverfin.com/t/export-disclosures/759/3 "2018-03-29T09:53:28Z")

</div>

Hello,

When I use your code I only have the starred reconciliations with a red triangle or green circle but not the starred reconciliations with grey or yellow square.

Can you help me?

Can I also use the same code for {% for account\_or\_text in period.accounts %} to have only the starred accounts?

Thanks,

Sylvie

---

<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:** [April 2, 2018, 2:29pm UTC](https://community.silverfin.com/t/export-disclosures/759/4 "2018-04-02T14:29:17Z")

</div>

Hello @svalais,

It should show all starred recon templates with a virtual account number beginning with 8, no matter if you have a red triangle, green dot or yellow/grey square.

What code did you actually use? Are the recon templates with grey or yellow square by any chance missing a virtual account number?

---

<div class="post-metadata">

**Author:** ![svalais](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/svalais/32/2422_2.png) [@svalais](https://community.silverfin.com/u/svalais)\
**Post date:** [April 5, 2018, 1:18pm UTC](https://community.silverfin.com/t/export-disclosures/759/5 "2018-04-05T13:18:35Z")

</div>

Hello,

My question was which code I need to use to have an export of only starred disclosures and also starred accounts.

Thanks,

Sylvie

---

<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:** [April 5, 2018, 1:27pm UTC](https://community.silverfin.com/t/export-disclosures/759/6 "2018-04-05T13:27:44Z")

</div>

Hi @svalais,

Then you need to make a forloop over these drops / collections for the accounts :

```auto

{% for account_or_text in export.selected_accounts_and_reconciliation_texts.1__7 %}
...  
{% endfor %}

```

Above code is only for the accounts 1 till 7 then.

If you wish to add the disclosures as well (and I think there are recon templates with a certain virtual number, f.i. 85 ?), then you’ll need to create a second forloop as well :

```auto

{% for account_or_text in export.selected_accounts_and_reconciliation_texts.85 %}
...  
{% endfor %} 

```

Hope this is what you’re looking for; should work.

---

<div class="post-metadata">

**Author:** ![svalais](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/svalais/32/2422_2.png) [@svalais](https://community.silverfin.com/u/svalais)\
**Post date:** [January 24, 2019, 2:11pm UTC](https://community.silverfin.com/t/export-disclosures/759/7 "2019-01-24T14:11:02Z")

</div>

Hello,

My question is old and perhaps you have new solutions for this.

We are less working with a virtual number.

Do you have today a solution to export only the disclosures or accounts who are starred?

Thanks,

Sylvie

---

<div class="post-metadata">

**Author:** ![svalais](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/svalais/32/2422_2.png) [@svalais](https://community.silverfin.com/u/svalais)\
**Post date:** [March 1, 2019, 2:21pm UTC](https://community.silverfin.com/t/export-disclosures/759/8 "2019-03-01T14:21:11Z")

</div>

Hello,

Can you give me an answer please?

Thanks,

Sylvie

---

<div class="post-metadata">

**Author:** ![svalais](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/svalais/32/2422_2.png) [@svalais](https://community.silverfin.com/u/svalais)\
**Post date:** [March 5, 2019, 10:36am UTC](https://community.silverfin.com/t/export-disclosures/759/9 "2019-03-05T10:36:44Z")

</div>

Hello,

Can you give me a answer please?

Thanks,

Sylvie

---

<div class="post-metadata">

**Author:** ![borjaGonzalez](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/borjagonzalez/32/825_2.png) [@borjaGonzalez](https://community.silverfin.com/u/borjaGonzalez)\
**Post date:** [March 5, 2019, 11:37am UTC](https://community.silverfin.com/t/export-disclosures/759/10 "2019-03-05T11:37:01Z")

</div>

Hi Sylvie,

At the moment if an account or reconciliation template is not starred on the main working screen, it won’t appear on the export selection (see image below):

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

Could you specify where and how are your unstarred accounts being exported?

Best,  
Borja

---

<div class="post-metadata">

**Author:** ![svalais](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/svalais/32/2422_2.png) [@svalais](https://community.silverfin.com/u/svalais)\
**Post date:** [March 5, 2019, 1:44pm UTC](https://community.silverfin.com/t/export-disclosures/759/11 "2019-03-05T13:44:55Z")

</div>

Hi Borja,

In the file Valais Sylvie in the work file I have the following:

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

In the selection of the export with name “NL\_WF\_Toelichtingen” or the name “NL\_WF\_Toelichtingen TY2019”, you will see that these disclosures are not selected.

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

When I do an export of the export with name “NL\_WF\_Toelichtingen” or the name “NL\_WF\_Toelichtingen TY2019”, I have the Estimated taxes, Notional Interest deduction, … in my export.

Can you have a look please?

Thanks a lot,

Sylvie

---

<div class="post-metadata">

**Author:** ![borjaGonzalez](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/borjagonzalez/32/825_2.png) [@borjaGonzalez](https://community.silverfin.com/u/borjaGonzalez)\
**Post date:** [March 5, 2019, 3:27pm UTC](https://community.silverfin.com/t/export-disclosures/759/12 "2019-03-05T15:27:25Z")

</div>

Hi Sylvie,

I can see now what the issue is and I think I have found a solution. In your detail text I have replaced the following line:

```auto
{% for account_or_text in period.reconciliations %}

```

with this other:

```auto
{% for account_or_text in export.selected_accounts_and_reconciliation_texts %}

```

With the first statement the export was retrieving all the disclosures initially selected when you created the bundle but with the second we are telling the system to filter only the ones on the export selection. I have applied this change on “NL\_WF\_Toelichtingen" so double check if it works as expected and if so you can then apply the same change to your other bundle.

Best,  
Borja
