cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
%3CLINGO-SUB%20id%3D%22lingo-sub-777741%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%E5%BE%AA%E7%8E%AF%E6%B5%8F%E8%A7%88%E6%8A%A5%E5%91%8A%E5%B9%B6%E6%8F%90%E5%8F%96%E6%A0%87%E9%A2%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777741%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E5%B0%9D%E8%AF%95%E5%BE%AA%E7%8E%AF%E9%81%8D%E5%8E%86%E5%8D%95%E5%90%91%E6%96%B9%E5%B7%AE%E5%88%86%E6%9E%90%E7%94%9F%E6%88%90%E7%9A%84%E6%89%80%E6%9C%89%E6%8A%A5%E5%91%8A%E3%80%82%E6%88%91%E5%88%9B%E5%BB%BA%E4%BA%86%E4%B8%80%E4%B8%AA%E6%8A%A5%E5%91%8A%E5%88%97%E8%A1%A8%3CEM%3Eanova_list%E3%80%82%3C%2FEM%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E5%A6%82%E6%9E%9C%E6%88%91%E5%B0%9D%E8%AF%95%E4%BD%BF%E7%94%A8%E4%BB%A5%E4%B8%8B%E8%AF%AD%E6%B3%95%E6%89%8B%E5%8A%A8%E4%BB%8E%E6%8A%A5%E5%91%8A%E4%B8%AD%E6%8F%90%E5%8F%96%E6%A0%87%E9%A2%98%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CEM%3Ecurr_anova%20%3D%20%E6%96%B9%E5%B7%AE%E5%88%86%E6%9E%90%E5%88%97%E8%A1%A8%5B1%5D%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3Ereport_title%20%3D%20curr_anova%20%26lt%3B%26lt%3B%20%E6%8A%A5%E5%91%8A%20%26lt%3B%26lt%3B%20%E8%8E%B7%E5%8F%96%E6%A0%87%E9%A2%98(%E2%80%9Cstring%E2%80%9D)%3C%2FEM%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E8%BE%93%E5%87%BA%E6%98%AF%E6%88%91%E6%89%80%E6%9C%9F%E6%9C%9B%E7%9A%84%E2%80%94%E2%80%94%E4%B8%80%E4%BA%9B%E5%8F%98%E5%8C%96%EF%BC%9A%20%3CEM%3EY%20%E9%80%9A%E8%BF%87%20X%20%E7%9A%84%E5%8D%95%E5%90%91%E5%88%86%E6%9E%90%20by1%3Dby1val%20by2%3Dby2val%20...%3C%2FEM%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E4%BD%86%E5%BD%93%E6%88%91%E5%B0%9D%E8%AF%95%E5%BE%AA%E7%8E%AF%E6%89%A7%E8%A1%8C%E6%AD%A4%E6%93%8D%E4%BD%9C%E6%97%B6%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CEM%3E%E5%AF%B9%E4%BA%8E%EF%BC%88i%20%3D%201%EF%BC%8Ci%20%26lt%3B%3D%20n%20%E4%B8%AA%E9%A1%B9%E7%9B%AE%EF%BC%88anova_list%EF%BC%89%EF%BC%8Ci%20%2B%2B%EF%BC%8C%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3Ecurr_anova%20%3D%20%E6%96%B9%E5%B7%AE%E5%88%86%E6%9E%90%E5%88%97%E8%A1%A8%5Bi%5D%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3Ereport_title%20%3D%20curr_anova%20%26lt%3B%26lt%3B%20%E6%8A%A5%E5%91%8A%20%26lt%3B%26lt%3B%20%E8%8E%B7%E5%8F%96%E6%A0%87%E9%A2%98(%E2%80%9Cstring%E2%80%9D)%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E)%3C%2FEM%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CEM%3Ereport_title%3C%2FEM%3E%E7%9A%84%E8%BE%93%E5%87%BA%E6%98%AF%3CEM%3EDisplayBox%5BOutlineBox%5D%E3%80%82%3C%2FEM%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E6%88%91%E6%98%AF%E5%90%A6%E5%AF%B9%E8%AF%AD%E6%B3%95%E6%9C%89%E7%96%8F%E5%BF%BD%EF%BC%9F%E6%88%91%E5%B0%9D%E8%AF%95%E4%BA%86%E4%B8%8D%E5%90%8C%E7%9A%84%20eval%20%E7%BB%84%E5%90%88%E6%9D%A5%E6%9F%A5%E7%9C%8B%E8%BE%93%E5%87%BA%E6%98%AF%E5%90%A6%E5%8F%91%E7%94%9F%E5%8F%98%E5%8C%96%EF%BC%8C%E4%BD%86%E6%97%A0%E6%B5%8E%E4%BA%8E%E4%BA%8B%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-777741%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CLINGO-LABEL%3E%E5%9F%BA%E7%A1%80%E6%95%B0%E6%8D%AE%E5%88%86%E6%9E%90%E4%B8%8E%E5%BB%BA%E6%A8%A1%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E8%A7%86%E7%AA%97%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-777751%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%BE%AA%E7%8E%AF%E6%B5%8F%E8%A7%88%E6%8A%A5%E5%91%8A%E5%B9%B6%E6%8F%90%E5%8F%96%E6%A0%87%E9%A2%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777751%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%B0%9D%E8%AF%95%E6%94%B9%E5%8F%98%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Ereport_title%20%3D%20curr_anova%20%26lt%3B%26lt%3B%20report%20%26lt%3B%26lt%3B%20get%20%20title(%22string%22)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%E8%87%B3%EF%BC%88%E6%8B%AC%E5%8F%B7%E5%86%85%E4%B8%BA%E6%9C%80%E9%87%8D%E8%A6%81%E7%9A%84%E9%83%A8%E5%88%86%EF%BC%89%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Ereport_title%20%3D%20(curr_anova%20%26lt%3B%26lt%3B%20report)%20%26lt%3B%26lt%3B%20get%20%20title%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-777752%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%BE%AA%E7%8E%AF%E6%B5%8F%E8%A7%88%E6%8A%A5%E5%91%8A%E5%B9%B6%E6%8F%90%E5%8F%96%E6%A0%87%E9%A2%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777752%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%9D%B0%E8%A5%BF%EF%BC%8C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E8%B0%A2%E8%B0%A2%E4%BD%A0%E7%9A%84%E5%BB%BA%E8%AE%AE%E3%80%82%E8%BF%99%E7%A1%AE%E5%AE%9E%E6%9C%89%E6%95%88%EF%BC%81%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E8%AF%B7%E9%97%AE%E8%BF%99%E4%B8%BA%E4%BB%80%E4%B9%88%E4%B8%8D%E5%90%8C%EF%BC%9F%E5%B8%A6%E6%8B%AC%E5%8F%B7%E7%9A%84%E5%8C%85%E5%90%AB%E6%9C%89%E4%BB%80%E4%B9%88%E4%BD%9C%E7%94%A8%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-777754%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%BE%AA%E7%8E%AF%E6%B5%8F%E8%A7%88%E6%8A%A5%E5%91%8A%E5%B9%B6%E6%8F%90%E5%8F%96%E6%A0%87%E9%A2%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777754%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%82%A8%E7%9A%84%E5%8E%9F%E5%A7%8B%E7%89%88%E6%9C%AC%E5%88%9B%E5%BB%BA%E4%BA%86%E4%B8%80%E4%B8%AA%E2%80%9C%E6%B6%88%E6%81%AF%E7%BA%A7%E8%81%94%EF%BC%9A%E2%80%9D%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Eresult%20%3D%20obj%20%26lt%3B%26lt%3B%20message%201%20%26lt%3B%26lt%3B%20message%202%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%E7%BB%93%E6%9E%9C%E6%98%AF%E5%90%91%E5%90%8C%E4%B8%80%E5%AF%B9%E8%B1%A1%E8%BF%9E%E7%BB%AD%E5%8F%91%E9%80%81%E6%B6%88%E6%81%AF%E3%80%82%E4%BD%BF%E7%94%A8%E6%8B%AC%E5%8F%B7%E5%B0%86%E7%AC%AC%E4%BA%8C%E6%9D%A1%E6%B6%88%E6%81%AF%E5%8F%91%E9%80%81%E5%88%B0%E5%8F%91%E9%80%81%E7%AC%AC%E4%B8%80%E6%9D%A1%E6%B6%88%E6%81%AF%E7%9A%84%E7%BB%93%E6%9E%9C%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
doctorfizz
Level II

Loop through reports and extract title

Hello,

 

I am trying to loop through all reports generated from an ANOVA-oneway. I create a list of the reports anova_list. 

 

If I manually try to extract the title from a report with the following syntaxt

 

curr_anova = anova_list[1] 

report_title = curr_anova << report << get  title("string")

 

the output is what I expect - some variation of: Oneway Analysis of Y by X by1=by1val by2=by2val ...

 

But when I try to do this in a loop

 

for(i = 1, i<= n items(anova_list), i++,

curr_anova = anova_list[i] 

report_title = curr_anova << report << get  title("string")

)

 

the output of report_title is DisplayBox[OutlineBox].

 

Am I making an oversight on the syntax? I have tried different combinations of evals to see if the output change, to no avail. 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Loop through reports and extract title

Try changing

report_title = curr_anova << report << get  title("string")

 

to (the brackets being the most important)

 

report_title = (curr_anova << report) << get  title;
-Jarmo

View solution in original post

3 REPLIES 3
jthi
Super User

Re: Loop through reports and extract title

Try changing

report_title = curr_anova << report << get  title("string")

 

to (the brackets being the most important)

 

report_title = (curr_anova << report) << get  title;
-Jarmo
doctorfizz
Level II

Re: Loop through reports and extract title

jthi,

 

thanks for the suggestion. This indeed does the trick! 

 

May I ask why this is different? What does the containment with parenthesis do? 

Re: Loop through reports and extract title

Your original version created a 'message cascade:"

result = obj << message 1 << message 2;

The result is from the succession of messages to the same object. Using the parentheses sends the second message to the result of sending the first message.