The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 How to refresh graph with backend data viSQL query
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

alexisb2000

USA
7 Posts

Posted - 07/26/2012 :  6:47:40 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8.0.63.988 SR6 V8.0988
Operating System: Windows 7

I created a sql query that supplies the data to a graph. If I change the query in the SQL backend database, I still have to physically open the query again in Origin and press Import for the graph to see the changes. Is there any way I can tell Origin to always refresh the backend data to the graphs whenever the Origin project is opened?

Thanks,
Alexis

greg

USA
1378 Posts

Posted - 07/27/2012 :  11:33:21 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Create a text object on your query worksheet
Alt-double click to open Programming Control
Select Script, Run After: Window Create
Enter the following line in the text box:
dbimport;
Uncheck the Visible box and click OK.

After saving the project, whenever you re-open it, the Window Create event gets triggered and the data will re-import.
Go to Top of Page

alexisb2000

USA
7 Posts

Posted - 07/27/2012 :  1:40:05 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you! It works perfectly.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000