How to set partyId in request in javascript

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

How to set partyId in request in javascript

RamKrishna Swamy
Hi list,

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

Thanks
Ramkrishna
Reply | Threaded
Open this post in threaded view
|

Re: How to set partyId in request in javascript

RamKrishna Swamy
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 <
[hidden email]> wrote:

> Hi list,
>
> How can I set a selected partyId's value in request/parameter in
> javascript??
> Please help.
>
> Thanks
> Ramkrishna
>
Reply | Threaded
Open this post in threaded view
|

Re: How to set partyId in request in javascript

Rishi Solanki
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 <
[hidden email]> 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 <
> [hidden email]> wrote:
>
> > Hi list,
> >
> > How can I set a selected partyId's value in request/parameter in
> > javascript??
> > Please help.
> >
> > Thanks
> > Ramkrishna
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: How to set partyId in request in javascript

RamKrishna Swamy
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 <[hidden email]>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 <
> [hidden email]> 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 <
> > [hidden email]> wrote:
> >
> > > Hi list,
> > >
> > > How can I set a selected partyId's value in request/parameter in
> > > javascript??
> > > Please help.
> > >
> > > Thanks
> > > Ramkrishna
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: How to set partyId in request in javascript

Rishi Solanki
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 <
[hidden email]> 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 <[hidden email]
> >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 <
> > [hidden email]> 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 <
> > > [hidden email]> wrote:
> > >
> > > > Hi list,
> > > >
> > > > How can I set a selected partyId's value in request/parameter in
> > > > javascript??
> > > > Please help.
> > > >
> > > > Thanks
> > > > Ramkrishna
> > > >
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: How to set partyId in request in javascript

RamKrishna Swamy
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 <[hidden email]>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 <
> [hidden email]> 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 <[hidden email]
> > >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 <
> > > [hidden email]> 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 <
> > > > [hidden email]> wrote:
> > > >
> > > > > Hi list,
> > > > >
> > > > > How can I set a selected partyId's value in request/parameter in
> > > > > javascript??
> > > > > Please help.
> > > > >
> > > > > Thanks
> > > > > Ramkrishna
> > > > >
> > > >
> > >
> >
>