Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

VariableName in Bean Source Code #4541

Laba42 ·

I would like to access the name of the variable, that I have assigned to the variable Bean, in the program code.
For example, your prompt bean example.
The bean is called Example Prompt Bean. If I now create a new variable in QB with the name **GeorgTestBean **and then assign the Example Prompt Bean to it, I would like to read the name of the variable in the bean's program code.

The only thing I can get is the name of the bean,

this.getPlugin().getName()  // = Example Prompt Bean

But I am looking for the name of the bean's variable, i.e. GeorgTestBean

  • replies 3
  • views 346
  • stars 0
robinshen ADMIN ·

Unfortunately it is not possible to get that name. What is your usage senario?

Laba42 ·

I want to develop a bean in which you can select filters.

And my plan was if the variable name contains for example Include then I could preset a multiselection box accordingly and with Exclude in the name just preset other values

The Bean conains more then an multiselection box

robinshen ADMIN ·

Hmm... I can not think of any approach able to handle this. Maybe only possible in pre-queue script to validate the selections.