Posted by
Michael Irving on
Sep 03, 2005; 8:34pm
URL: http://ofbiz.116.s1.nabble.com/OFBiz-Dev-Sending-parameters-tp165933p165941.html
When building a chain of requests.....how do parameters get sent in? For
example:
1. web form calls createPerson service
2. when the createPerson response = "success", then call "createPartyRole"
I have a hidden field in the web for that is set to the role
"EMPLOYEE"....but when the person is created, the log is showing that the
_NA_ role is created. Then when the "chained" createPartyRold is called, I
get a FK violation on the insert. I'm guessing that the "_NA_" value is
hanging around and the chained request isn't getting the "EMPLOYEE" role id.
-----Original Message-----
From:
[hidden email] [mailto:
[hidden email]] On
Behalf Of A. Zeneski
Sent: Saturday, September 03, 2005 12:33 PM
To: OFBiz Project Development Discussion
Subject: Re: [OFBiz] Dev - Sending parameters
Look at a controller.xml file. Look for requests which have a response type
of "request". Instead of rendering a view at that time it will call that
request, run the event and then process that response. That response can
render a view or "chain" to another request.
-----Original Message-----
From: "Michael Irving" <
[hidden email]>
Date: Sat, 3 Sep 2005 08:53:05
To:"'OFBiz Project Development Discussion'" <
[hidden email]>
Subject: RE: [OFBiz] Dev - Sending parameters
Si,
I've been trying to find information on how to build the request chain that
you suggested....but I'm coming up with nothing. I tried the Dev archives
and WIKI.
Can you point me to a "how to" or some examples of this?
Thanks
-----Original Message-----
From:
[hidden email] [mailto:
[hidden email]] On
Behalf Of Si Chen
Sent: Monday, August 29, 2005 2:32 PM
To: OFBiz Project Development Discussion
Subject: Re: [OFBiz] Dev - Sending parameters
Are you using a request chain in the controller? If so it should already
do that for you?
Michael Irving wrote:
> I'm trying to "automatically" go from the createPerson (editPerson) to
> the editcontactmech form. How do I send the partyID to editcontactmech
> form without having to go to the viewProfile page?
>
> -----------------------------------------
>
> Michael Irving
>
> Keynetx, Inc. - Building Solutions for Success
>
> Mobile: (267)474.3564
>
> Fax: (425) 871-2838
>
> email:
[hidden email] <mailto:
[hidden email]>
>
> * * * Visit Our Web Site:
http://www.keynetx.net
> <
http://www.keynetx.net/> * * *
>
>
----------------------------------------------------------------------------
----
>
> NOTICE: If received in error, please destroy and notify sender. Sender
> does not waive confidentiality or privilege, and use is prohibited.
>
>------------------------------------------------------------------------
>
>
>_______________________________________________
>Dev mailing list
>
[hidden email]
>
http://lists.ofbiz.org/mailman/listinfo/dev>
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev