El 13/01/15 a les 08:59, Jean C ha escrit:
2015-01-13 8:27 GMT+01:00 Luis Daniel <[email protected]
<mailto:[email protected]>>:
Now my question is: how can I get the values from a selected row in
a TreeView when I push a button. This is intended to fill the
default values on a wizard.
You can look into the context for 'active_id' :
selected_id = Transaction().context.get('active_id')
I recomend tu use active_ids instead of active_id, because if the user
selects more than one record, active_id will contain only the first one
but active_ids will contain all the selected records. So:
selected_ids = Transaction().context.get('active_ids')
--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk