how to create one VALUELIST from a class parameters ?
Hello everyone!
I have an abstract class representing the possible inputs for an Enum field, in the following way:
Class system.dto.sector.SectorStatusEnum [ Abstract ] { Parameter Active = 1; Parameter Inactive = 2; Parameter Production = 3; Parameter Upkeep = 4; }
I need to create a persistent class referencing the abstract class in the status field, so that the result of the operation is the same as the example:
Class datas.TblSector Extends %Persistent { Property Description As %String( MAXLEN = 100 ) [ Required ]; Property Status As %String( VALUELIST=",1,2,3,4", DISPLAYLIST=", Active, Inactive, Production, Upkeep") [ Required ]; }
Can someone help me pls?