← Back to team overview

dhis2-devs team mailing list archive

Optionset api not returning the name and code v2.26

 

Hi

We have a dropdown list of comment options linked to the dataelements as
option set comments but the drop down populates as undefined.

Upon checking the api (/api/optionSets/) to confirm what is returned, I see
it only returns the id not the other values.

this is what is returned in v2.26:
options:
[

   -
   {
      - id: "AMrXb7wAiKV"
      },
   -
   {
      - id: "yCLGIfdYbQ4"
      },



this is what is returned in v2.20:
options:
[

   -
   {
      - id: "AMrXb7wAiKV",
      - name: "#{1} No evidence",
      - code: "#{1} No evidence",
      - created: "2015-03-09T19:33:15.000+0000",
      - lastUpdated: "2015-03-09T19:33:15.000+0000",
      - href: "url ...."
      },
   -
   {
      - id: "yCLGIfdYbQ4",
      - name: "#{2} Evidence not valid/irrelevant",
      - code: "#{2} Evidence not valid/irrelevant",
      - created: "2015-03-09T19:33:15.000+0000",
      - lastUpdated: "2015-03-09T19:33:15.000+0000",
      - href: "url ....."
      },


Is there a script that was neglected in the upgrade process or some other
setting that needs to be changed?

Regards
Pooben

-- 


*This message and any attachments are subject to a disclaimer published at 
http://www.hisp.org/policies.html#comms_disclaimer 
<http://www.hisp.org/policies.html#comms_disclaimer>.  Please read the 
disclaimer before opening any attachment or taking any other action in 
terms of this electronic transmission.  If you cannot access the 
disclaimer, kindly send an email to disclaimer@xxxxxxxx 
<disclaimer@xxxxxxxx> and a copy will be provided to you. By replying to 
this e-mail or opening any attachment you agree to be bound by the 
provisions of the disclaimer.*

Follow ups