Thanks. It worked great!!!

On Monday, February 2, 2015 at 4:07:36 PM UTC-6, Niphlod wrote:
>
> that's pretty obvious......... look at what you're trying to render in the 
> view!
>
>
>  {{for model in models:}}
>     <option value="{{=model.Name}}" 
>     {{=" selected='selected'" if model.Name==request.vars.model_name else 
> ""}}>
>     {{=model.Name}}
>     </option>
> {{pass}}
>
>
> at the very least, if you want to keep the same code in the view, you 
> should have the controller pass a list with a Storage() that has a "Name" 
> attribute
>
> from gluon.storage import Storage
> models = [ Storage(Name='SELECT Model')  ]
>
>
>
>
>

-- 
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.

Reply via email to