Modifying ontology properties through a function (visually)

Hello!

I currently have some data from my ontology inside a variable called “userAccess”. That data is eventually displayed inside a table. However I’d like to modify how some of the columns are displayed (For example, a boolean should be turned into “Available” or “Not available” text. But that’s not the only thing I need, just an example)

With that, what I did was create a function called parseData which takes in an array of my ontology, and I expected I’d be able to iterate through the data and modify some of the properties.

Unfortunately, even though in the logs it looks like the properties are modified, when displaying this new “userAccessFn” variable, it seems to still display the old data for some reason.

Again, I need to clarify that I don’t want to modify my data, just modify how some properties are going to be displayed through a function. I’d be grateful for any pointers.

PS: Another question related to the first one: If it possible to modify those properties, would it also be possible to return HTML?

ObjectSet

Hi,

Could you share a safe-for-the-internet version of your functions?

That might make it easier to help you. Also, is there a reason you are storing these in a property, rather than having them normalized or back a separate Object type?

1 Like

Hi,

instead of performing object edits, functions can also be used for deriving what Palantir documentation calls “function-backed-columns” for object table widgets within Workshop. Not sure if you have tried it? Here is the documentation:
https://www.palantir.com/docs/foundry/workshop/widgets-object-table#function-backed-columns

Kind regards,
Jamie

Thank you so much; this documentation answered my question and I was able to solve my problem.