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:
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:
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
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?
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.
I will open this up to the community in case they have something to add.
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,817
Most Valuable Professional
nmaenpaa
101,156