Question
Docx from Dynamic template with table of empty data not showing table headers
Hi All,
I have a template document where it has 3 statements and then a table which will display data . But if the data is empty, the table header is also not displaying . But I need the output doc to display the template. table with header row showing no data available. Is this possible, Please suggest some solutions.
a!localVariables(
local!queryXML: if(
toboolean(ri!isFormat)=true(),
ri!data,
a!forEach(
items: reject(fn!isnull,{ri!data}),
expression:
" "
)
),
if(
a!isNullOrEmpty(ri!data),
"",
if(
toboolean(ri!isSplit)=true(),
local!queryXML,
""&
""&ri!product&" "&
""&rule!DIL_testNewDateFormat(date: ri!dateFrom)&" to "&rule!DIL_testNewDateFormat(date: ri!dateTo)&" "&
""&ri!type&" listing "&
if(
ri!type = "Unblinded",
"Unblinded Safety Data : Do not share with blinded study personnel ",
" "
)&
local!queryXML&
" "
)
)
)see attachment/resized-image/__size/640x480/__key/communityserver-discussions-components-files/19/pastedimage1725976361949v1.png