cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-777741%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3EPassa%20in%20rassegna%20i%20report%20ed%20estrai%20il%20titolo%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777741%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3ECiao%2C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3ESto%20cercando%20di%20scorrere%20tutti%20i%20report%20generati%20da%20un%20ANOVA-oneway.%20Creo%20un%20elenco%20dei%20report%20%3CEM%3Eanova_list.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3ESe%20provo%20manualmente%20a%20estrarre%20il%20titolo%20da%20un%20report%20con%20la%20seguente%20sintassi%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CEM%3Ecurr_anova%20%3D%20anova_list%5B1%5D%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3Ereport_title%20%3D%20curr_anova%20%26lt%3B%26lt%3B%20report%20%26lt%3B%26lt%3B%20ottieni%20titolo(%22string%22)%3C%2FEM%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3El'output%20%C3%A8%20quello%20che%20mi%20aspetto%3A%20qualche%20variazione%20di%3A%20%3CEM%3EAnalisi%20unidirezionale%20di%20Y%20per%20X%20by1%3Dby1val%20by2%3Dby2val%20...%3C%2FEM%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EMa%20quando%20provo%20a%20farlo%20in%20loop%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CEM%3Efor(i%20%3D%201%2C%20i%26lt%3B%3D%20n%20elementi(anova_list)%2C%20i%2B%2B%2C%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3Ecurr_anova%20%3D%20anova_list%5Bi%5D%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3Ereport_title%20%3D%20curr_anova%20%26lt%3B%26lt%3B%20report%20%26lt%3B%26lt%3B%20ottieni%20titolo(%22string%22)%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E)%3C%2FEM%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3El'output%20di%20%3CEM%3Ereport_title%3C%2FEM%3E%20%C3%A8%20%3CEM%3EDisplayBox%5BOutlineBox%5D.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3ESto%20facendo%20una%20svista%20sulla%20sintassi%3F%20Ho%20provato%20diverse%20combinazioni%20di%20valutazioni%20per%20vedere%20se%20l'output%20cambia%2C%20senza%20alcun%20risultato.%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%3EAnalisi%20e%20modellazione%20dei%20dati%20di%20base%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Efinestre%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%3ERi%3A%20Passa%20in%20rassegna%20i%20report%20ed%20estrai%20il%20titolo%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777751%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EProva%20a%20cambiare%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%3Ea%20(le%20parentesi%20sono%20le%20pi%C3%B9%20importanti)%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%3ERi%3A%20Sfoglia%20i%20report%20ed%20estrai%20il%20titolo%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777752%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ejthi%2C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3Egrazie%20per%20il%20suggerimento%20Questo%20davvero%20fa%20il%20trucco!%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EPosso%20chiederti%20perch%C3%A9%20%C3%A8%20diverso%3F%20Cosa%20fa%20il%20contenimento%20con%20parentesi%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-777754%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERi%3A%20Sfoglia%20i%20report%20ed%20estrai%20il%20titolo%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777754%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ELa%20tua%20versione%20originale%20creava%20una%20%22cascata%20di%20messaggi%3A%22%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%3EIl%20risultato%20%C3%A8%20la%20successione%20di%20messaggi%20sullo%20stesso%20oggetto.%20Utilizzando%20le%20parentesi%20si%20invia%20il%20secondo%20messaggio%20al%20risultato%20dell'invio%20del%20primo%20messaggio.%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.