That is a good approach.
However, have you ever tried JSON_OBJECT function (https://cedocs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?K...)? If your need is to return an JSON to an API call, this may do the trick for you.
Have a good one.
Thanks you Stefan.
I've already read that documentation but I've not noticed the text talking about macros.
I would like a way to use localization directly in XData, without any JS code. Nevertheless, I'm going to this zenText or JS $$$Text approach.
I couldn't see a way to use this approach in my case.
Should I override the %CreatePage ( %ZEN.Component.page) method?
Thank you, Dmitry.
Log in or create a new account to continue