How to re-query model on onClick javascript ------ NEED URGENT HELP

Can someone provide sample code to show how to re-query models on onclick javascript inside template field.

Thanks in Advance !!!

See the Model API’s:

Something like this should work assuming your Model’s name is “MyModelName”:

Refresh Data

Thanks Matt for quick response!

Hi Zach ,

Thank you for quick respose!! It worked!!!

Is there a way to re-render or reload tabs from onClick javascript written inside template field?

Tab Contents should be re-rendered as appropriate automatically using Conditional Rendering. Tabs should not need to be forcibly re-rendered, their contents should update themselves as appropriate in response to Model events.