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 |
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 |
>>
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 >> >> >> > > >_______________________________________________ >Users mailing list >[hidden email] >http://lists.ofbiz.org/mailman/listinfo/users > > > > _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
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 |
In reply to this post by Charles Johnson-2
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 >>> >>> >>> >>> >>> >>_______________________________________________ >>Users mailing list >>[hidden email] >>http://lists.ofbiz.org/mailman/listinfo/users >> >> >> >> >> >> > >_______________________________________________ >Users mailing list >[hidden email] >http://lists.ofbiz.org/mailman/listinfo/users > > > > _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
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 |
In reply to this post by Charles Johnson-2
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] http://lists.ofbiz.org/mailman/listinfo/users |
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] http://lists.ofbiz.org/mailman/listinfo/users |
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] >http://lists.ofbiz.org/mailman/listinfo/users > _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
In reply to this post by Jacopo Cappellato
I'm sure it's not updated. Question: if my form is submitted to a
service, don't the fields automatically get put in 'parameters'? Otherwise how can the service access them? CJ Jacopo Cappellato wrote: >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 > > > > _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
In reply to this post by Charles Johnson-2
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]> wrote: Well you may well be right. I'm working solely by imitation and trial _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
A client of ours is receiving increased
traffic. We upgraded to a dual P4 server and it helped for a bit, but it’s
starting to get bogged down during occasional high-traffic periods. I’ve followed the optimization tips
in the Wiki, but still need to make sure that the code modifications we made
are using the cache efficiently. Right now one server is handling both
application and db. I’m thinking of breaking out db to a different
server. Just wondering if other OFBiz admins had
any info they’d like to share on their experiences with handling increased
traffic. I was also wondering about how many simultaneous visitors can your
server handle at a time. At peak moments we seem to be able to handle an
average of 1 completed order every minute over a span of several hours (a few
hundred orders in an afternoon). Any more traffic than that, and the site
slows down so much that the average # of completed orders drops significantly. Any feedback would be greatly appreciated. Thank you! sterling _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
In reply to this post by Alexandre Gomes-5
If everything is "tuned" properly the server should scale linearly in the range it is tuned for. In other words, no matter the load with twice the traffic the response times should double and no more. In any setup there will be an effective traffic range and at the top end of that range the response times will no longer scale linearly. That is the point you want to focus on, ie when the load ceases to scale linearly. On a live server you can use the ServerHitBin to identify these points by looking at the traffic versus response time for different periods. The trick with this is to see which resource is not scaling linearly. If it is scaling linearly throughout, you need more hardware to handle the load. If it is scaling memory until it runs out of memory, you can just add more memory to the server (this is a common non- linear scaling point because hard-disk as memory is a LOT slower than RAM). You can watch memory, processor and disk resources with various tools (for Contegix servers they remotely monitor all of this and send us alarm notices if/when something happens, and that's a good way to go). Beyond this it's a little hard to say without looking closer. There is some general info in the Basic Production Setup Guide, and some helpful info in the Configuration, Deployment, and Maintenance outline (both of these are linked to from the Docs & Books page on the ofbiz.org site). Best of luck, and nice to hear from you again Sterling. -David On Jan 31, 2006, at 5:39 PM, Sterling Okura wrote: > A client of ours is receiving increased traffic. We upgraded to a > dual P4 server and it helped for a bit, but it’s starting to get > bogged down during occasional high-traffic periods. > > > > I’ve followed the optimization tips in the Wiki, but still need to > make sure that the code modifications we made are using the cache > efficiently. > > > > Right now one server is handling both application and db. I’m > thinking of breaking out db to a different server. > > > > Just wondering if other OFBiz admins had any info they’d like to > share on their experiences with handling increased traffic. I was > also wondering about how many simultaneous visitors can your server > handle at a time. At peak moments we seem to be able to handle an > average of 1 completed order every minute over a span of several > hours (a few hundred orders in an afternoon). Any more traffic > than that, and the site slows down so much that the average # of > completed orders drops significantly. > > > > Any feedback would be greatly appreciated. > > > > Thank you! > > sterling > > > > > _______________________________________________ > Users mailing list > [hidden email] > http://lists.ofbiz.org/mailman/listinfo/users _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
David,
Thank you for the helpful response sir. I've browsed through the Server Stats page in Webtools before, but never dug into it. What a great tool with lots of detailed info. Looks like we'll be moving the DB to it's own server so we can bump up the thread count without slowing the server to a crawl during peak periods. Thank you sir! sterling -----Original Message----- From: David E. Jones [mailto:[hidden email]] Sent: Tuesday, January 31, 2006 7:38 PM To: OFBiz Users / Usage Discussion Subject: Re: [OFBiz] Users - Handling increased traffic If everything is "tuned" properly the server should scale linearly in the range it is tuned for. In other words, no matter the load with twice the traffic the response times should double and no more. In any setup there will be an effective traffic range and at the top end of that range the response times will no longer scale linearly. That is the point you want to focus on, ie when the load ceases to scale linearly. On a live server you can use the ServerHitBin to identify these points by looking at the traffic versus response time for different periods. The trick with this is to see which resource is not scaling linearly. If it is scaling linearly throughout, you need more hardware to handle the load. If it is scaling memory until it runs out of memory, you can just add more memory to the server (this is a common non- linear scaling point because hard-disk as memory is a LOT slower than RAM). You can watch memory, processor and disk resources with various tools (for Contegix servers they remotely monitor all of this and send us alarm notices if/when something happens, and that's a good way to go). Beyond this it's a little hard to say without looking closer. There is some general info in the Basic Production Setup Guide, and some helpful info in the Configuration, Deployment, and Maintenance outline (both of these are linked to from the Docs & Books page on the ofbiz.org site). Best of luck, and nice to hear from you again Sterling. -David _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
In reply to this post by Alexandre Gomes-5
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]>> 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]> > >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 > _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
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]> wrote:
I did as you suggested, which left my form thus: _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
Alexandre, you're a star. Thanks so much - that did it. I hope to learn
the minilang in the end - any tips? ;-) CJ Alexandre Gomes wrote: > 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 > _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
Free forum by Nabble | Edit this page |