I’m trying to write a test code helper method for selecting a row in a given table. Noticing that the JSON created when I click a row in a table is this:
I wanted to create a changeVariables map to send to a table. My problem is with types. I know that in the above (i) is int and (b) bool, but what is (c) … surely not char? Is there a list of these definitions somewhere?
c is an array of Strings. The ultimate reference for the datatypes is the java method that decodes the values on the server: AbstractCommunicationManager.convertVariableValue. These constants are used:
private static final char VTYPE_PAINTABLE = 'p';
private static final char VTYPE_BOOLEAN = 'b';
private static final char VTYPE_DOUBLE = 'd';
private static final char VTYPE_FLOAT = 'f';
private static final char VTYPE_LONG = 'l';
private static final char VTYPE_INTEGER = 'i';
private static final char VTYPE_STRING = 's';
private static final char VTYPE_ARRAY = 'a';
private static final char VTYPE_STRINGARRAY = 'c';
private static final char VTYPE_MAP = 'm';