http://ofbiz.116.s1.nabble.com/Users-Minilang-Service-doesn-t-work-tp137121p137133.html
There is no code other than i've posted. What code did you have in mind Jacopo?
>Hi Charles,
>
>could you please send the code that implements the updateHotel minilang
>method?
>
>The problem is probably there...
>
>Jacopo
>
>
>Charles Johnson wrote:
>
>
>>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.png>>
>>The result of submitting the form can be seen here:
>>
>>
http://www.cehjohnson.uklinux.net/misc/hotel-form-dos.png>>
>>The 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>>
>>
>>
>
>
>_______________________________________________
>Users mailing list
>
[hidden email]
>
http://lists.ofbiz.org/mailman/listinfo/users>
>
>
>