http://ofbiz.116.s1.nabble.com/Users-Minilang-Service-doesn-t-work-tp137121p137128.html
Alexandre, you're a star. Thanks so much - that did it. I hope to learn
> Do you have a field like 'default-entity-name="Hotel"' between the
> name and engine fields in the service definition?
> If not then I think the service can't see the input fields in the
> parameters.
>
> Alexandre Gomes
>
>
>
> On 2/1/06, *Charles Johnson* <
[hidden email]
> <mailto:
[hidden email]>> wrote:
>
> I did as you suggested, which left my form thus:
>
> <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="hotelId"></field>
> <field name="addressLine2"><hidden/></field>
>
> <field name="submitButton" title="update"
> widget-style="smallSubmit">
> <submit button-type="button"/>
> </field>
> </form>
>
> so visually, this was the same as you saw in the image before, but
> with
> the addition of the pk field.
> It appears that nothing is coming through into the service, as
> with the
> service now simply defined as
>
>
>
>
> <log level="info" message="********* Trying to do update again
> *********"/>
> <log level="info" message="${parameters}"/>
>
>
> i get this:
>
>
http://www.cehjohnson.uklinux.net/misc/hotel-form-dos2.png>
> and with the service defined as this (with a mind on the
> 'default-map-name' of the form [what does that mean precisely btw?])
>
> <log level="info" message="********* Trying to do update again
> *********"/>
> <log level="info" message="${hotel}"/>
>
> i get this:
>
>
http://www.cehjohnson.uklinux.net/misc/hotel-form-dos3.png>
> CJ
>
> Alexandre Gomes wrote:
>
> > Unhide the hotelId field in the form definition a enter it
> > manually. I think there's an hotelId definition in the parameters
> > shown in the log you sent but that may have been put in the session
> > before you did the form update.
> >
> > Alexandre Gomes
> >
> > On 1/31/06, *Charles Johnson* <
[hidden email]
> <mailto:
[hidden email]>
> > <mailto:
[hidden email]
> <mailto:
[hidden email]>>> wrote:
> >
> > Well you may well be right. I'm working solely by imitation
> and trial
> > and error at the moment as the undeprecated minilang is mostly
> > undocumented.
> >
> > Where and how would i set it?
> >
> > CJ
> >
> > Alexandre Gomes wrote:
> >
> > > Hi,
> > >
> > > Forgive me if I'm saying nonsense but I think you're not
> passing the
> > > hotelId field with a value so the simple method can't find
> the hotel
> > > you're trying to update.
> > >
> > > Alexandre Gomes
> > >
> >
> >------------------------------------------------------------------------
> > >
> > >
> > >_______________________________________________
> > >Users mailing list
> > >
[hidden email] <mailto:
[hidden email]>
> <mailto:
[hidden email] <mailto:
[hidden email]>>
> > >
http://lists.ofbiz.org/mailman/listinfo/users> > >
> >
> >
> > _______________________________________________
> > Users mailing list
> >
[hidden email] <mailto:
[hidden email]>
> <mailto:
[hidden email] <mailto:
[hidden email]>>
> >
http://lists.ofbiz.org/mailman/listinfo/users> >
> >
> >------------------------------------------------------------------------
> >
> >
> >_______________________________________________
> >Users mailing list
> >
[hidden email] <mailto:
[hidden email]>
> >
http://lists.ofbiz.org/mailman/listinfo/users> >
>
> _______________________________________________
> Users mailing list
>
[hidden email] <mailto:
[hidden email]>
>
http://lists.ofbiz.org/mailman/listinfo/users>
>
>------------------------------------------------------------------------
>
>
>_______________________________________________
>Users mailing list
>
[hidden email]
>
http://lists.ofbiz.org/mailman/listinfo/users>