Hi All,
I’m trying to do simple thing like cancatanating values from different columns in Ag Grid with valueGetter.
I’m trying even get value from other column without any other computation still without result.
Please direct me what can prevent rendering cell with valueGetter.
eve
columndefs = [
{"field":"f_id","headerName":"F_ID","editable":False,"hide":True,'suppressSizeToFit': True,'width':5},
{"field":"origin_invoice_id","editable":False,"hide":True},
{"field":"invoice_subtask_id","editable":False,"hide":True},
{"field":"f_invoice_id","editable":False,"hide":True},
{"field":"f_subtask_id","editable":False,"hide":True,"valueFormatter": {"function": "(params.value).toUpperCase()"}},
{"field":"origin_subtask_id","editable":False,"hide":True},
{'field':'project',"headerName":"PROJECT", 'editable':False},
{'field':'site',"headerName":"SITE", 'editable':False},
{'field':'subtask',"headerName":'SUBTASK', 'editable':False},
{"field":"week","headerName":"INSTALLATION WEEK","editable":False,"type":["numberColumn , rightAligned"]}, # "valueFormatter":{"function":"'€ '+ (params.value)"},
{"field":"value","headerName":"INVOICE_VALUE","editable":False,"type":"numberColumn rightAligned","filter":"agNumberColumnFilter"}, # "valueFormatter":{"function":"MoneyFilna(params.value)","function":"d3.format('.1f')(params.value)"}}, #,"function":"d3.format('.1f')(params.value)"
{"field":"planned_value", "headerName":"PLANNED VALUE",'editable':False},
{"field":"po_number","headerName": "PO","HIDE":True},
{"field":"bauleiter","headerName":"BAULEITER","hide":True},
{"field":"acceptance_date","headerName":"ACCEPTANCE DATE","hide":True}, #, "cellEditor": {"function": "DatePicker"}},
{"field":"invoicing_week","headerName":"INVOICING PLANNED WEEK",'editable':False},
{"field":"action","headerName":"ACTION",'cellEditor':'agSelectCellEditor',
"cellEditorParams":{"values":["wyceniona","zaplanowana","konieczny powrót","dokumentacja oddana","do fakturowania"]}},
# {"headerName":"INVOICE DESCRIPTION", # "field":"invoice_description"
{'headerName': 'Combined Column',
'valueGetter':"params.data.subtask"},
]
apreciate any hints