Advice on updating System.Domain.User js file
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
-
Justin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭
Is that property actually a string? Or is it an Enum? If it's an enum, you will want to use the .Name property of the VIPStatus and you'll want to change the type to Enum. Look at something like Classification in Incident.js to see what that might look like.
5
Answers
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.
Is that property actually a string? Or is it an Enum? If it's an enum, you will want to use the .Name property of the VIPStatus and you'll want to change the type to Enum. Look at something like Classification in Incident.js to see what that might look like.
@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 :)