Incorrect display of option names in Line Listing for a MULTI_TEXT dataElement with optionSet

Dear DHIS2 community,

I’m currently facing an issue with how values are displayed in the Line Listing app (DHIS2 version 2.42.0), and I would like to know if this is a known limitation or a misconfiguration on my part.

I’m implementing a Tracker program for gender-based violence (GBV) case management . As part of this, I have created a dataElement with the following configuration:

Name: GBV - Type details (incident)
Value type: MULTI_TEXT
Associated optionSet
The optionSet contains 15 options with defined codes and names (e.g. GBV_PSY_EMOPsychological/emotional violence, GBV_PSY_ADULTERYAdultery / forced polygamy).

Users can select multiple types of violence for a single incident.

Problem observed in Line Listing
When I visualize this field in the Line Listing app, I see the following behavior:

  • When only one option is selected, the option name is correctly displayed (e.g. Rape).
  • But when multiple options are selected, the app displays only the codes (e.g. GBV_PSY_EMO,GBV_PSY_ADULTERY), not their human-readable names.
    :small_orange_diamond: Example from my table:
Organisation GBV - Type of violence GBV - Type details
Organisation unit 1 Sexual violence Rape :white_check_mark:
Organisation unit 1 Psychological violence GBV_PSY_EMO,GBV_PSY_ADULTERY :cross_mark:

My questions

  • Is this the expected behavior or a bug?
  • Is there something I misconfigured (e.g. optionSetValue, other parameters)? Or are there best practices for handling this scenario?

Additional information

  • DHIS2 version: 2.42.0
  • Application: Line Listing
  • The optionSet is fully configured with both codes and names.

Thank you very much for your support and insights :folded_hands:

3 Likes

Hi @manouher

Thank you for the well written post with all the screenshots and info. I’m assuming this is a bug but I’ve triaged this to get confirmation. :folded_hands: Thanks!

2 Likes

I reported this (or similar issue) as a ticket in https://dhis2.atlassian.net/browse/DHIS2-19264

2 Likes

Support for the value type MULTI_TEXT is simply not implemented in the Line Listing app yet. I’ve created a feature ticket for this and the implementation will fix the bug ticket that @ctejo created.

2 Likes

I am facing the same issue with line listing app, when multiple option is selected it shows code instead of names. Appreciate your help on this. Please update if this feature ticket is resolved.

Thanks,