开发者

Pass a value between views

开发者 https://www.devze.com 2023-01-20 18:22 出处:网络
I have a list of items of the same type (let\'s say guests) and i display them in a listview. By clicking on the line I would be able to edit the single e开发者_如何学编程lement. All the elements have

I have a list of items of the same type (let's say guests) and i display them in a listview. By clicking on the line I would be able to edit the single e开发者_如何学编程lement. All the elements have the same editing mask, so i would like to call the same page and pass a parameter. The only solution that i found it's:

<a href="edit-page" onClick="setParameter(32)">Element 32</a>

But actually I update the edit view on beforepageshow so in this case I have 2 different methods that run independently to archive this goal.

I was wondering if there is an elegant solution.

Thanks, Cesare


Can you not use a get parameter?

ie: href="edit-page?id=32"

0

精彩评论

暂无评论...
验证码 换一张
取 消