equinor / dm-core-packages

Data-Modelling Core JavaScript package and some core UiPlugins
https://www.npmjs.com/package/@development-framework/dm-core
MIT License
3 stars 1 forks source link

Table/List: Default entity on create - create new entities with different values #957

Closed pbullhove closed 11 months ago

pbullhove commented 11 months ago

So if you have 20 different platforms.

PlatformBlueprint entity: AGSB, simualtion

where can we set the defaultvalues for simulations in ASGB, that are different from ASGB2? Don't want to make 20 different blueprints for every different platform, should be able to set

Solution

Start doing this with table, this solves 80% of the problems.

In the TableConfig, be able to specify template for newly created entity.

In the UIRecipe

eoaksnes commented 11 months ago

Most important is table.

eoaksnes commented 11 months ago

Be able to create new items and specify template:

"config": {
  "type": "PLUGINS:dm-core-plugins/table/TablePluginConfig",
  "templates": [
      {
        "type": "Refernce",
        "referenceType": "link",
        "address": "...."
      }
  ],