bruh. i could kiss you. i won't, cuz that's gross, but the sentiment is there. i tried something similar earlier, but i was trying from pprint import PrettyPrinter
and it crapped out. so i assumed it just didn't work and i was stuck with this bing-bong IDE and NO visualization tools... very happy to be wrong.
crazy question here, and maybe I am missing something important, but if all you want is a single column of a dataset, then why not just use system.dataset.filterColumns()
?
return system.dataset.filterColumns(value,['assetName'])
Or even better would be to use an expression binding.
TIP: The
columnRearrange()
expression function can be used to filter dataset columns. It will only return the columns given in the expression in the order given.
columnRearrange({dataset},'assetName')
The table component will work with a dataset just fine.
...well .
time pressure. i want to do nothing but read docs and experiment, but i have to fix stuff sooner. thank you for this. i bow to your greater wisdom.
as for expressions, i'm just starting with that today... and it's not bending to my will just yet. of course i'm trying to do something obtuse and stupid with it, so that's likely why.
NB: don't sleep on this advice. Expressions are way faster than scripting.
that's why i'm digging in to them today. our server is just hammered with my predecessor's spaghetti monster code. it's a bit overwhelming at times. like: recursing a function to a blank baseline just to get a single user dataset. this kind of thing is just peppered throughout 25+ projects. so optimizing as i go is a critical add. so getting my head around the new syntax is... fun. i don't want to deploy it just to deploy it, if you know what i mean. it has to have purpose that makes sense in the context of the massive refactoring i'm doing. so knowing when to use it is just slightly more important as how. but to get there i have to start with how.
my brain is a wonderland... just not the sexy one from the song...
Ian, I think it is time for a serious talk with your boss(es).
You been citing this for weeks. It is more than worn out. Your bosses' desire for the impossible won't magically make it happen.
The drama you are bringing as a result started as amusing, but is now just tiresome. Please reduce the whining.
This whining, too.
noted.