Results 1 to 8 of 8

Thread: How do I get appointments from a user Calendar using java soap?

  1. #1
    Roger75 is offline Active Member
    Join Date
    Apr 2012
    Posts
    29
    Rep Power
    3

    Default How do I get appointments from a user Calendar using java soap?

    I'd like to know how do I get all the appointments from a user Calendar that belong to a date range (from dd/mm/yyyy to dd/mm/yyyy), using Java Soap API.

  2. #2
    jhon is offline Senior Member
    Join Date
    Sep 2012
    Location
    jhoncarter2030@gmail.com
    Posts
    60
    Rep Power
    2

    Default

    var vector = new AjxVector();
    for (var i = 0; i < response.size(); i++) {
    searchResultVector.add({
    "subject": response.get(i).getName(),
    "calendar": appCtxt.getFolderTree().getById(response.get(i).ge tFolderId()).getName(),
    "start_date": new AjxDateFormat(AjxDateFormat.SHORT).format(new Date(response.get(i).getStartTime())),
    "itemid": response.get(i).invId
    });
    }
    this.searchResult.set(vector);

  3. #3
    Roger75 is offline Active Member
    Join Date
    Apr 2012
    Posts
    29
    Rep Power
    3

    Default

    Quote Originally Posted by jhon View Post
    var vector = new AjxVector();
    for (var i = 0; i < response.size(); i++) {
    searchResultVector.add({
    "subject": response.get(i).getName(),
    "calendar": appCtxt.getFolderTree().getById(response.get(i).ge tFolderId()).getName(),
    "start_date": new AjxDateFormat(AjxDateFormat.SHORT).format(new Date(response.get(i).getStartTime())),
    "itemid": response.get(i).invId
    });
    }
    this.searchResult.set(vector);
    Thank you for replying, but could you show all the code? I don't know how did you get response, appCtxt variables... have you used SoapProvisoning?

  4. #4
    jhon is offline Senior Member
    Join Date
    Sep 2012
    Location
    jhoncarter2030@gmail.com
    Posts
    60
    Rep Power
    2

    Default

    Are you a developer ?

  5. #5
    Roger75 is offline Active Member
    Join Date
    Apr 2012
    Posts
    29
    Rep Power
    3

    Default

    Quote Originally Posted by jhon View Post
    Are you a developer ?
    I think so.

  6. #6
    jhon is offline Senior Member
    Join Date
    Sep 2012
    Location
    jhoncarter2030@gmail.com
    Posts
    60
    Rep Power
    2

    Default

    Then appCtxt is a context global variable. And this code is enough for request to get all appointments.

  7. #7
    Roger75 is offline Active Member
    Join Date
    Apr 2012
    Posts
    29
    Rep Power
    3

    Default

    Quote Originally Posted by jhon View Post
    Then appCtxt is a context global variable. And this code is enough for request to get all appointments.
    Sorry, I didn't understand... in what language is this code made? Javascript? If so, how do you work with it? Do you use a Zimlet?

    The only way I know how to work is with Java Soap code, like the following:

    SoapProvisioning sp = new SoapProvisioning();

    sp.soapSetURI(uri);
    sp.soapAdminAuthenticate(admin,pass);
    sp.createAccount(login, senha, map);

  8. #8
    jhon is offline Senior Member
    Join Date
    Sep 2012
    Location
    jhoncarter2030@gmail.com
    Posts
    60
    Rep Power
    2

    Default

    Quote Originally Posted by Roger75 View Post
    Sorry, I didn't understand... in what language is this code made? Javascript? If so, how do you work with it? Do you use a Zimlet?

    The only way I know how to work is with Java Soap code, like the following:

    SoapProvisioning sp = new SoapProvisioning();

    sp.soapSetURI(uri);
    sp.soapAdminAuthenticate(admin,pass);
    sp.createAccount(login, senha, map);
    Ah, I am really sorry. I forgot to mentioned language. I am doing these stuffs in javascript and using Zimlet for that. But I think provisioning is better. I'll find out that way from provisioning. I'll let you know when ever I would get it. You can ping me on jhoncarter2030@gmail.com . As I am not use to visit forum daily.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Subscribing User to Calendar through SOAP Api
    By RobTucker in forum Developers
    Replies: 1
    Last Post: 01-15-2013, 09:40 AM
  2. How to create Zimbra appointments from Java?
    By rubberballman in forum Developers
    Replies: 1
    Last Post: 03-26-2012, 01:14 PM
  3. soap to create appointments
    By sperkins in forum Developers
    Replies: 0
    Last Post: 06-18-2008, 07:01 AM
  4. How to create appointments via soap.
    By palikero in forum Developers
    Replies: 2
    Last Post: 05-22-2008, 03:16 PM
  5. Canceling appointments through SOAP
    By gdeyoung in forum General Questions
    Replies: 7
    Last Post: 04-16-2008, 08:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •