kibana-enhanced-table
kibana-enhanced-table copied to clipboard
Column field name exposure
Hello
Would you please expose col{index}_fieldName
(for each column) context variables when your process the handlebar template ? This will allow to create drill down link to another dashboard with filter definition. Currently, only the field value can be captured, not the field name.
Thanks
Hello,
Well, the field name is a static information. I mean that the field name is a static element for each bucket/metric aggregation in your visualization. So I don't understand why you need it as a dynamic information in your computed columns. Can you explain me a concrete need?
Suppose I've formatted 2 custom columns as URL to another dashboard, each one adds the filter definition by it's own field name and value to the URL of this dashboard. The URL template is the same, the only difference is the fieldName
and value
. Being able to template the URL using {{col0_fieldName}} and {{value}} results with single pattern, otherwise I need to copy-paste the URL and statically put the fieldName in for each of them.
Well, so if I understand well, it will just allow you to not have to adapt template value for 2 computed columns? Right? Honestly, this seems low value enhancement.
But if it's important for you, don't hesitate to make a pull request to add this feature!
Well, it might be not 2 but N columns. IMHO, this should exist just for API completeness.
Will try to add this if I have time. Thanks again for the awesome plugin.
If you make a PR, I will be happy to merge it!
Happy to see you enjoy the plugin!
hi fbaligand, I had a same issue, if i want to change order columns but its a date histogram columns, we cant create computed columns that just reference the col1 cause we didnt know what date will the column label, can we reference col label too so columns name will dynamic ?
want to be this
Hi @umarfachreza, This issue feature is really different from what you talk about. We can yak about it in the other issue where you tell the same need.