How to use _onclick(quotation.id)

23 views
Skip to first unread message

Luis Sucuc

unread,
Feb 13, 2018, 11:03:04 AM2/13/18
to web2py-users
I have the following code that is used to generate a table with fancygrid


{{for quotation in quotations:}}
...
 amount
:    '{{=quotation.amount}}',
 convert
: '{{if has_products(quotation.id):}}{{=BUTTON(T("Convert to order"), _class="fancy-grid-column-action-item btn-edit", _onclick="convertOrder(quotation.id)")}}{{pass}}',

},

{{pass}}



But it generates the following

<button class="fancy-grid-column-action-item btn-edit" onclick="convertOrder(quotation.id)" id="fancy-gen-34">Convertir a orden</button>

It does not replace the quotation.id. I'm doing it wrong?
Reply all
Reply to author
Forward
0 new messages