Page tree

Versions Compared

Key

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

...

Open the Layout Designer and first create a new SimpleSwatDialog. Then open the newly created dialog in the Layout Designer and add your BusinessEntity, a form and a toolbar for saving.
There should needs to be a PrimarySDO link from the container to the businessEntity and a Data DISPLAY link from the businessEntity to the form.

The toolbar 'toolbarGo' attribute value should needs to be set to '$ crm.saveNewRecord(self);'.
When calling this method(on toolbar check mark button click) the saving of the newly created record will be performed andĀ if the saving was successful it will also close the add dialog.
You could also specify the repository object name used for loading/opening the newly created record as the second paramenter to the saveNewRecord method:
'$ crm.saveNewRecord(self, 'openUserDialog');'. This will use the given repository name to open the newly created record in its own screen.

...