Closed 1730wang closed 10 years ago
All the attributes of DMX data are stored in a CollaborativeMap (dmx.doc.attributes is a CollaborativeMap)
Currently, each element of this CollaborativeMap is a string. information is stored in "info | info | info | ..." format.
To be exact, the format is:
var val = name + '|' + type + '|' + desc + '|' + defaultValue + '|' + readOnly + '|' + optional + '|' + sequenceLength + '|' + length + '|' + min + '|' + max + '|' + ref + '|' + refType + '|' + enumName + '|' + enumValue;
We want to convert this string into Javascript object. e.g.
var val = { name: "name", type: "Double", desc: "the description of this attr", ... };
seems to be working
All the attributes of DMX data are stored in a CollaborativeMap (dmx.doc.attributes is a CollaborativeMap)
Currently, each element of this CollaborativeMap is a string. information is stored in "info | info | info | ..." format.
To be exact, the format is:
We want to convert this string into Javascript object. e.g.