ExcludeFromGrid – XpressDox

Display items in a grid repeat in your XpressDox template, but exclude certain of them from the initial grid capture

This command is used in conjunction with CaptureInGrid when there are too many elements inside the repeat for all of them to be displayed as a grid, but it is also not desirable to display the repeat in the traditional way.


«ForEach(Child)»
«FirstName»
«LastName»
«FormatDate(DOB,’d mmmm yyyy’)»
«School»
«Hobby»
«Pet»
«MotherName»
«FatherName»
«ExcludeFromGrid(MotherName,FatherName,Hobby,Pet)»
«End()»
«CaptureInGrid(Child)»

The above snippet would look like this in the interview. Clicking on the button shown in the screenshot would show the expanded view.

XpressDox Document Automation Software ExcludeFromGrid on interview

Expanded view:

XpressDox Document Automation Software expanded view of interview

In the XpressDox Classic interview, the <Right-Click> menu has an Expanded View entry.

Although there is an argument to be made that grids should be used only when the repeater contains fewer data elements, this expanded view of a repeating grid item is available, which shows the controls in a vertical layout, one under the other. This means, amongst others, that controls need not be restricted in width.

 

Note that the ExcludeFromGrid command should be inside the ForEach command.

 

Related articles:

CaptureInGrid

Repeating data

Repeating data (part 2)