Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Using Repeaters/Groupings in Word Layouts

(0) ShareShare
ReportReport
Posted on by 35

Hello all, 

I'm trying to figure out how to use repeaters/groupings for line items when working with a custom report layout in Microsoft word format. 

As of now, I'm under the impression that the columns coming from your VS Code need to be under the same dataitem to be repeated together. For example:

pastedimage1668702125626v1.png

This code allows me to apply a repeater from the dataitem those columns are under. 

On the other hand, when I have multiple columns from different dataitems (linked) -- the repeater doesn't like to pull in items that aren't a direct column in it's dataitem. For example: 

pastedimage1668702720988v2.png

If I applied the repeater based on "Prod. Order Line", it wouldn't repeat "Operation No", "Work Center No" and so on...

Can anyone give me a rule of thumb or specific instructions on how to format code to make repeaters work best -- or how to use repeaters (or some other function?) better in word to get things to repeat better/in unison?

Thanks!

Chris

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 995 Super User 2024 Season 1 on at
    RE: Using Repeaters/Groupings in Word Layouts

    The looping or repeating will happen in the way the data item links are defined.

    So if you have 3 data items linked

    DataItem1

     DataItem2

       DataItem3

    Then for every Item1 it will repeat through every item2 and for every item2 it will loop through every item3.

    Was that of any help?

    If not maybe you can share the complete code for your report?

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,274 Super User 2024 Season 1 on at
    RE: Using Repeaters/Groupings in Word Layouts

    hi

    look this

    learn.microsoft.com/.../devenv-howto-report-layout

    DAniele

  • Suggested answer
    Andy Sather Profile Picture
    Andy Sather on at
    RE: Using Repeaters/Groupings in Word Layouts

    Hello  - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    I will open this up to the community in case they have something to add.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,817 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans