Hi,
i’ve a problem about the SuggestionField or PickerField when i clear the value.
If i change value, this is saved correctly, but when i try to clear (so i want to set a null value ) and save,
edit entity is not affected by the change.
Any “suggestions”
My entity property is:
@SystemLevel
@Embedded
@AttributeOverrides({
@AttributeOverride(name = "codComune", column = @Column(name = "COMUNE_NASCITA_ID_COD_COMUNE")),
@AttributeOverride(name = "codPv", column = @Column(name = "COMUNE_NASCITA_ID_COD_PV"))
})
protected TcT23ComuniCompKey comuneNascitaId;
@Transient
@MetaProperty(related = "comuneNascitaId")
protected TcT23Comuni comuneNascita;
There is a reference to the entity of different store.
Here the suggestion field:
<suggestionPickerField id="comuneNascitaField"
inputPrompt="Scrivi il comune"
property="comuneNascita" captionProperty="descrComune"
width="100%" minSearchStringLength ="3" dataContainer="componentiDc">
<query entityClass="com.ls.smc.entity.TcT23Comuni" escapeValueForLike="true" view="_local"
searchStringFormat="%$searchString%">
<![CDATA[select e from smc_TcT23Comuni e where e.descrComune like :searchString escape '\']]></query>
<actions>
<action id="clearNascita" type="picker_clear" visible="true" enable="true" />
</actions>
</suggestionPickerField>