Home CMDB Portal

Advice on updating System.Domain.User js file

Sean_TerrySean_Terry Customer Advanced IT Monkey ✭✭✭

I wanted to add the VIP status to the file but all I get is this:



This is the code I tried to use to display the VIP status:

{ DataType: "String", PropertyDisplayName: "VIPStatus", PropertyName: "VIPStatus", Required: false, Disabled: true, MinLength: 0, MaxLength: 200 },

I was assuming the property name was similar to the name in 'Cached_MT_System_Domain_User' portal db table, but this is where I am just guessing. I'm sure its easier than I'm making it. Anyone else done something similar?

Best Answer

Answers

  • Adam_DzyackyAdam_Dzyacky Product Owner Contributor Monkey ✭✭✭✭✭
    edited September 2020

    Yup, I've done it!

    First thing that is worth asking here - is your VIPStatus extension actually a string? I ask as I typically see this as a Boolean (checkbox) value.

  • Sean_TerrySean_Terry Customer Advanced IT Monkey ✭✭✭

    @Justin_Workman Thanks. I had tried an enum type using the class as an example but the drop down had an error. I've just switched it back after your advice and it works. There must have been something missing in the Enum ID or something silly!

    { DataType: "Enum", PropertyDisplayName: "VIPStatus", PropertyName: "VIPStatus", EnumId: 'F99ADCEC-E85D-E796-BF43-66156C096F51' },

    @Adam_Dzyacky Thanks for the reply. I got there in the end :)

Sign In or Register to comment.