Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Modifying table cells in Generated Document of Record

Avatar

Level 2

We would like to modify the Generated Document of Record table cells (AF_TABLEITEM_XFO) to be left-aligned rather than center-aligned. However, even though my paragraph settings are for left-justified, my results are still centered. 

 

Is there a way to set this? 

Thanks!

baronforo_0-1603752561548.pngbaronforo_1-1603752595104.png

 

8 Replies

Avatar

Level 4

I realize I'm replying to an old thread, but I'm running into a similar issue. The styles applied to AF_TABLEITEM_XFO in our Base DOR template do not seem to translate into the generated PDF. In my use case the user is filling in fields that are not in a table, but we've change the settings of that subform so that they'd display as a table in the generated DOR.  To my eyes it looks like it's taking the styling from the Text Field (AF_TEXTFIELD_XFO) and applying that to anything within the table's cells:

Text field styling in Base DOR template:

user01804_3-1680905149141.png

Table styling in Base DOR Template:

 

user01804_4-1680905183777.png

 


DOR Settings for subform:

user01804_0-1680904888113.png

 

How table appears in generated DOR:

user01804_2-1680905083586.png
Does anyone know how to get consistent table cell text styling that's distinct from the text field styling in automatically generated DOR's?

Avatar

Employee

Hello everyone, was this resolved? I've the same issue with table rows. The styling is not being applied to DoR output.

Avatar

Level 4

I haven't found a solution yet, I thought maybe updating to Sp16 would help, but tables still look the same in my custom DOR templates:

user01804_0-1691532646219.png

If I use the 'Default' template the table looks correct:

user01804_1-1691532838125.png

 




Avatar

Employee Advisor

@Gonzalo_Calandria @CR17506599 @baronforo 

We have recently made some enhancements on this front.

Now you can customize the components in the template as per your need (left and right alignment, color/RTE changes, etc.), use this updated template as a DoR template, and update the DoR config of these specific components to reflect these changes.

Avatar

Employee

Thanks for your answer @Pulkit_Jain_ but when you say "use this updated template"... which template? I don't see anyone to download, maybe you forgot to put it on your response?

 

Also I’ve finally figured out what was going on.. here’s the thing (for anyone with the same problem)… That table got built from a repeatable panel with a dropdown (first column) and a numeric field (second column). The formatting of the text inside the table rows (not headers) will depend on the field that is being used. In my case, I had to format the font, color or whatever I need to format in AF_DROPDOWNLIST_XFO instead of the text field in the table row. That’s not good but it’s how is working because if you need to style something inside a repeatable panel, then you need to format the same fields across the DoR

Avatar

Level 4

Yeah, it's very strange that styles for each field type (text, dropdown, etc.) have to be consistent across the DOR.

Avatar

Level 4

Is there any way you could post it on this page so that others can benefit?  Thank you so much!