← Back to team overview

dhis2-devs team mailing list archive

Re: [Bug 551295] Re: Validation of groupset exclusivity

 

Hi lars.
in the add/update group set windows, i have removed the groups that
are already member of a group set
so thats fine
what needs to be done: when adding/updating a group, we need to check
each selected dataelement/indicator/orgunit whether it is a member of
a group in that groups group set

 if ( CollectionUtils.containsAny( selectedDataElement.getGroups(),
currentGroupSet.getMembers() )
//then we cannot add
- What is currentGroupSet ?With new database we don't have any GroupSet ?
- When add new Group how do you know currentGroupSet to get member ?

================================
Tran Thanh Tri
  HISP Viet Nam
  Cell phone: +84903670967
  Website: http://tringuyenvn.com
================================



2010/5/18 Lars Helge Øverland <larshelge@xxxxxxxxx>:
>
>
> On Tue, May 18, 2010 at 8:57 AM, Thanh Tri Tran <tranthanhtri84@xxxxxxxxx>
> wrote:
>>
>> I have solution is: We can create default GroupSet and default Group ?
>> When create Element, it will belong default Group and default Group will
>> belong default GroupSet .
>>
>
> I don't think that's necessary... Lets have a chat.
> Lars
>
>>
>> --
>> Validation of groupset exclusivity
>> https://bugs.launchpad.net/bugs/551295
>> You received this bug notification because you are a member of DHIS 2
>> developers, which is subscribed to DHIS.
>>
>> Status in DHIS 2 - District Health Information Software: Confirmed
>>
>> Bug description:
>> Validation of groupset exclusivity. This applies to dataelement,
>> indicator, orgunit groupset. Exclusivity means that an element can only be a
>> member of one of the groups in a groupset. This implies that:
>>
>> 1) User should not be allowed to assign a group to more than 1 group set
>> (on both add new and edit existing)
>> 2) User should not be allowed to assign an element (eg dataelement) to
>> more than one group in a groupset (on both add new and edit existing)
>>
>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>



Follow ups

References