Activity Forums Salesforce Discussions How to display comma seperated values in list view visualforce not string ?

  • How to display comma seperated values in list view visualforce not string ?

  • Vijay sunil

    Member
    February 11, 2021 at 8:25 am

    please any one help.
    i have a textarea fields where records saved like hello,hai,how . i need to display values in vf page in list view

  • Aditya

    Member
    February 23, 2021 at 6:56 am

    / a list of string, you wanna display
    List<String> tempLst = new List<String>{'Lee','Jeff','Dogules','Alok'};
    // making a single string with comma seprated from above list
    String commaSepratedList='';
    for(String str : tempList)
    {
    commaSepratedList += str + ',' ;
    }
    // remove last additional comma from string
    commaSepratedList = commaSepratedLis.subString(0,commaSepratedList.length());
    system.debug('comma seprated list is----> '+commaSepratedList);

Viewing 1 - 2 of 2 posts

Log In to reply.




Popular Salesforce Blogs

Popular Salesforce Videos