Skip to Content
avatar image
Former Member

How can I move UDFs from the UDF form to the main form, using DI?


I'd like to use the DI in order to move some UDFs from the UDF panel into the form, just like it's done using the menu option in the client, under "Tools" --> "Edit Form UI".



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 19, 2016 at 02:19 PM

    Hi Ori,

    DI stands for data interface. If you want to create UI elements you have to use the UI.

    There is no native MoveTo method if that is what you are looking for. But creating an EditText or ComboBox is very easy.

    You can find samples on your SDK installation directory (e.g.: C:\Program Files (x86)\SAP\SAP Business One SDK\Samples) how to create controls.

    The important part is the binding. You should bind the controls you add with the respective DataSource. Usually since it's a UDF the DataSource is the actual table.

    oCheckBox.DataBind.SetBound( true, "TableName", "ColumnName" );
    Add comment
    10|10000 characters needed characters exceeded

    • Hi Ori,

      Now I see what you mean.

      I couldn't find any "native" method to do that. The tables seem to be UICU, and then UIC1-5. Unfortunately, this might not be exposed yet in the API. For the time being, I guess we are stuck with the UI way.

      Perhaps you could open a topic at SAP Idea Place for it.

      Pedro Magueija
      LinkedIn | Twitter | Blog