Johann,

> 2. I also get "Submit Query" button below the table. I've managed to
>> rename this to "Delete Selected" - Is there a way to show a confirmation
>> dialog like "Are you sure you want to delete all the selected entries" (or
>> some such) - before the records are deleted ?
>>
>>
> I use this:
>
>         bevestig = T('Are you sure you want to delete the selected
> articles?')
>         try:
>             form.element('.web2py_table input[type=submit]')['_value'] =
> T('Delete selected articles')
>             form.element('.web2py_table input[type=submit]')['_onclick'] =
> "return confirm ('%s')" % bevestig
>         except:
>             pass
>

Didn't know about _onclick
I had managed to rename the button, but looking at your suggestion - mine
was clumsy/hackish. This one is cleaner/better option.

Thanks a lot. !!

-Mandar

-- 



Reply via email to