0
DIV(TABLE(*[TR(response) for response in data],_id='records_table', _class='table table-bordered'),_class='table-responsive')) 

using this DIV tag in python controller, I want to download the html table data in csv for which I need to add id.

Please tell me how I can add id in this given line.

1
  • Welcome to SO. Please visit the help center to see what and How to Ask. HINT: Post effort and code. Commented Jan 1, 2018 at 14:03

2 Answers 2

1

You should review Datatables Package

Sign up to request clarification or add additional context in comments.

1 Comment

using web2py can you please tell me how i can add id in DIV which i am using in controller
0

You should use in template. You should return rendered data. Div is used in template.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.