• FEATURES
  • PRICING
  • MARKETPLACE
  • CASE STUDIES
  • BLOG
  • Configuring Specimen Tree with custom field

    Hi,
    I am following the JSON guide -
    https://openspecimen.atlassian.net/wiki/spaces/CAT/pages/141885618/Configuring+fields+in+specimen+tree

    However when I call the custom forms custom field, it is not returning the fields data. It is returning ‘Not Specified’ when a value of ‘Greiner Tube G 1ml’ exists for the sample.

    The following guide states format should be: - “expr”:“Specimen.customFields.uMMSMicrobiomeExtension.isolateNumber” But this does not seem to work.
    https://openspecimen.atlassian.net/wiki/spaces/CAT/pages/53051395/Participant+Specimen+List+View+Configuration

    Could you tell me if this is the correct formatting to pull the data for the custom field ‘containerTubeType’ please?

    [{
    “name”: “specimenTree”,
    “data”: {
    “fields”: [
    {
    “name”: “specimen”,
    “caption”: “Description”,
    “type”: “specimen-description”,
    “width”: “200px”
    },
    {
    “name”: “specimen.label”,
    “caption”: “Label”,
    “type”: “specimen.Label”,
    “width”: “150px”
    },
    {
    “name”: “Specimen.customFields.SpecimenAdditionalFields.containerTubeType”,
    “baseField”: “customFields.SpecimenAdditionalFields.containerTubeType”,
    “caption”: “Container Tube Type”,
    “width”: “20%”
    }
    ]
    }
    }]

    Thanks,
    John

    Hi @John_M,

    The wiki page is a bit outdated. I have updated it now to reflect the changes made in the recent releases. Refer to section ‘JSON attributes and its uses’ on the wiki page https://openspecimen.atlassian.net/wiki/x/A4ApAw.

    Sorry for the inconvenience.

    Thanks,
    Neha

    Thank you @Neha_Nimgire, a great help.

    Where are you finding the “controlName”: “DD20”?
    I have called the control attribute ‘containerTubeType’ but this does not seem to be correct as it doesn’t work. Imagine they are stored in an SQL table which im struggling to locate.

    Thanks,
    John

    Hello @John_M,

    The control name is within the form XML which can be downloaded from user interface. Refer to ‘Exporting a form’ section under https://openspecimen.atlassian.net/wiki/x/lwHfBg. Once you download the form XML, look for the section for the field you need and the control name is within xxx.

    Thanks,
    Poornima

    Thank you @pgovindrao. I got that working.

    Is there a command to stop “Not Specified” apprearing? I.e.displays ‘blank’ when no value is available. Prior to updating the work flow the system displayed ‘blank’ when a value is not available.

    Thanks,
    John