Login  Register

Re: Users - Minilang Service doesn't work

Posted by Jacopo Cappellato on Jan 30, 2006; 6:38pm
URL: http://ofbiz.116.s1.nabble.com/Users-Minilang-Service-doesn-t-work-tp137121p137137.html

Hi Charles,

0k, so the problem is probably this:

you have defined the "updateHotel" service but you have not implemented
it. In order to do this you have to add a minilang method called
"updateHotel" to the
script/org/ofbiz/appointments/AppointmentsServices.xml file.

Hope this helps,

Jacopo


Charles Johnson wrote:

> could you please send the code that implements the updateHotel minilang
>
> method?
>
> I hope i haven't been labouring under some horrible misapprehension here ;-)
> There is no code other than i've posted. What code did you have in mind Jacopo?
>
> CJ
>
>
>
> Jacopo Cappellato wrote:
>
>> 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