kibana-enhanced-table icon indicating copy to clipboard operation
kibana-enhanced-table copied to clipboard

Column field name exposure

Open jvmlet opened this issue 5 years ago • 7 comments

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

jvmlet avatar Apr 02 '19 14:04 jvmlet

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?

fbaligand avatar Apr 03 '19 10:04 fbaligand

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.

jvmlet avatar Apr 03 '19 11:04 jvmlet

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!

fbaligand avatar Apr 07 '19 17:04 fbaligand

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.

jvmlet avatar Apr 07 '19 18:04 jvmlet

If you make a PR, I will be happy to merge it!

Happy to see you enjoy the plugin!

fbaligand avatar Apr 07 '19 19:04 fbaligand

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 ?

image

want to be this

image

umarfachreza avatar Sep 08 '20 04:09 umarfachreza

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.

fbaligand avatar Sep 08 '20 06:09 fbaligand