Examples of using BOs inside of UI customization

That’s on a configurator, you can’t do it that way.
Here is a good thread for reference:

It would be better for you to explain what you are trying to do before we just throw code at you.

Give us some more info so we can respond with something more relevant.