Dynamic binding not possible for Case value

OS info

  • Operating System : Windows 10.0.22631
  • Wappler Version : 7.0.0-beta.14

Problem description

Case value can only be static and not a dynamic binding. Either remove the data binding icon or make dynamic binding possible.

wappler-select

Steps to reproduce

  1. See screenshot.
  2. Change the index value to 1.
  3. Value is outputted.
  4. Change the index value to 2.
  5. Value is not outputted.

I got dynamic binding to work with the following. Do you see any possible issues?

change:

            foreach ($options->cases as $case) {
                if ($expression === $case->value) {

to:

            foreach ($options->cases as $case) {
                $value = $this->app->parseObject($case->value);
                if ($expression === $value) {