Is it possible for the number of cells in a Repeating Group to be determined from a field of an item.

Here’s some context:

I have a Data Type called Computer with a field type called Screen Count (Number). A Computer can have any number of Screens. e.g. 1, 2 or 3 - the Screen Count

I need to be able to record data for each screen in a log system.

Example:

- Computer A has 2 Screens
- Computer B has 1 Screen
- Computer C has 3 Screens.

I was thinking of using a Repeating Group to capture the data of each screen.

- If computer A is selected, the Repeating Group would have 2 cells, each with data inputs to capture and store for each screen.
- If computer B is selected, the Repeating Group would have 1 cell, each with data inputs to capture and store for each screen.
- If computer C is selected, the Repeating Group would have 3 cells, each with data inputs to capture and store for each screen.

If it is possible I’m guessing it’s something to do with how my expression is constructed in the Data Source but I can’t quite get it to work after trying a number of different combinations.

Any help would be appreciated.