Sundaram Sridharan Posted November 23, 2020 Share Posted November 23, 2020 I would like take the menu action "Data->Reload Linked Data" and turn this into an action item button in the text area. can anyone point me to a snippet of code that will do this (I found a code that will refresh a named data table - but it was silent during the action - no visual feedback the way this menu item does) Link to comment Share on other sites More sharing options...
Fernando Custodio Posted November 24, 2020 Share Posted November 24, 2020 Hi SidSri, I attached a sample to reload data with the image button in sample.zip file. Basically, in text area, you insert action control, where you can choose the type (Image, button, or link). So you need to add a python script with this code: Document.Data.Tables.ReloadAllData() Let me know if works for you. Regards. Link to comment Share on other sites More sharing options...
Sundaram Sridharan Posted November 24, 2020 Author Share Posted November 24, 2020 thanks - this one line code works - but still I don't get visual feedback the way I get it when I choose Dta->Reload Linked Data. After clicking it just appears to be non-responsive for several seconds until you see the data updated in the table. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now