Problem with IOS module function in SDK 2.1.0

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

Hi, I have a custom module that return a list of strings. In 2.0.2 it works fine, and I call the function like that :

var list = connexion.getNamesFromServer();
now with 2.1.0 it raises an error like this :
message = "'Name1,Name2' is not a function (evaluating 'connexion.getNamesFromServer()')";
name = TypeError;
Any idea how to solve this, do I have to change my javascript syntax ?

Regards

— asked 11 months ago by Armindo Da Silva
5 Comments
  • more code? Constructor? I'am working a lot with modules (normal and persistent) and have no probelms with 2.1

    — commented 11 months ago by Rainer Schleevoigt

  • - (NSArray *)getNamesFromServer
    {
     //some stuf here    
    NSMutableArray *templates = [[[NSMutableArray alloc] initWithObjects:nil] autorelease];
        for (int i = 0; i<[temp count]; i++) {
            [templates addObject:[temp itemAtIndex:i]];
        }
        return templates;
    }
    in MyModuleConnexionProxy.h
    @interface MyModuleConnexionProxy
    {
     
    }
     
    @end
    Maybe now I have to change it to
    - (NSArray *)getNamesFromServer:(id)value
    Regards

    — commented 11 months ago by Armindo Da Silva

    • (NSArray *)getNamesFromServer:(id)value This solved the problem.

    — commented 11 months ago by Armindo Da Silva

  • Show 2 more comments

Your Answer

Think you can help? Login to answer this question!