Collecting Trip table Form definition and Data Entry

In form definition, I see the table “Collecting Trip” with the fields I want to use, but in data entry, I can’t see the same table. How can I fix this? Thank you.

Hi @Anna,

My guess is that one of two things is happening:

  1. The default form is still in the cache
  2. You have edited CollectingTrip and the data entry form is calling CollectingTripForm

To diagnosis if it is 1, sign out and back in again. If the form is still the default, this indicates that it is 2.

If you want the fields you have in the first image everywhere you interact with a Collecting Trip, you could just copy and paste the edits you have made in CollectingTrip into CollectingTripForm. Otherwise, it would involve changing the form definition that is called from wherever you are opening Collecting Trip from. If you would like help with that, I would just ask that you post the full .xml of all the definitions. This can be done by going to the panel with all the tables and switching to “XML editor” then copying and pasting all the text that is there. When posting here, it is best to enclose it in ``` so that it formats as code.


Hi @Anna,

Mark provided great insight above on what are most likely the underlying issue you are seeing! By default, the Collecting Trip query combo box is configured to use the CollectingTripForm view definition rather than the CollectingTrip one.

When looking to edit a particular form, I recommend going to the “Form Meta” menu via the gear (:gear_:) button in the top right of any form.

See here:

This will bring you directly to the view definition you are looking to edit based on what the current logged in user will see!

If you’re already editing forms, you can actually go directly to the appropriate view definition by opening the dialog from the editor and clicking the pencil (:pencil_:) icon in the top right where the meta menu would usually be displayed:

1 Like

Hi @markp @Grant Thank you so much.
I attach part of .xml code.

<?xml version="1.0" encoding="UTF-8"?>
<viewset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Invertebrate Views" i18nresname="views">
	<views>
		<view name="Accession" class="edu.ku.brc.specify.datamodel.Accession" busrules="edu.ku.brc.specify.datamodel.busrules.AccessionBusRules">
			<desc>The Accession form.</desc>
			<altviews>
				<altview name="Accession View" viewdef="Accession" mode="view" default="true"/>
				<altview name="Accession Edit" viewdef="Accession" mode="edit"/>
			</altviews>
		</view>
		<view name="AccessionCO" class="edu.ku.brc.specify.datamodel.Accession" busrules="edu.ku.brc.specify.datamodel.busrules.AccessionBusRules">
			<desc>The Accession form as seen in the CO form.</desc>
			<altviews>
				<altview name="AccessionCO View" viewdef="AccessionCO" mode="view" default="true"/>
				<altview name="AccessionCO Edit" viewdef="AccessionCO" mode="edit"/>
			</altviews>
		</view>
		<view name="AccessionItems" class="edu.ku.brc.specify.datamodel.CollectionObject" usedefbusrule="false" resourcelabels="false" busrules="edu.ku.brc.specify.datamodel.busrules.CollectionObjectBusRules">
			<desc>The Collection Object Subform for Accessions.</desc>
			<altviews>
				<altview name="COS View" viewdef="AccessionItems" mode="view"/>
				<altview name="COS Edit" viewdef="AccessionItems" mode="edit" default="true"/>
				<altview name="COS Table Edit" viewdef="AccessionItems Table" mode="edit"/>
				<altview name="COS Table View" viewdef="AccessionItems Table" mode="view"/>
			</altviews>
		</view>
		<view name="Address" class="edu.ku.brc.specify.datamodel.Address" busrules="edu.ku.brc.specify.datamodel.busrules.AddressBusRules" resourcelabels="false">
			<desc>Address subform within the Accession form.</desc>
			<altviews>
				<altview name="Address View" viewdef="Address" mode="view" validated="false" default="true"/>
				<altview name="Address Edit" viewdef="Address" mode="edit" validated="true"/>
				<altview name="Address Table View" viewdef="Address Table" mode="view"/>
				<altview name="Address Table Edit" viewdef="Address Table" mode="edit"/>
			</altviews>
		</view>
		<view name="Agent" class="edu.ku.brc.specify.datamodel.Agent" busrules="edu.ku.brc.specify.datamodel.busrules.AgentBusRules" isinternal="false" resourcelabels="false">
			<desc>Agent subform within the AccessionAgent form.</desc>
			<altviews defaultmode="view">
				<altview name="Agent View" title="Agent" viewdef="Agent" mode="view" validated="false"/>
				<altview name="Agent Edit" title="Agent" viewdef="Agent" mode="edit" validated="true" default="true"/>
			</altviews>
		</view>
		<view name="CollectingEvent" class="edu.ku.brc.specify.datamodel.CollectingEvent" busrules="edu.ku.brc.specify.datamodel.busrules.CollectingEventBusRules" isinternal="false" resourcelabels="false">
			<desc>CollectingEvent Form</desc>
			<altviews>
				<altview name="CollectingEvent View" viewdef="CollectingEvent" mode="view" default="true"/>
				<altview name="CollectingEvent Edit" viewdef="CollectingEvent" mode="edit"/>
			</altviews>
		</view>
		<view name="CollectingEventSub" class="edu.ku.brc.specify.datamodel.CollectingEvent" busrules="edu.ku.brc.specify.datamodel.busrules.CollectingEventBusRules" resourcelabels="false">
			<desc>CollectingEvent SubForm</desc>
			<altviews>
				<altview name="CollectingEventSub View" viewdef="CollectingEventSub" mode="view" default="true"/>
				<altview name="CollectingEventSub Edit" viewdef="CollectingEventSub" mode="edit"/>
			</altviews>
		</view>
		<view name="CollectionObject" class="edu.ku.brc.specify.datamodel.CollectionObject" busrules="edu.ku.brc.specify.datamodel.busrules.CollectionObjectBusRules" isinternal="false" resourcelabels="false">
			<desc>The Collection Object form.</desc>
			<altviews>
				<altview name="Collection Object View" viewdef="Collection Object" mode="view"/>
				<altview name="Collection Object Edit" viewdef="Collection Object" mode="edit" default="true"/>
			</altviews>
		</view>
		<view name="CollectionObjectSub" class="edu.ku.brc.specify.datamodel.CollectionObject" usedefbusrule="false" resourcelabels="false" busrules="edu.ku.brc.specify.datamodel.busrules.CollectionObjectBusRules">
			<desc>The Collection Object Subform for Accessions.</desc>
			<altviews>
				<altview name="COS View" viewdef="CollectionObjectSub" mode="view"/>
				<altview name="COS Edit" viewdef="CollectionObjectSub" mode="edit" default="true"/>
				<!-- <altview name="COS Table Edit" viewdef="CollectionObjectSub Table" mode="edit"/>
                  <altview name="COS Table View" viewdef="CollectionObjectSub Table" mode="view"/>  -->
			</altviews>
		</view>
		<view name="CollectingTrip" class="edu.ku.brc.specify.datamodel.CollectingTrip" busrules="edu.ku.brc.specify.datamodel.busrules.CollectingTripBusRules" resourelabels="false">
			<desc>CollectingTrip Form</desc>
			<altviews>
				<altview name="CollectingTrip View" viewdef="CollectingTrip" mode="view" default="true"/>
				<altview name="CollectingTrip Edit" viewdef="CollectingTrip" mode="edit"/>
			</altviews>
		</view>
		<view name="ConservDescription" class="edu.ku.brc.specify.datamodel.ConservDescription" busrules="edu.ku.brc.specify.datamodel.busrules.ConservDescriptionBusRules" isinternal="false">
			<desc>Conservation Description.</desc>
			<altviews>
				<altview name="Conservation Description View" viewdef="ConservDescription" mode="view"/>
				<altview name="Conservation Description Edit" viewdef="ConservDescription" mode="edit" default="true"/>
			</altviews>

Hi @Grant and @markp

If I want to go directly to edit and I go to the “Form Meta menu”, I can’t.

See here:

Thank you!

Anna

Hi @Anna,

Sorry for the delay!

If you aren’t able to navigate directly to the form definition for a given table, that means you do not currently have a view definition created for it and that it is using the default view. You will need to add a new view definition to your form definition in App Resources.

If you can go directly to the form definition from the :gear_: on Collection Object, you can simply add the view definition to that form definition and it should appear for you.

Hello @Grant

Thank you !

Silvia (RJB) help me to configured the CollectingTripForm view definition rather than the CollectingTrip one. It worked! Thany you!

Anna

1 Like