How to pass a context value to ui-table

Hi
I have this tabulator config how can I pass a value to this function
I try this but dosen't work for me
i am using function node that inject this msg to ui-table node


var min_justifi=flow.get("min_justifi");
msg.ui_control = {
{
            "title": "temps_arret",
            "field": "temps_arret",
            "editor": "output",
            "formatter":"function(cell, formatterParams){var value = cell.getValue(); if(Number(value.split(':')[0])*3600 + Number(value.split(':')[1])*60  + Number(value.split(':')[2])>min_justifi){return \"<span style='color:red; font-weight:bold;'>\" + value + \"</span>\";}else{return value;}}"
        }

Try...

var min_justifi=flow.get("min_justifi");
msg.ui_control = {
{
            "title": "temps_arret",
            "field": "temps_arret",
            "editor": "output",
            "formatter":"function(cell, formatterParams){var value = cell.getValue(); if(Number(value.split(':')[0])*3600 + Number(value.split(':')[1])*60  + Number(value.split(':')[2])> " + min_justifi + "){return \"<span style='color:red; font-weight:bold;'>\" + value + \"</span>\";}else{return value;}}"
        }
2 Likes

its work thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.