How to show Collecting Trip inside Collection Object form

Home Forums User Forum How to show Collecting Trip inside Collection Object form

This topic contains 1 reply, has 2 voices, and was last updated by Avatar NielsKlazenga 1 month, 4 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3095
    Avatar
    coelho

    Hello there,

    I’m working on customizing the forms of Collection Objects. Everything is going OK but I’m trying to insert Collecting Trip subview without success. I’m able to edit the XML but when I open the Colecttion Object form on Specify, I get two error messages:

    There is no field named ‘CollectingTrip’ for class edu.ku.brc.specify.datamodel.CollectionObject

    The field ‘CollectingTrip’ is invalid and doesn’t exist in a ‘Collection Object’ data object.

    The Collecting Trip appears on Collection Object form but every field is blank when there should be recorded data.

    Can anybody help me with this issue?

    Thanks.

    • This topic was modified 6 months, 2 weeks ago by Avatar coelho.
    #3177
    Avatar
    NielsKlazenga

    Hi,
    Sorry that took so long. I only discovered the User Forum today.

    In case you haven’t already resolved this, Collecting Trip is linked to Collection Object through Collecting Event, so in order to get it into your Collection Object form, you need to use a Collecting Event subform.

    Here is what it looks like for us:

    Screenshot of MEL Collecting Event subform showing Collecting Trip query box.

    You’ll find the code in our botany.views.discipline.xml views on GitHub. The code for the Collecting Trip query box is the bit that starts at line 1037:

    <row>
        <cell type="label" labelfor="43"/>
        <cell type="field" id="43" 
                name="collectingTrip" 
                uitype="querycbx" 
                initialize="name=CollectingTrip;title=Collecting trip" 
                colspan="12"
        /> 
    </row>
    • This reply was modified 1 month, 4 weeks ago by Avatar NielsKlazenga.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.