Hi there,
The docs suggest that it is: http://www.smartclient.com/docs/6.5.1/a/b/c/go.html#attr..DataSource.fields
However, in 6.5.1 when I call isc.IsA.Array(dataSource.fields) passing in a dataSource reference it returns false?
Hi there,
The docs suggest that it is: http://www.smartclient.com/docs/6.5.1/a/b/c/go.html#attr..DataSource.fields
However, in 6.5.1 when I call isc.IsA.Array(dataSource.fields) passing in a dataSource reference it returns false?
Ressurecting an old question cause had the same question now:
in fact, DataSource.fields is not array, that’s JS object.
But in docs it’s still marked as Array with [IR] flags.
There is no special getter for this attribute (although there is a getter for one field - getField(fieldName)).
So I think it should be marked as documentation bug, no?
Array[Field] works only for [I], reading of this property returns plain object like {fieldName: Field}
Isomorphic?
Use getFieldNames() and getField(name). We’ll link to these in the docs in case anyone else misses this.