This repository was archived by the owner on Aug 8, 2025. It is now read-only.
forked from ca-d/oscd-template-generator
-
Notifications
You must be signed in to change notification settings - Fork 2
Add new and user-defined data object to given LN class #3
Copy link
Copy link
Open
Description
As a user of this plugin I would like to add a new data object to a given LN class. This is especially necessary with data objects that cannot explicitly defined in the NSD such as the GGIO.Ind where you can have GGIO.Ind1 and GGIO.Ind2 and so on.
Requirements:
- add a button
Add user DOthat opens aAdd Data Objectdialog (see Mock) - The dialog should display a select field with supported CDC classes (see more information)
- The dialog should display a text input for the
DO.name. This one should follow the pattern given in the Ed2.1 schema - When
addbutton is being clicked some steps must be followed:- call the function
nsdToJsonfrom and receive back theCdcChildrenobject - create a new object
CdcDescriptionand add theCdcChildren,tagName=DataObject,descID= '', andpresCond=O - attache newly create object to the
treeUI.treerecord of the typeRecord<string, CdcDescription>where the key is the name from the dialog - this should update the UI and the new data object with its structure should be visable
- call the function
- update the
insertSelectedLNodeTypeto the new API where- the currently passed
lnClassis passed in the objectlogicalnode.class - in addition to that pass the tree object
treeUI.treethroughlogocalnode.data
- the currently passed
Mockup:
Metadata
Metadata
Assignees
Labels
No labels
