Hi Lukas ,

I am trying to send a higher value for "Max Occour" for Note field , while
doing so my database gets currupted i.e
the values in vcard get stored in jumbled sequence.
Below is the code snippet and how the value are being stored while running
sync-evolution on this

Code for output Dev Inf sent from client

 <Property>
<PropName>NOTE</PropName>
<MaxSize>1000</MaxSize>
<MaxOccur>200</MaxOccur>
</Property>
<Property>
Response of Server

<Data>
BEGIN:VCARD VERSION:2.1 N:chauhan;anuj;pratap singh;anuj01;CHAUHAN
FN:pratap singh anuj01 anuj ADR:HI ALL;;;;;; BDAY:1987-08-19
EMAIL;INTERNET:acd...@gmail.com.asdasdasdassssssssssssdddddddddddddddddddddddddddddddddddddddddddddddddaaaaaaaaaaaaaaaaaaaaaaaadURL:
helloall.anuj.com TITLE:Sr Softeare engineer ORG:ABC;AWS
TEL;TYPE=VOICE:0011234568 NOTE:HI ALL PHOTO;ENCODING=BASE64:
MDA0NjM3NDk4OQ== END:VCARD
</Data>


Data Dumped in Client Database
BEGIN:VCARD
N:chauhan;anuj;pratap singh;anuj01;CHAUHAN
FN:pratap singh anuj01 anuj
TEL:0011234568
ADR:HI ALL\;\;\;\;\;\;
EMAIL;TYPE=INTERNET:acd...@gmail.com
PHOTO;ENCODING=BASE64;ENCODING=B:MDA0NjM3NDk4OQ==
VERSION:3.0
ORG:ABC\;
TITLE:Sr Softeare engineer
BDAY:19870819
URL:helloall.anuj.com
NOTE:HI ALL
NOTE:4
NOTE:BASE64
END:VCARD



When i change MaxOccur value to a lower value (1-10) syncevolution works
fine.but on higher numbers or setting  repeat=array ,values in dumped
vcard(database) get currupted.
Please guide on this problem.


Regards

Anuj Chauhan


On Thu, Jan 23, 2014 at 9:33 AM, Lukas Zeller <l...@plan44.ch> wrote:

> Hi Anuj,
>
> On 23.01.2014, at 13:24, anuj chauhan <acd...@gmail.com> wrote:
>
> > Do you know how to remove a tag for a proerty from output dev inf xml
> > for Example
> > <PropName>REV</PropName>
> >  <MaxOccur>1</MaxOccur>
> >
> > i do not want MaxOccur tag with property REV ,then how do i achieve it.
>
> MaxOccur is set when the mapping of the property to the internal fieldlist
> is actually limited. So if the internal <field> the REV property is mapped
> to is just a single field, you will have <MaxOccur>1</MaxOccur> (because a
> single field can only take ONE instance).
> To get rid of <MaxOccur>, just map the property to an array field (because
> an array can take unlimited instances).
>
> Now in the case of REV, I can't imagine why you might want multiple
> instances of that field in a single record.
>
> Maybe you could explain *why* you want a REV without MaxOccur?
>
> To generally get rid of MaxOccur, just use SyncML 1.1 instead of 1.2.
>
> Lukas
>
>
>
>
_______________________________________________
os-libsynthesis mailing list
os-libsynthesis@synthesis.ch
http://lists.synthesis.ch/mailman/listinfo/os-libsynthesis

Reply via email to