Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
How can I make a striping table rows in Adv PDF templates?
Hi experts,
Anyone experienced adding striped table rows on their Adv. PDF templates?
I tried using nth-child() selector for CSS but It only applies the BG color to every cell in every table even if I set bg colors for odd/even rows.
I have also looked on this article from the help center: https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_N2866065.html#procedure_N2866098
<tr style="background-color: ${((item_index % 2)==0)?string('#ffffff', '#ccffcc')};">
but I'm not sure where does "item_index"came from.
Any feedback is appreciated. Thanks very much in advance!
0