1 Reply Latest reply on Jun 21, 2017 2:56 AM by Ankit Gupta RSS
    bgupta Apprentice

    Unable to show html on list

    Dear Team,

     

    I am unable to show html on list using infotable whose related datashape has html filed.

     

     

    Service which put data in infotable

     

    var params = {

        dataShapeName : "BMS_Menu_Options_DataShape",

        infoTableName : "BMS_Menu_Options_Info_tbl"

    };

     

     

    // CreateInfoTableFromDataShape(dataShapeName:STRING, infoTableName:STRING("")):INFOTABLE

    var menuOptionInfoTbl = Resources['InfoTableFunctions'].CreateInfoTableFromDataShape(params);

     

     

    var energy_status_icon = '<img src="/Thingworx/MediaEntities/BMS_Energy_Management_Icon">';

    var data1 = new Object();

    data1.Name = 'Energy_Management';

    //data1.Description = "<span>"+'ENERGY MANAGEMENT'+ "</span> " + energy_status_icon;

    data1.Description = 'ENERGY MANAGEMENT';

    menuOptionInfoTbl.AddRow(data1);

     

     

    var alarmAlert_status_icon = '<img src="/Thingworx/MediaEntities/BMS_Security_Solution">';

    var data2 = new Object();

    data2.Name = 'ALARMS_ALERTS';

    //data2.Description = "<span>"+'ALARMS & ALERTS'+ "</span> " + alarmAlert_status_icon;

    data2.Description = 'ALARMS & ALERTS';

    menuOptionInfoTbl.AddRow(data2);

     

     

    var crac_status_icon = '<img src="/Thingworx/MediaEntities/BMS_Automation_Icon">';

    var data3 = new Object();

    data3.Name = 'CRAC';

    //data3.Description = "<span>"+'CRAC'+ "</span> " + crac_status_icon;

    data3.Description = 'CRAC';

    menuOptionInfoTbl.AddRow(data3);

     

     

    var ups_status_icon = '<img src="/Thingworx/MediaEntities/BMS_Automation_Icon">';

    var data4 = new Object();

    data4.Name = 'UPS';

    //data4.Description = "<span>"+'UPS'+ "</span> " + ups_status_icon;

    data4.Description = 'UPS';

    menuOptionInfoTbl.AddRow(data4);

     

     

    var data5 = new Object();

    data5.Name = 'FIRE_ALARMS';

    data5.Description = 'FIRE ALARMS';

    menuOptionInfoTbl.AddRow(data5);

     

     

    var result = menuOptionInfoTbl;

     

    -----------------------------------------------

     

    view of datashape BMS_Menu_Options_DataShape.  Data shape has two field name and description in whicg description has html type

     

     

     

     

     

    when I am rendering this infotable on list I am seeing like some   below : What is problems ??