The following html fragment is generated by SQLFORM.grid (create form)....

<select class="generic-widget form-control" id="txn_editor_account_id" 
name="account_id">
    <option value=""></option><option value="1">Cash</option><option 
value="2">Sale</option></select>


The following code in my controller action successfully sets the select 
value = 1.

        form.element(_id='txn_editor_account_id')['_value'] = 1


But the displayed widget remains blank?
What can I do to get the widget to display the new value?

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