Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Make search call from IOS

By
Anna
on 8/15/14, 2:28 PM 1,029 views

Hello! i am developing an ios app to connect to product.product and i am trying to make a simple search call, this is how i am doing it:

NSArray *arr = [NSArray arrayWithObjects:@"active", @"=", YES, nil];

    NSArray *arri =[NSArray arrayWithObjects:arr, nil];

    [request2 setMethod:@"execute" withParameters:[NSArray arrayWithObjects:@"db_ms",1,@"pass1", @"product.product", @"search", arri, nil]];

but it's giving me Thread 1:EXC_BAD_ACCESS(code =2, adress=0x1) when creating arr array, i don't know what i am doing wrong.

 

I already managed to login with this code:

XMLRPCRequest *request = [[XMLRPCRequest alloc] initWithURL:[NSURL URLWithString:@"http://192.168.1.106:8069/xmlrpc/common"]];

    XMLRPCConnectionManager *manager = [XMLRPCConnectionManager sharedManager];

    

    [request setMethod:@"login" withParameters:[NSArray arrayWithObjects:@"db_ms",@"admin",@"pass1", nil]];

and it worked. I don't know what is the syntax to pass values to the search, i would appreciate some help.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 8/15/14, 2:28 PM
Seen: 1029 times
Last updated: 3/16/15, 8:10 AM