Dears, i am trying to implement custom asset and have a question about attributes
- in myasset.java
public static final AttributeDescriptor DATE_SAMPLED = new AttributeDescriptor<>(“dateSampled”, ValueType.TIMESTAMP,
new MetaItem<>(MetaItemType.RULE_STATE),
new MetaItem<>(MetaItemType.STORE_DATA_POINTS));
in the UI a date is not rendered:
once i click arrow, it shows date, which again disappears after reload the page
- how to add translation into drop down list items of an attribute (and did i implement it correctly?)
public static final AttributeDescriptor<String> TYPE_SPECIMEN = new AttributeDescriptor<>("typeOfSpecimen", ValueType.TEXT,
new MetaItem<>(MetaItemType.RULE_STATE),
new MetaItem<>(MetaItemType.STORE_DATA_POINTS))
.withConstraints(new ValueConstraint.AllowedValues("Cube 150×150×150mm", "Cylinder 150×300mm"));
