Collect multiple link columns into one column

Modified on Wed, 23 Jul at 1:31 PM

If you have multiple columns with different links, you may want to show them all in one general column for better readability.




TABLE OF CONTENTS


Configuration


First, define the formula "items". The formula should be the following, considering that item, item2, and item3 are the IDs of the first 3 columns with links.

...
"formulas":{
 "items":"(info)=>{return (info.item.item_link?info.item.item_link+'<br>':'')+(info.item.item2_link?info.item.item2_link+'<br>':'')+(info.item.item3_link?info.item.item3_link:'');}"
   },
 "cellDecorators":{
     "items":"(info)=>{info.cell.innerHTML = info.cell.innerText}"
},
...


Configure the desired column this way.

...
 {
         "headerGroup":"Potential Failure",
         "headerGroupCss":"headPotentialRisks",
         "headerCss":"headPotentialRisks",
         "header": "Items",
         "width": 150,
        "serverRender":"<b>aa</b>",
        "formula":"items",
          "id":"items",
         "cellRenderer":"items",
         "filterable":true,
         "level": 1
      },
...


At the end, you will have a column "Items" containing all links taken from the first 3 columns in a single cell.



For any assistance, please don’t hesitate to reach out by submitting a ticket here.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article