acs custom object field name

You must Login before you can answer or comment on any questions.

is there a way to get the field names stored in a class

the following brings me the data from the class

Cloud.Objects.query({
    classname : 'classname',
    per_page : 100,
    where : {
        user : id
    }

......... ......

how can I display all fieldnames?

2 Answers

Accepted Answer

There is currently no way to select the fields from a custom object. A quick workaround would be to select the first object like you've done above, then just run Object.keys() on the returned object to get an array of the fieldnames.

There is no such method to get keys from the custom object, but you can do this on javascript turnaround as Anthony mentioned.

Your Answer

Think you can help? Login to answer this question!