I try to create a new entity with MiniLang and a form.
The entity definition is:
<entity entity-name="station" package-name="org.ofbiz.mystations"
title="Entity for station data">
<field name="stationId" type="id-ne"></field>
<field name="Name" type="id"></field>
<field name="Strasse" type="id"></field>
<field name="Hausnr" type="id"></field>
<field name="PLZ" type="id"></field>
<field name="Ort" type="id"></field>
<field name="Beschreibung" type="id"></field>
<prim-key field="stationId" />
</entity>
the form is this:
<form name="addStation" type="single" target="createStation">
<auto-fields-service service-name="createStation"/>
<auto-fields-entity entity-name="station"/>
<field name="stationId"><hidden/></field>
<field name="Name"></field>
<field name="Strasse"></field>
<field name="Hausnr"></field>
<field name="Ort"></field>
<field name="Beschreibung"></field>
<field name="submitButton" title="add Station" widget-style="standardSubmit"><submit button-type="button"/></field>
</form>
</forms>
and the minilang-service definition is this:
<simple-method method-name="createStation" short-description="Create a Station"
login-required="true">
<make-value entity-name="station" value-name="newEntity" />
<set-nonpk-fields map-name="parameters" value-name="newEntity" />
<set-pk-fields map-name="parameters" value-name="newEntity" />
<create-value value-name="newEntity" />
</simple-method>
Now the error I get is: Entity value not found with name: Method = createStation, File = file:/home/std/Dokumente/ofbiz/hot-deploy/mystations/script/org/ofbiz/mystations/mystationsServices.xml, Element = , Line 16null
What is going wrong? The entity "station" exists. Can I get further information (where is the error log?). How can I get debug information?
Thank you for your help!