Skip to content

Commit 73289f8

Browse files
committed
Convert additional datatypes to display
1 parent 5cbcfa3 commit 73289f8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Form/Util/Converter.cls.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ TODO. Populate on install?</Description>
6969
}
7070
} elseif datatype = "%Library.Time" {
7171
set result = ##class(%Time).LogicalToXSD(value)
72+
} elseif datatype = "%Library.Binary" {
73+
set result = $zcvt(value, "O", "JSON")
74+
} elseif datatype = "%Library.Status" {
75+
set result = $System.Status.GetErrorText(value)
76+
} elseif datatype="Security.Datatype.Password"{
77+
set result = ##class(Security.Datatype.Password).LogicalToDisplay(value)
7278
} else {
7379
set result = value
7480
}
@@ -88,6 +94,8 @@ TODO. Populate on install?</Description>
8894
set result = ##class(%TimeStamp).XSDToLogical(value)
8995
} elseif datatype = "%Library.Time" {
9096
set result = ##class(%Time).XSDToLogical(value)
97+
} elseif datatype = "%Library.Binary" {
98+
set result = $zcvt(value, "I", "JSON")
9199
} else {
92100
set result = value
93101
}

0 commit comments

Comments
 (0)