Announcement

Collapse
No announcement yet.

Link Custom Entity to Portal Role

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Link Custom Entity to Portal Role

    Hello,
    I'm trying to create a link from a custom table to the table "Portal Role" such that [custom] 0-* <- 1-1[PortalRole]. I had a go at updating the custom metadata in the entityDef for my custom entity, but I got an error.

    I want to be able to select a single PortalRole on my custom entity.

    What field definitions would I need in the custom.json entityDef?

    Thanks

  • #2
    I did this on my entity with this in the EntityDef for my custom Entity:

    {
    "fields": {
    "portalRole": {
    "type": "link",
    "inlineEditDisabled": true,
    "required": true,
    "tooltip": true
    }
    },
    "links": {
    "portalRole": {
    "type": "belongsTo",
    "foreign": "myCustomEntity",
    "entity": "PortalRole",
    "audited": false,
    "isCustom": true
    }
    }
    }​


    Comment

    Working...
    X