How to embed HTML in an expression rule

Certified Associate Developer

Hi all ,

I have to generate a table with the help of html . Is there any way to create . Please let me know know the ways

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Associate Developer
    in reply to Harshit Bumb (Appyzie)

    a!localVariables(
    local!data:rule!T_createDictionary(final: null),
    local!titles:{"Name","Age"},
    local!startTable:"<table>",
    local!closeTable:"</table>",
    local!startRowtitle:"<td>",
    local!closeRowtitle:"</td>",
    local!startRowitemTitle:"<tr>",
    local!closeRowItemTitle:"</tr>",
    local!startRow:"<tr>",
    local!closeRow:"/tr>",
    local!startItemRow:"<td>",
    local!closeItemrow:"</td>",
    local!output:
    {
    local!startTable & local!startRow & joinarray(
    a!forEach(
    items: local!titles,
    expression: {
    local!startRowtitle & fv!item & local!closeRowtitle
    }

    ),
    ""
    ) & local!closeRow & joinarray(
    a!forEach(
    items: local!data,
    expression:
    /*items with data*/
    local!startRow & local!startItemRow & " " & index(
    fv!item,
    "name",
    null
    ) & local!closeItemrow

    )
    )
    },

    local!output


    )

Children