Thanks! That Worked!
On Tue, Mar 4, 2014 at 5:30 PM, <devs-request(a)xwiki.org> wrote:
Send devs mailing list submissions to
devs(a)xwiki.org
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
devs-request(a)xwiki.org
You can reach the person managing the list at
devs-owner(a)xwiki.org
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" <firmusoft.xwiki(a)gmail.com>
To: devs(a)xwiki.org
Subject: [xwiki-devs] How can we add multiple values to a dbList
property using velocity
Message-ID:
<
CAFNvsku8cE60bhbDJd+1YB1WN26ObKm8QAO2013QHDxGUSWHcA(a)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 <sofiane.baloul(a)xwiki.com>
To: XWiki Developers <devs(a)xwiki.org>
Subject: Re: [xwiki-devs] How can we add multiple values to a dbList
property using velocity
Message-ID:
<
CAGgD37buBaAUMqXa3w3SV9hhBS1V+i+zj2gaBQFCSKfj9etxgw(a)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 <firmusoft.xwiki(a)gmail.com>om>:
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
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
------------------------------
Message: 3
Date: Tue, 4 Mar 2014 10:53:27 +0100
From: Sofiane Baloul <sofiane.baloul(a)xwiki.com>
To: XWiki Developers <devs(a)xwiki.org>
Subject: [xwiki-devs] (no subject)
Message-ID:
<CAGgD37YKaBv2ZONXp-x7Tm9VEMwEr=
dr8VVqkFiZBP2vRXN8sg(a)mail.gmail.com>
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 <sofiane.baloul(a)xwiki.com>
To: XWiki Developers <devs(a)xwiki.org>
Subject: [xwiki-devs] Requesting rights on xwiki-contrib
Message-ID:
<
CALCkubfpYCpX3gn4c+PaQLuV5Bayi99Ro7W7hQc4tPRocMcvcw(a)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 <sofiane.baloul(a)xwiki.com
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
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
------------------------------
Subject: Digest Footer
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
------------------------------
End of devs Digest, Vol 81, Issue 4
***********************************