Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

But this does not work because:

  1. Line item configurator “test” is created during syntax check.

  2. During syntax check, api.input returns only mock data, not real data.

  3. During syntax check (and only during syntax check), api.getParameter("test") returns a context parameter of the "test" configurator. During recalculation (when syntax check is not running), api.getParameter("test") returns null.

  4. ConfA?.setValue in syntax check:

    1. has a context parameter of the configurator;

    2. does not have a value loaded from api.input.

  5. ConfA?.setValue when quote is recalculated:

    1. does not have a context parameter of the configurator;

    2. has a value loaded from api.input, but it cannot be set as confA is null.

As a result:

  • You can set a static value via confA.setValue() as a value which is known at syntax check.

  • You cannot set dynamically loaded data from the header configurator because in the syntax check api.input does not return the expected value and during recalculation, api.getParameters("test") does not return the context parameter of the configurator.

...