Thanks! That Worked!

On Tue, Mar 4, 2014 at 5:30 PM, <[email protected]> wrote:

> Send devs mailing list submissions to
>         [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.xwiki.org/mailman/listinfo/devs
> or, via email, send a message with subject or body 'help' to
>         [email protected]
>
> You can reach the person managing the list at
>         [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of devs digest..."
>
>
> Today's Topics:
>
>    1. How can we add multiple values to a dbList property       using
>       velocity (firmusoft.xwiki)
>    2. Re: How can we add multiple values to a dbList property using
>       velocity (Sofiane Baloul)
>    3. (no subject) (Sofiane Baloul)
>    4. Requesting rights on xwiki-contrib (Sofiane Baloul)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 3 Mar 2014 20:04:44 +0530
> From: "firmusoft.xwiki" <[email protected]>
> To: [email protected]
> Subject: [xwiki-devs] How can we add multiple values to a dbList
>         property        using velocity
> Message-ID:
>         <
> cafnvsku8ce60bhbdjd+1yb1wn26obkm8qao2013qhdxgusw...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
>
> I have used $obj.set to update a dbList property value. But it selected
> only the value I paased in the set method. All the previously selected
> values were unselected. Can you help me to add/update the dbList property
> retaining the previous selections.
>
> Thanks,
> Firmusoft
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 3 Mar 2014 17:52:57 +0100
> From: Sofiane Baloul <[email protected]>
> To: XWiki Developers <[email protected]>
> Subject: Re: [xwiki-devs] How can we add multiple values to a dbList
>         property using velocity
> Message-ID:
>         <
> caggd37bubaaumqxa3w3sv9hhbs1v+i+zj2gabqfcskfj9et...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Firmusoft,
>
> First thing you should know is : if you want to save multiple values in the
> DBList field, you have to check the property "Multiple Select" of the
> DBList field in the XWikiClass (http://screencast.com/t/Jqpehv1K).
>
> If you want to save multiple values using velocity you should to set a
> java.util.List object, example :
> #set($values = ['one', 'two', 'three']) ## $values is an instance of
> java.util.List
> $obj.set('dblist', $values)
>
> to retrieve all values :
> #set($value =$obj.getProperty('dblist').value) ## you get a list of all
> values
> but be careful : $obj.get('dblist') return a String containing all values
> contcatenated with the separator (' ' space is the default separator)
>
> to add new values to a DBList field you shoud use (an update) :
> #set($values =$obj.getProperty('dblist').value)
> $values.add('four') ## you should check whether $values is null or not null
> before.
> $values.add('five')
> $obj.set('dblist', $values)
>
> I hope this help :) and sorry for my bad English.
>
> Good luck.
>
> --
> Sofiane Baloul
> XWiki Developer
>
> 2014-03-03 15:34 GMT+01:00 firmusoft.xwiki <[email protected]>:
>
> > Hi,
> >
> > I have used $obj.set to update a dbList property value. But it selected
> > only the value I paased in the set method. All the previously selected
> > values were unselected. Can you help me to add/update the dbList property
> > retaining the previous selections.
> >
> > Thanks,
> > Firmusoft
> > _______________________________________________
> > devs mailing list
> > [email protected]
> > http://lists.xwiki.org/mailman/listinfo/devs
> >
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 4 Mar 2014 10:53:27 +0100
> From: Sofiane Baloul <[email protected]>
> To: XWiki Developers <[email protected]>
> Subject: [xwiki-devs] (no subject)
> Message-ID:
>         <CAGgD37YKaBv2ZONXp-x7Tm9VEMwEr=
> [email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi dev community.
>
> I'm Sofiane Baloul, I have some experience in developing on XWiki
> plateform,  I would express my interest in contributing and bringing some
> help on some XWiki projects especially on collaborative applications (
> https://github.com/xwiki-contrib ) at the begining.
>
> I've registered on jira.xwiki.org and I'm going to assigne to me some
> tasks
> related to XWiki Contributed Projects.
>
> Best regards.
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 4 Mar 2014 12:37:07 +0100
> From: Sofiane Baloul <[email protected]>
> To: XWiki Developers <[email protected]>
> Subject: [xwiki-devs] Requesting rights on xwiki-contrib
> Message-ID:
>         <
> calckubfpycpx3gn4c+paqluv5bayi99ro7w7hqc4tprocmc...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Sorry, I've forgot to put an email subject and to give my github ID.
>
> My github ID : sbaloul.
>
> Thank you in advance.
>
>
> On Tue, Mar 4, 2014 at 10:53 AM, Sofiane Baloul <[email protected]
> >wrote:
>
> > Hi dev community.
> >
> > I'm Sofiane Baloul, I have some experience in developing on XWiki
> > plateform,  I would express my interest in contributing and bringing some
> > help on some XWiki projects especially on collaborative applications (
> > https://github.com/xwiki-contrib ) at the begining.
> >
> > I've registered on jira.xwiki.org and I'm going to assigne to me some
> > tasks
> > related to XWiki Contributed Projects.
> >
> > Best regards.
> > _______________________________________________
> > devs mailing list
> > [email protected]
> > http://lists.xwiki.org/mailman/listinfo/devs
> >
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>
>
> ------------------------------
>
> End of devs Digest, Vol 81, Issue 4
> ***********************************
>
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to