Wednesday, August 31, 2011

Re: dropdown select option in multiple rows in cakephp

You have given no code for us to work with, just a concept of what
you're trying to achieve.

I assume you are trying to use javascript to do this ... if you want
help show us the relevant fields in your view, along with the
javascript you are using.

HTH, Paul.

On Aug 30, 5:47 am, abhimanyu bv <vmabhi...@gmail.com> wrote:
> i am showing multiple rows in a grid, and each row has a dropdown with
> values 1,2,3,4,5..
> the view looks like :
>
> description ,
> quantity,
> price,            total price
> 1.deal1                                  dropdownbox
> [btnupdate]                         100              100*dropdown
> secelted valu
> 2.deal2                                 dropdownbox
> [btnupdate]                         200              200*dropdown
> secelted valu
> 3.deal3                                 dropdownbox
> [btnupdate]                         300              300*dropdown
> secelted valu
>
> if i am changing the value of the deal1 or deal2 dropdown box, the
> total price value is not changing, but if im changing the last one
> i.e, deal3, then it is changing. after selecting the dropdown and if
> user clicks btnupdate then the id of that row is passed to the
> controller along with the selected value. but its happening for only
> deal3 not for other deals. i want to update each row with the value
> selected in that particular row dropdown.how to do this

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: