Logo

    Home

    Documentation

    Use Cases

    Training

    Applications

    Release Notes

    Add individual data fields to any Datasource via CustomFieldsEntity

    Add individual data fields to any Datasource via CustomFieldsEntity

    • Description
    • How to use it
    • Linked pages

    Description

    With the SimpleSwatCustomFieldsEntity you can easily add additional data to any datasource object in your application. These information will be saved in a B1 database with the SelfHdl of the selected record as foreign key. So you can add this Entity to your screen, connect it via Data-Link to the already existing DSO and add any form to it to display the data.

    How to use it

    Here we describe how you can create your own screen using this functionality

    1. Create a new screen YourTestScreen, Template Window (Simple) choose any 2* Layout
    2. Create a new form CustomDataForm add there as much fields as you like, at least one e.g. CustomField1
    3. In your screen do the following:
      1. Add your primary DSO to the screen, e.g. custd2 (we take here as example an Offer DSO
      2. Add the Grid for the primary DSO to the first panel of your screen, in our example customer1b
      3. Add the SimpleSwatCustomFieldsEntity to your screen
      4. Add your CustomDataForm to the second panel of the screen
    4. Now wen have to connect the objects correctly
      1. Connect the root with custd2 using link PrimarySDO
      2. Connect custd2 with customer1b using link Data
      3. Connect custd2 with SimpleSwatCustomFieldsEntity using link Data
      4. Connect SimpleSwatCustomFieldsEntity with CustomDataForm using link Display
    5. To also enable the saving in your form, use the following attributes in CustomDataForm
      1. BorderTitle = Choose a title
      2. panelMenu = Use the following menu function: formPanelSave#NoDropDown

    Linked pages

    See here also an example how to import the needed Excel file Import B1 Objects via ExcelImport B1 Objects via Excel

    Back to DocumentationDocumentation

    Back to Home Page

    Logo