Drop down dataProvider in EventScript editor

Hello,
In the following code, I’m trying to merge an item collection for a dropdown menu.


I have two rquestions:

  • how can I get text from the text system into a variable? In my code, only a string itself (not text where the path leads) is being set.
  • is there any way to merge dropdown data with internal client resouces? The opc variable makes it very clumsy (and I don’t really need it my application).

Thank you.
Regards
Michal Malek