XML counter columns | katy wiseman | 2021-01-14 01:43 | |||||||||||||||||||
Status: Closed | |||||||||||||||||||||
Hi, I'm trying to get an XML counter column to work as described here at the bottom of the page: However it's not working. I've created the sample type as it's shown in the example and pasted the XML code into the XML metadata but it's not generating an automatic 'SampleInLot' number for each new 'Lot' in the table. This is the XML metadata suggested: <tables xmlns="http://labkey.org/data/xml"> <table tableName="MySampType" tableDbType="NOT_IN_DB"> <javaCustomizer class="org.labkey.experiment.api.CountOfUniqueValueTableCustomizer"> <properties> <property name="counterName"> SampleCounter </property> <property name="counterType"> org.labkey.api.data.UniqueValueCounterDefinition </property> <!-- one or more pairedColumns used to derive the unique value --> <property name="pairedColumn"> lot </property> <!-- one or more attachedColumns where the incrementing counter value is placed --> <property name="attachedColumn"> sampleInLot </property> </properties> </javaCustomizer> </table> </tables> Does anyone have any thoughts about how to get this to work? Or any other alternatives? Thanks, Katy |
|||||||||||||||||||||
| |||||||||||||||||||||