Opening shared calendar
-
Hellow all!
Recentelly i installed Kopano on a Univention server.
i’m running:
WebApp:
3.3.0.610-25.1
Kopano Core:
8.3.1-35
Z-Push:
2.3.7+0All is running well, i can send and receive mails, in KOE i can open shared folders and calendar.
But i would like to open a schared calendar on my mobile phone.
I got a Blackberry Dtek60.I have spend hours in searching where i could set this.
But i really don’t have a clue no more.
I tried to make a SOAP request but i honeslty don’t have a clue what i’m doing.Can anybody help me out here ?
https://wiki.z-hub.io/pages/viewpage.action?pageId=1737238
https://wiki.z-hub.io/display/ZP/Webservice
https://wiki.z-hub.io/display/ZP/Configuring+GAB-Sync+for+Kopano+OL+Extension -
I have try’d it with underneath solutions but for the user he can see his calander twice on the phone. anyone ?
* Synchronize additional folders to all mobiles * * With this feature, special folders can be synchronized to all mobiles. * This is useful for e.g. global company contacts. * * This feature is supported only by certain devices, like iPhones. * Check the compatibility list for supported devices: * http://z-push.org/compatibility * * To synchronize a folder, add a section setting all parameters as below: * store: the ressource where the folder is located. * Kopano users use 'SYSTEM' for the 'Public Folder' * folderid: folder id of the folder to be synchronized * name: name to be displayed on the mobile device * type: supported types are: * SYNC_FOLDER_TYPE_USER_CONTACT * SYNC_FOLDER_TYPE_USER_APPOINTMENT * SYNC_FOLDER_TYPE_USER_TASK * SYNC_FOLDER_TYPE_USER_MAIL * SYNC_FOLDER_TYPE_USER_NOTE * * Additional notes: * - on Kopano systems use backend/kopano/listfolders.php script to get a list * of available folders * * - all Z-Push users must have at least reading permissions so the configured * folders can be synchronized to the mobile. Else they are ignored. * * - this feature is only partly suitable for multi-tenancy environments, * as ALL users from ALL tenents need access to the configured store & folder. * When configuring a public folder, this will cause problems, as each user has * a different public folder in his tenant, so the folder are not available. * - changing this configuration could cause HIGH LOAD on the system, as all * connected devices will be updated and load the data contained in the * added/modified folders. */ $additionalFolders = array( // demo entry for the synchronization of contacts from the public folder. // uncomment (remove '/*' '*/') and fill in the folderid array( 'store' => "User", 'folderid' => "***", 'name' => "Gezamelijke agenda", 'type' => SYNC_FOLDER_TYPE_USER_APPOINTMENT,
-
Hello @mylotec ,
the except you post in your reply is the static folder configuration in config.php, if you configure a folder from a user store here, it would indeed show up twice for this specific user.
The webservice link you posted above actually already has everything you need to “on demand” add folders to certain users and devices. you only have to use the example script and fill it up with the folder id (you want to share) and device id to where you want to share.
-
@fbartels Thanks for your repley!
i’m afraid i’m a bit of a noob in this part …
<?php $server = "url to my server"; $user = "Username"; $pass = "Password"; $devid = "The ID of the device i want to add a extra folder"; define("SYNC_FOLDER_TYPE_USER_MAIL", 12); define("SYNC_FOLDER_TYPE_USER_APPOINTMENT", 13); define("SYNC_FOLDER_TYPE_USER_CONTACT", 14); define("SYNC_FOLDER_TYPE_USER_TASK", 15); define("SYNC_FOLDER_TYPE_USER_JOURNAL", 16); define("SYNC_FOLDER_TYPE_USER_NOTE", 17); define("FLD_FLAGS_REPLYASUSER", 1); $client = new SoapClient(null, array( 'location' => "$server/Microsoft-Server-ActiveSync?Cmd=WebserviceDevice&DeviceId=webservice&DeviceType=webservice&User=$user", 'uri' => "http://localhost/soap", 'trace' => 1, 'login' => $user, 'password' => $pass )); try { $add_user = ""; $add_id = ""; $add_name = ""; $add_type = SYNC_FOLDER_TYPE_USER_APPOINTMENT; $add_flags = FLD_FLAGS_REPLYASUSER; // $r = $client->AdditionalFolderAdd($devid, $add_user, $add_id, $add_name, $add_type, $add_flags); // echo "Add:\n". print_r($r, true) ."\n"; // $r = $client->AdditionalFolderEdit($devid, $add_id, "! Different name", $add_flags); // echo "Edit:\n". print_r($r, true) ."\n"; // $r = $client->AdditionalFolderRemove($devid, $add_id); // echo "Remove: ". print_r($r, true) ."\n"; $r = $client->AdditionalFolderList($devid); echo "Current folders:\n". print_r($r, true); } catch (SoapFault $sf) { echo "soap fault: ". $sf->getMessage() . "\n"; exit(1); }
But then i do not really know what to do next :|.
What do i need to change so i can sync the extra folder?
and how do i run the script? just by opening it as a webpage?
and is there a possability to dissable the oppointment reminder? -
@mylotec maybe this helps:
<?php $server = "http://localhost"; $user = "user-that-should-open-the-folder"; $pass = "password-of-that-user"; $devid = "device-id-that-should-open-the-folder"; define("SYNC_FOLDER_TYPE_USER_MAIL", 12); define("SYNC_FOLDER_TYPE_USER_APPOINTMENT", 13); define("SYNC_FOLDER_TYPE_USER_CONTACT", 14); define("SYNC_FOLDER_TYPE_USER_TASK", 15); define("SYNC_FOLDER_TYPE_USER_JOURNAL", 16); define("SYNC_FOLDER_TYPE_USER_NOTE", 17); define("FLD_FLAGS_REPLYASUSER", 1); $client = new SoapClient(null, array( 'location' => "$server/Microsoft-Server-ActiveSync?Cmd=WebserviceDevice&DeviceId=webservice&DeviceType=webservice&User=$user", 'uri' => "http://localhost/soap", 'trace' => 1, 'login' => $user, 'password' => $pass )); try { $add_user = "user-the-folder-originally-belongs-to"; $add_id = "folder-id-of-that-folder"; $add_name = "The name the folder should be displayed as"; $add_type = SYNC_FOLDER_TYPE_USER_APPOINTMENT; $add_flags = FLD_FLAGS_REPLYASUSER; $r = $client->AdditionalFolderAdd($devid, $add_user, $add_id, $add_name, $add_type, $add_flags); echo "Add:\n". print_r($r, true) ."\n"; // $r = $client->AdditionalFolderEdit($devid, $add_id, "! Different name", $add_flags); // echo "Edit:\n". print_r($r, true) ."\n"; // $r = $client->AdditionalFolderRemove($devid, $add_id); // echo "Remove: ". print_r($r, true) ."\n"; $r = $client->AdditionalFolderList($devid); echo "Current folders:\n". print_r($r, true); } catch (SoapFault $sf) { echo "soap fault: ". $sf->getMessage() . "\n"; exit(1); }
This is a script that you execute directly on your server and not through the browser. e.g. via
php soap-folders.php
@mylotec said in Opening shared calendar:
and is there a possability to dissable the oppointment reminder?
No, this is not possible.
-
@fbartels
Thanks a lot! finaly got it working!! spent hours of searching and it was this simple … :D