Hi Stifan, 

Thank you for replying again.

Is the best way to check for that in the controller? The book says it's 
best to handle calls in the controller, but just confirming on the forum.



On Friday, December 30, 2016 at 7:27:00 PM UTC-5, LoveWeb2py wrote:
>
> Hello,
>
> I'm wondering if it's better to check for raw_args inside of the 
> controller or in the view and then call another controller based on that.
>
> For example:
>
> I have: 
>
> http://127.0.0.1:8000/application/controller/view 
>
> which returns a SQLFORM.Grid
>
> Inside of the grid I now have clickable links which will go to
>
> http://127.0.0.1:8000/application/controller/view/arg
>
> What is the recommended approach to check for the arg. 
>
> I want to show the relational fields to the record so I will need to call 
> db.table.id==arg and create a new SQLFORM based on that.
>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to