@Matthew J Watts
That is my fault, I apologized for my mistake
If you are trying to redirect one view to another view page.
you can try this
<div class="btn-group">
<a href="/{{=request.application}}/{{=request.controller}}/your func
name/{{=args witch you want to use}}" class="btn
btn-primary">Cancle</a>
</div>
maybe that's some help you
Thanks
sp
On Sat, May 26, 2018 at 3:17 PM, 'Matthew J Watts' via web2py-users <
[email protected]> wrote:
> Thanks for your help all!
> i'll give these a go. Sorry if i want that clear, but i'm not trying to
> use a grid, i'm trying to redirect from a button in views
>
> <div class="btn-group">
> {{=A('Cancel',_href=URL('my_collections'),_class="btn btn-primary")}}
> </div>
>
>
>
> On Sat, May 26, 2018 at 8:21 AM, Sandeep Patel <[email protected]>
> wrote:
>
>> @Matthew J Watts
>> You can try this
>> grid = SQLFORM.grid(query,selectable=[('Name',lambda ids
>> :redirect(URL('default','func',args=ids)))])
>>
>>
>> best
>> sandeep
>>
>> On Fri, May 25, 2018 at 4:00 AM, 黄祥 <[email protected]> wrote:
>>
>>> pls try (not tested)
>>> {{=A('Finish',_href=URL('my_collections/%s/%s', % ('args0', 'args1')
>>> ),_class="btn btn-primary")}}
>>> or
>>> {{=A('Finish',_href=URL('my_collections', args = ['args0', 'args1']
>>> ),_class="btn btn-primary")}}
>>>
>>> best regards,
>>> stifan
>>>
>>> --
>>> Resources:
>>> - http://web2py.com
>>> - http://web2py.com/book (Documentation)
>>> - http://github.com/web2py/web2py (Source code)
>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to a topic in the
>> Google Groups "web2py-users" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/web2py/jtzQVBzQU6Y/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.