Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add Tag to perform different Get methos for contact view Picker? #10

Open
DheerajKaveti1 opened this issue Nov 18, 2013 · 0 comments

Comments

@DheerajKaveti1
Copy link

I would like to do some thing like this below, could any one help me out in acheving it.

  • (void)contactPickerTextViewDidChange:(NSString *)textViewText {

    [self.contactPickerView becomeFirstResponder];
    NSString *sql;

    if ([textViewText isEqualToString:@""]){
    }
    else {

if(contactpicker.tag==1)
sql = [NSString stringWithFormat: @"Select id, Name, lastname, firstname ORDER BY lastname LIMIT 25", textViewText,textViewText,textViewText];
NSLog(@"%@",sql);

if(contactpicker.tag==2)
sql = [NSString stringWithFormat: @"Select id, Name, lastname, firstname ORDER BY lastname LIMIT 25", textViewText,textViewText,textViewText];

    NSLog(@"%@",sql);

SFRestRequest *request = [[SFRestAPI sharedInstance] requestForQuery:sql];
[[SFRestAPI sharedInstance] send:request delegate:self];

    //self.filteredContacts = [self.contacts filteredArrayUsingPredicate:predicate];
}
[self.tableView reloadData];

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant