IC SunsetThe developerWorks Connections platform will be sunset on December 31, 2019. On January 1, 2020, this forum will no longer be available. More details available on our FAQ.
Topic
  • 1 reply
  • Latest Post - ‏2019-09-23T10:19:43Z by QuikJean
VishwaV
VishwaV
2 Posts

Pinned topic Hide few columns in table coach view of bpm ui

‏2019-09-04T00:50:28Z |

Hello,

I need some help to hide Hide few columns in table coach view of bpm ui tookit. Please suggest few ways out.

Thanks

  • QuikJean
    QuikJean
    133 Posts

    Re: Hide few columns in table coach view of bpm ui

    ‏2019-09-23T10:19:43Z  

    We have this piece of code for a Service Data Table that I think should work the same for a Table control

    // possible values
    var visible = "N"; // when hidden
    var visible = "R"; // when visible
    
    var table = page.ui.get("ReplaceWithControlIdOfYourTable");
    var columns = table.getColumns();
    console.log(columns);
    
    for (var i=0; i<columns.length; i++)
    {
            if (columns[i]["dataElementName"] == "ReplaceWithNameOfTheColumn")
            {
                    columns[i]["visibility"] = visible;
            }
    }
    table.setColumns(columns);
    table.refresh();