You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by RamKrishna Swamy <ra...@gmail.com> on 2009/11/05 08:06:19 UTC

How to set partyId in request in javascript

Hi list,

How can I set a selected partyId's value in request/parameter in
javascript??
Please help.

Thanks
Ramkrishna

Re: How to set partyId in request in javascript

Posted by Ramkrishna Swamy <ra...@gmail.com>.
Thanks Rishi, I try this and if i have any doubt then get back to you.

Thanks
Ramkrishna

On Wed, Nov 11, 2009 at 11:51 AM, Rishi Solanki <ri...@gmail.com>wrote:

> I suggested the both way, If you want to pass the parameter then use ;
> parameters: {productPromoCodeId:$F('productPromoCode')} line 418.
> Here the service will get the productPromoCodeId as parameter, note there
> is
> no form submit.
>
> Here
> Rishi Solanki
> Enterprise Software Developer
> HotWax Media Pvt. Ltd.
>
>
> On Tue, Nov 10, 2009 at 10:21 AM, Ramkrishna Swamy <
> ramkrishna.swamyofbiz@gmail.com> wrote:
>
> > Hi Rishi,
> > I saw the suggested file but in the file parameters are sent after
> > submitting the form but in my case I don't submit the form and want to
> pass
> > the parameter.
> >
> > --
> > Thanks
> > Ramkrishna
> >
> > On Mon, Nov 9, 2009 at 5:12 PM, Rishi Solanki <rishisolankii@gmail.com
> > >wrote:
> >
> > > Hi Ram,
> > >
> > > If you are on same window then you can easily copy value by using its
> id.
> > > $('targetId').value = $('sourceId').value in JS.
> > > If you need to pass it as request then can see many example of form
> > > parameters submission in checkoutProcess.js.
> > > If wanna to submit whole form then go like ;
> > > parameters: $('shippingOptionForm').serialize(), requestHeaders:
> {Accept:
> > > 'application/json'}
> > > if wanna to submit single or two value then go like ;
> > > parameters: {productPromoCodeId:$F('productPromoCode')}
> > >
> > > Reference file in OFBiz -
> > > /ecommerce/webapp/ecommerce/images/checkoutProcess.js
> > >
> > > Rishi Solanki
> > > Enterprise Software Developer
> > > HotWax Media Pvt. Ltd.
> > >
> > >
> > > On Fri, Nov 6, 2009 at 1:47 PM, Ramkrishna Swamy <
> > > ramkrishna.swamyofbiz@gmail.com> wrote:
> > >
> > > > Is this possible or not???
> > > > Actually i have a drop down and i want selected partyid to be passed
> on
> > > to
> > > > other form without submitting the first form.
> > > > plz hlp....
> > > >
> > > > Thanks
> > > > Ramkrishna
> > > >
> > > >
> > > > On Thu, Nov 5, 2009 at 12:36 PM, RamKrishna Swamy <
> > > > ramkrishna.swamyofbiz@gmail.com> wrote:
> > > >
> > > > > Hi list,
> > > > >
> > > > > How can I set a selected partyId's value in request/parameter in
> > > > > javascript??
> > > > > Please help.
> > > > >
> > > > > Thanks
> > > > > Ramkrishna
> > > > >
> > > >
> > >
> >
>

Re: How to set partyId in request in javascript

Posted by Rishi Solanki <ri...@gmail.com>.
I suggested the both way, If you want to pass the parameter then use ;
parameters: {productPromoCodeId:$F('productPromoCode')} line 418.
Here the service will get the productPromoCodeId as parameter, note there is
no form submit.

Here
Rishi Solanki
Enterprise Software Developer
HotWax Media Pvt. Ltd.


On Tue, Nov 10, 2009 at 10:21 AM, Ramkrishna Swamy <
ramkrishna.swamyofbiz@gmail.com> wrote:

> Hi Rishi,
> I saw the suggested file but in the file parameters are sent after
> submitting the form but in my case I don't submit the form and want to pass
> the parameter.
>
> --
> Thanks
> Ramkrishna
>
> On Mon, Nov 9, 2009 at 5:12 PM, Rishi Solanki <rishisolankii@gmail.com
> >wrote:
>
> > Hi Ram,
> >
> > If you are on same window then you can easily copy value by using its id.
> > $('targetId').value = $('sourceId').value in JS.
> > If you need to pass it as request then can see many example of form
> > parameters submission in checkoutProcess.js.
> > If wanna to submit whole form then go like ;
> > parameters: $('shippingOptionForm').serialize(), requestHeaders: {Accept:
> > 'application/json'}
> > if wanna to submit single or two value then go like ;
> > parameters: {productPromoCodeId:$F('productPromoCode')}
> >
> > Reference file in OFBiz -
> > /ecommerce/webapp/ecommerce/images/checkoutProcess.js
> >
> > Rishi Solanki
> > Enterprise Software Developer
> > HotWax Media Pvt. Ltd.
> >
> >
> > On Fri, Nov 6, 2009 at 1:47 PM, Ramkrishna Swamy <
> > ramkrishna.swamyofbiz@gmail.com> wrote:
> >
> > > Is this possible or not???
> > > Actually i have a drop down and i want selected partyid to be passed on
> > to
> > > other form without submitting the first form.
> > > plz hlp....
> > >
> > > Thanks
> > > Ramkrishna
> > >
> > >
> > > On Thu, Nov 5, 2009 at 12:36 PM, RamKrishna Swamy <
> > > ramkrishna.swamyofbiz@gmail.com> wrote:
> > >
> > > > Hi list,
> > > >
> > > > How can I set a selected partyId's value in request/parameter in
> > > > javascript??
> > > > Please help.
> > > >
> > > > Thanks
> > > > Ramkrishna
> > > >
> > >
> >
>

Re: How to set partyId in request in javascript

Posted by Ramkrishna Swamy <ra...@gmail.com>.
Hi Rishi,
I saw the suggested file but in the file parameters are sent after
submitting the form but in my case I don't submit the form and want to pass
the parameter.

-- 
Thanks
Ramkrishna

On Mon, Nov 9, 2009 at 5:12 PM, Rishi Solanki <ri...@gmail.com>wrote:

> Hi Ram,
>
> If you are on same window then you can easily copy value by using its id.
> $('targetId').value = $('sourceId').value in JS.
> If you need to pass it as request then can see many example of form
> parameters submission in checkoutProcess.js.
> If wanna to submit whole form then go like ;
> parameters: $('shippingOptionForm').serialize(), requestHeaders: {Accept:
> 'application/json'}
> if wanna to submit single or two value then go like ;
> parameters: {productPromoCodeId:$F('productPromoCode')}
>
> Reference file in OFBiz -
> /ecommerce/webapp/ecommerce/images/checkoutProcess.js
>
> Rishi Solanki
> Enterprise Software Developer
> HotWax Media Pvt. Ltd.
>
>
> On Fri, Nov 6, 2009 at 1:47 PM, Ramkrishna Swamy <
> ramkrishna.swamyofbiz@gmail.com> wrote:
>
> > Is this possible or not???
> > Actually i have a drop down and i want selected partyid to be passed on
> to
> > other form without submitting the first form.
> > plz hlp....
> >
> > Thanks
> > Ramkrishna
> >
> >
> > On Thu, Nov 5, 2009 at 12:36 PM, RamKrishna Swamy <
> > ramkrishna.swamyofbiz@gmail.com> wrote:
> >
> > > Hi list,
> > >
> > > How can I set a selected partyId's value in request/parameter in
> > > javascript??
> > > Please help.
> > >
> > > Thanks
> > > Ramkrishna
> > >
> >
>

Re: How to set partyId in request in javascript

Posted by Rishi Solanki <ri...@gmail.com>.
Hi Ram,

If you are on same window then you can easily copy value by using its id.
$('targetId').value = $('sourceId').value in JS.
If you need to pass it as request then can see many example of form
parameters submission in checkoutProcess.js.
If wanna to submit whole form then go like ;
parameters: $('shippingOptionForm').serialize(), requestHeaders: {Accept:
'application/json'}
if wanna to submit single or two value then go like ;
parameters: {productPromoCodeId:$F('productPromoCode')}

Reference file in OFBiz -
/ecommerce/webapp/ecommerce/images/checkoutProcess.js

Rishi Solanki
Enterprise Software Developer
HotWax Media Pvt. Ltd.


On Fri, Nov 6, 2009 at 1:47 PM, Ramkrishna Swamy <
ramkrishna.swamyofbiz@gmail.com> wrote:

> Is this possible or not???
> Actually i have a drop down and i want selected partyid to be passed on to
> other form without submitting the first form.
> plz hlp....
>
> Thanks
> Ramkrishna
>
>
> On Thu, Nov 5, 2009 at 12:36 PM, RamKrishna Swamy <
> ramkrishna.swamyofbiz@gmail.com> wrote:
>
> > Hi list,
> >
> > How can I set a selected partyId's value in request/parameter in
> > javascript??
> > Please help.
> >
> > Thanks
> > Ramkrishna
> >
>

Re: How to set partyId in request in javascript

Posted by Ramkrishna Swamy <ra...@gmail.com>.
Is this possible or not???
Actually i have a drop down and i want selected partyid to be passed on to
other form without submitting the first form.
plz hlp....

Thanks
Ramkrishna


On Thu, Nov 5, 2009 at 12:36 PM, RamKrishna Swamy <
ramkrishna.swamyofbiz@gmail.com> wrote:

> Hi list,
>
> How can I set a selected partyId's value in request/parameter in
> javascript??
> Please help.
>
> Thanks
> Ramkrishna
>