Hi
This should be simple but can’t find a way to do it.
Have a datamapper with x number Records showing pdf files and directories.
Have a design template.
The Design template should show all records on the same page, invalid pdf files should be shown in red color. ?
It works fine now, but I get a page for each record - want on page with all records.
I have a made a table where I have placed the record names.
https://learn.objectiflune.com/qa-blobs/3359767519442101080.ol-template
https://learn.objectiflune.com/qa-blobs/12692926367816008468.ol-template
The default behavior for a CSV data mapping is to use one line per record. One record then becomes one document with a minimum of one page. With a default data mapping, the only way to get more than one ‘record’ on a single page is to use imposition.
Of course, if you modify your boundary trigger in the data mapping, you can have as many lines of the CSV in your record as you want. For example, if you have a multiline invoice where each line has an invoice number and a line item, you could set your boundary trigger to be “On Change” and look at the invoice number. Every time the invoice number changes results in a new record, meaning line items for a single invoice are all included in your record for that invoice.
In your case, without seeing your data and assuming you truly want every line of your CSV to become a single record, you could use the “On Field Value” trigger. This requires an expression to use as one of the operators in a condition. If I want to show every line in one record, I just need to point it to look at any particular column in the CSV and give the expression a value that doesn’t match anything in that column.
See the image below for a simple example. My On Field Value trigger is looking at Header1 for the word ‘anything’. It never finds it, so it keeps all of the rows in a single record.