+ Start a Discussion

hybrid app and can not get object description



I am making hybrid applicaion based on salesforce mobile SDK for iOS. I want to get object descrtion like label of field and available values of picklist.

I want this information about Task object, here is my code:


forcetkClient.describe("Task", fillTaskType, onErrorSfdc);

function fillTaskType(response){
    logToConsole("Type" + response['fields']['Type']['label']);

 but in output in xcode I receive error

Error in success callback: NetworkStatus0 = TypeError: 'undefined' is not an object

can any help me?


PS: I use xcode 4.4.1