Doubled up Lookup.local on entity.documenttemplate archetype
Submitted by Guest on Tue, 12/06/2012 - 18:37
So I somehow managed to endup with a double up in the lookup.local for
entity.documentTemplate.
in the propertymap I have 2 entries for customercredit
The LinKID's for each are different, and if I select my credit report to the wrong entry it wont print.
So...how do I determine the entry to remove....
I can select the corect entry via trial and error in the webapp but I cant remove it in the webapp.
{code}
<linkId>cbb73905-b109-11e1-b25a-133c60f4fba2</linkId><name>act.customerAccountChargesCredit</name><version>0</version><details/><type>java.lang.String</type><value>Customer Credit</value></org.openvpms.component.business.domain.im.datatypes.property.AssertionProperty><org.openvpms.component.business.domain.im.datatypes.property.AssertionProperty><id>-1</id><active>true</active><archetypeId><entityName>descriptor</entityName><concept>assertionProperty</concept><version>1.0</version><qualifiedName>descriptor.assertionProperty.1.0</qualifiedName><shortName>descriptor.assertionProperty</shortName></archetypeId><linkId>cbb73906-b109-11e1-b25a-133c60f4fba2</linkId>..................<name>act.customerAccountChargesCounter</name>5a-133c60f4fba2</linkId><name>act.customerEstimation</name><version>0</version><details/><type>java.lang.String</type><value>Customer Estimation</value></org.openvpms.component.business.domain.im.datatypes.property.AssertionProperty><org.openvpms.component.business.domain.im.datatypes.property.AssertionProperty><id>-1</id><active>true</active><archetypeId><entityName>descriptor</entityName><concept>assertionProperty</concept><version>1.0</version><qualifiedName>descriptor.assertionProperty.1.0</qualifiedName><shortName>descriptor.assertionProperty</shortName></archetypeId><linkId>cbb73908-b109-11e1-b25a-133c60f4fba2</linkId><name>act.customerAccountChargesCredit</name><version>0</version><details/><type>java.lang.String</type><value>Customer Credit</value></org.openvpms.component.business.domain.im.datatypes.property.AssertionProperty>
{code}
Re: Doubled up Lookup.local on entity.documenttemplate archetype
The entity.documentTemplate archetype is incorrect. It has a duplicate entry from Customer Credit:
You can edit the entity.documentTemplate.adl file in:
and remove the second instance. Reloading archetypes will delete it from the database.
That said, I'm not sure its the cause of your problem. Whats the error message?
-Tim
Re: Doubled up Lookup.local on entity.documenttemplate archetype
The error was just the standard "NO template associated with this ...." error
I assumed it was because the print button in the customer account workspace was associated with a specific credit linkid
If I change it to the other Customer Credit report type it works no probs
Ben