Skip to Content

Dynamic access to attributes of the object at runtime

Dear Experts,

We'd like to program our logic in SDK in ABSL in the following manner:

Based on certain conditions we need to access one of z-amount fields created for a standard object. It should be dynamic access, e.g. the decision which field to take is made at runtime.

Like in ABAP world:
ASSIGN COMPONENT comp OF STRUCTURE struc TO <fs>.

or something similar.

Is it achievable in SDK using ABSL?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 08 at 01:30 PM

    Hello Andrei,

    The same dynamic is not possible with ABSL.
    Please describe your requirement in more details.
    Maybe we can find a solution. :-)

    Bye,
    . Horst

    Add comment
    10|10000 characters needed characters exceeded

    • Horst Schaude Andrei Vishnevsky

      Hello Andrei,

      Got it.
      So you have the name of the Extension Field as string and you need something like

      var myExtensionField = myNode.GetElementByName( "KUTField1" );
      if (!myExtensionField.IsInitial()) myExtensionField = ....

      Sorry, this is not available in ABSL. :-(

      Bye,
      . Horst