Forum Discussion
cpunnett
Helper II
7 years agoHTML viewer to show filter selections
I'm trying to show selected filters like this: So if the user selects more than one criteria, for example Years or states it comma delimits a list of the selections. I have a measure that doe...
cpunnett
Helper II
7 years agoThis is my table column for the HTML
Filters =
VAR
MainDivFormatting = "display:inline-block;float:left;width:248px;height:160px;margin-left:4px;margin-right: 8px;margin-bottom:4px;"
VAR
TableFormatting = "font-size:8px;border: 1px black solid;border-radius:4px;margin-bottom: 16px; "
VAR
LeftCellFormatting = "padding: 4px;background-color:white;width:48px;max-width:48px;text-align:right;border-top: 1px solid #DDD;"
VAR
RightCellFormatting = "padding: 4px;font-weight:bold;background-color:#EEE;width:200px;border: 1px solid #CCC;"
RETURN
"<div style='" & MainDivFormatting & "' >" &
"<table style='" & TableFormatting & "' >" &
"<tr><td style='" & LeftCellFormatting & "' >States:</td><td style='" & RightCellFormatting & "' > " & [State Filter] & "</td></tr>" &
"<tr><td style='" & LeftCellFormatting & "' >Products:</td><td style='" & RightCellFormatting & "' > " & [Product Filter] & "</td></tr>" &
"<tr><td style='" & LeftCellFormatting & "' >Years:</td><td style='" & RightCellFormatting & "' > " & [Year Filter] & "</td></tr>" &
"<tr><td style='" & LeftCellFormatting & "' >Insureds:</td><td style='" & RightCellFormatting & "' >" & [Insured Filter] & "</td><tr>" &
"</table>" &
"</div>"