NS AdminA
03/27/2025, 2:03 AMCeligo AI
03/27/2025, 2:03 AMAI generated answer (using internal Slack threads):Based on the conversations, it seems that sublist line highlighting on a suitelet can be achieved using DOM manipulation in a client script. Here is an example of how you can do it:
javascript
let table = document.getElementById('item_splits')
for (let i = 0; i < table.rows[2].cells.length; i++) {
table.rows[2].cells[i].style.setProperty("background-color", "#00CC00", "important")
}
This script will change the background color of the cells in the third row of the sublist to green. Note that the "important" property might not be necessary, but it was used in this example to ensure the style is applied.
However, there might be issues with this approach if the sublist is still being populated after the DOM has finished loading. In this case, you could use setTimeout
to wait a second or two before executing the code.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
03/27/2025, 2:04 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.836666107
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.824492633
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.821478844
Celigo AI
03/27/2025, 2:04 AM