http://ofbiz.116.s1.nabble.com/Users-Minilang-Service-doesn-t-work-tp137121p137136.html
I'm sure it's not updated. Question: if my form is submitted to a
>Hmmm....
>
>I don't know... everything seems correct.
>Are you sure that the value is not updated? stupid question :-)
>Any idea from others?
>
>Jacopo
>
>
>Charles Johnson wrote:
>
>
>>OK, sorry - yes, that was stupid of me - i should have posted that too.
>>Here it is:
>>
>> <simple-method method-name="updateHotel" short-description="Update
>>the hotel details"
>> login-required="false">
>> <make-value entity-name="Hotel" value-name="lookupKeyValue"/>
>> <set-pk-fields map-name="parameters" value-name="lookupKeyValue"/>
>> <find-by-primary-key map-name="lookupKeyValue"
>>value-name="lookedUpValue"/>
>> <set-nonpk-fields map-name="parameters" value-name="lookedUpValue"/>
>> <log level="info" message="********* Trying to do update again
>>*********"/>
>> <log level="info" message="${lookedUpValue}"/>
>> <store-value value-name="lookedUpValue"/>
>>
>> </simple-method>
>>
>>TIA.
>>
>>CJ
>>
>>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>
>
>
>