Hi all,
Imagine you have an XClass which, among other properties, has a date
property (of type Date with a custom date format) and you need a custom form for displaying an XObject of that class in edit mode, with the date
field hidden. I noticed that, as far as the date value formatting is concerned, the two calls below behave differently:
-
$doc.display('date', 'edit', $object)
: produces an input element whosevalue
attribute is formatted along the property date format -
$doc.displayHidden($object.getxWikiClass().date, '', $object)
: produces an element whose value is not formatted along the property date format
From what I understand, the date displayer (displayer_date.vm
) is not used when calling displayHidden
. However it contains code for the case where type=="hidden"
so I’m confused about the actual expected output and the usage of displayHidden
. Any help appreciated
Cheers