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
 Read a report data

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
Tryphon Posted - 09/10/2016 : 1:40:46 PM
Hello,

I desire to read data in a report data generated by this code :

win -a MyWKS; /* worksheet of my data */
tree twowayGUI;
xop execute:=init classname:=ANOVATwoWayRM iotrgui:=twowayGUI;
twowayGUI.GUI.InputData.Use = 0;
xop execute:=update iotrgui:=twowayGUI;
twowayGUI.GUI.InputData.Factor0$=Col(Time);
twowayGUI.GUI.InputData.Factor1$=Col(Species);
twowayGUI.GUI.InputData.Data$=Col(Data);
twowayGUI.GUI.InputData.Subject$=Col(Identities);
twowayGUI.GUI.Interactions=1;
twowayGUI.GUI.MeansComp.Bonferroni=1;
xop execute:=report iotrgui:=twowayGUI;
page.active=page.nlayers;

This generates a report in a separate sheet including multiple tables.

How to access a table, a column or a cell using a labtalk command ? I want to collect the results and use them in the remaining code of my macro.

Thank you.

Origin 2015 64 bits sr2
Operating System: Windows 8.1 64 bits
2   L A T E S T    R E P L I E S    (Newest First)
Tryphon Posted - 09/14/2016 : 07:32:54 AM
Thank you, getresults is easy to use.
yuki_wu Posted - 09/11/2016 : 10:38:51 PM
Hi,

I think you can access your report into a tree variable by using the getresults X-Function.

You can find the way in this example:
http://www.originlab.com/doc/LabTalk/guide/Accessing-Metadata#Access_Report_Page_Tree

Hope it helps.

Regards,
Yuki
OriginLab

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