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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 How to refresh graph with backend data viSQL query

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
alexisb2000 Posted - 07/26/2012 : 6:47:40 PM
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
2   L A T E S T    R E P L I E S    (Newest First)
alexisb2000 Posted - 07/27/2012 : 1:40:05 PM
Thank you! It works perfectly.
greg Posted - 07/27/2012 : 11:33:21 AM
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.

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000