cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Chávez <ccha...@agssa.net>
Subject Re: [CForms] Edit action inside a repeater row
Date Fri, 20 May 2005 14:37:55 GMT

Sebastien Arbogast Escribio :-)
> Hi,
>
> I have a repeater listing a set of users using output's and I'd like
> to add some "edit" button or link to each row in order to call some
> flowscript function that displays another form to edit the information
> related to the corresponding row. And my problem is to know how I can
> get the id of the current row and make a link using that value. For
> example I'd like to introduce some link like that:
> <a href="edit-user?userid=[the id of the current row]">Edit</a>
> Is it possible ? How should I proceed because I have absolutely no
> idea about how I can integrate that with my existing CForm ?
>
> Thx in advance
  Hi Sebastien.

  I'm using form.getWidget().getSubmitWidget().getParent().getId()
  to obtain the position row in the repeater of the widget that fire
  a submit.

  cheers,
  Carlos Chávez.

>
> --
> Sebastien ARBOGAST
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


-- 
Carlos Chávez

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message