Posted by
Charles Johnson-2 on
Jan 30, 2006; 4:12pm
URL: http://ofbiz.116.s1.nabble.com/Users-Minilang-Service-doesn-t-work-tp137121.html
I've been trying to create an 'updateHotel' service based on the content
app 'updateSurvey' service and for the life of me can't see how the
latter differs from mine, but certainly mine doesn't work, i.e. the
entity does not get updated.
I get the entity state to date via an edit link, which gives me the
following form:
http://www.cehjohnson.uklinux.net/misc/hotel-form.pngThe result of submitting the form can be seen here:
http://www.cehjohnson.uklinux.net/misc/hotel-form-dos.pngThe code of the form is:
<form name="HotelEdit" title="" type="single"
default-title-style="myTitle" default-map-name="hotel" target="updateHotel">
<auto-fields-entity entity-name="Hotel" default-field-type="edit" />
<!-- Hide these fields -->
<field name="hotelId"><hidden/></field>
<field name="addressLine2"><hidden/></field>
<field name="submitButton" title="update" widget-style="smallSubmit">
<submit button-type="button"/>
</field>
</form>
and the service is:
<!-- this will be implemented in OFBiz minilang -->
<service name="updateHotel" engine="simple"
location="org/ofbiz/appointments/AppointmentsServices.xml"
invoke="updateHotel">
<description>Update the hotel details</description>
<auto-attributes mode="IN" include="pk" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
What is causing this problem?
CJ
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users