cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
%3CLINGO-SUB%20id%3D%22lingo-sub-247290%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%85%81%E8%AE%B8%E8%87%AA%E5%AE%9A%E4%B9%89%E8%A1%A8%E6%A0%BC%E6%A1%86%E2%80%9C%E5%88%B6%E4%BD%9C%E7%BB%84%E5%90%88%E6%95%B0%E6%8D%AE%E8%A1%A8%E2%80%9D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-247290%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E5%A6%82%E6%9E%9C%E6%88%91%E4%BB%AC%E5%8F%AF%E4%BB%A5%E4%BB%8E%E8%87%AA%E5%AE%9A%E4%B9%89%E8%A1%A8%E4%B8%AD%E5%88%9B%E5%BB%BA%E4%B8%80%E4%B8%AA%E7%BB%84%E5%90%88%E6%95%B0%E6%8D%AE%E8%A1%A8%EF%BC%88%E5%A6%82%E6%9E%9C%E5%AE%83%E4%BB%AC%E4%B8%8E%E6%9C%AC%E6%9C%BA%E6%8A%A5%E5%91%8A%E4%B8%80%E6%A0%B7%E6%90%BA%E5%B8%A6%E2%80%9C%E7%9B%B8%E5%90%8C%E2%80%9D%E7%9A%84%E4%BF%A1%E6%81%AF%EF%BC%89%EF%BC%8C%E6%88%91%E5%B8%8C%E6%9C%9B%E5%A6%82%E6%AD%A4%E3%80%82%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%E4%BE%8B%E5%A6%82%EF%BC%9A%E5%85%81%E8%AE%B8%E6%89%80%E6%9C%89%E8%BF%99%E4%BA%9B%E4%BB%A5%E6%9F%90%E7%A7%8D%E6%96%B9%E5%BC%8F%E9%99%84%E5%8A%A0%E5%B9%B4%E9%BE%84%EF%BC%8C%E8%80%8C%E4%B8%8D%E5%BF%85%E9%9A%90%E8%97%8F%E5%88%97%E5%B9%B6%E8%BF%9B%E8%A1%8C%E8%87%AA%E5%AE%9A%E4%B9%89%E2%80%9C%E5%88%B6%E4%BD%9C%E7%BB%84%E5%90%88%E6%95%B0%E6%8D%AE%E8%A1%A8%E2%80%9D%E5%8A%9F%E8%83%BD%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20to%20Here(1)%3B%0Adt%20%3D%20Open(%22%24SAMPLE_DATA%5CBig%20Class.jmp%22)%3B%0ASummarize(ages%20%3D%20by(%3Aage))%3B%0A%20%0Ahlb%20%3D%20hlistbox()%3B%0Afor(i%3D1%2C%20i%26lt%3B%3Dnitems(ages)%2C%20i%2B%2B%2C%20%0A%20%20%20%20%20%20%20rows%20%3D%20dt%20%26lt%3B%26lt%3B%20Get%20Rows%20Where(char(Column(dt%2C%20%22age%22)%5B%5D)%20%3D%3D%20ages%5Bi%5D)%3B%0A%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20tblbox%20%3D%20Tablebox(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20StringColBox(%22Sex%22%2C%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dt%3Asex%5Brows%5D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20)%2C%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20StringColBox(%22Name%22%2C%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dt%3Aname%5Brows%5D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20)%0A%20%20%20%20%20%20%20)%3B%0A%20%20%20%20%20%20%20hlb%20%26lt%3B%26lt%3B%20append(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20OutlineBox(ages%5Bi%5D%2C%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20tblbox%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20)%0A%20%20%20%20%20%20%20)%0A)%3B%0A%20%0Anew%20window(%22Test%22%2C%20%0A%20%20%20%20%20%20%20hlb%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-247290%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3E%E8%87%AA%E5%8A%A8%E5%8C%96%E5%92%8C%E8%84%9A%E6%9C%AC%E7%BC%96%E5%86%99%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-560822%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%85%81%E8%AE%B8%E8%87%AA%E5%AE%9A%E4%B9%89%E8%A1%A8%E6%A0%BC%E6%A1%86%E2%80%9C%E5%88%B6%E4%BD%9C%E7%BB%84%E5%90%88%E6%95%B0%E6%8D%AE%E8%A1%A8%E2%80%9D%20-%20%E7%8A%B6%E6%80%81%E6%9B%B4%E6%94%B9%E4%B8%BA%EF%BC%9A%E5%B7%B2%E5%AD%98%E6%A1%A3%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-560822%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E6%88%91%E4%BB%AC%E6%AD%A3%E5%9C%A8%E5%BD%92%E6%A1%A3%E6%AD%A4%E8%AF%B7%E6%B1%82%E3%80%82%20%E5%A6%82%E6%9E%9C%E8%BF%99%E4%BB%8D%E7%84%B6%E5%BE%88%E9%87%8D%E8%A6%81%EF%BC%8C%E8%AF%B7%E8%AF%84%E8%AE%BA%E5%B9%B6%E6%8F%90%E4%BE%9B%E6%9B%B4%E5%A4%9A%E8%AF%A6%E7%BB%86%E4%BF%A1%E6%81%AF%EF%BC%8C%E6%88%91%E4%BB%AC%E5%B0%86%E9%87%8D%E6%96%B0%E5%BC%80%E6%94%BE%E3%80%82%20%E8%B0%A2%E8%B0%A2%E4%BD%A0%EF%BC%81%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-247482%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%85%81%E8%AE%B8%E8%87%AA%E5%AE%9A%E4%B9%89%E8%A1%A8%E6%A0%BC%E6%A1%86%E2%80%9C%E5%88%B6%E4%BD%9C%E7%BB%84%E5%90%88%E6%95%B0%E6%8D%AE%E8%A1%A8%E2%80%9D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-247482%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E8%BF%99%E6%98%AF%E6%88%91%E5%BE%88%E4%B9%85%E4%BB%A5%E5%89%8D%E5%86%99%E7%9A%84%EF%BC%8C%E5%8F%AA%E6%98%AF%E5%A4%8D%E5%88%B6%E8%BF%87%E6%9D%A5%E3%80%82%E6%98%BE%E7%84%B6%E5%AE%83%E7%A1%AE%E5%AE%9E%E6%9C%89%E6%95%88%E3%80%82%E6%88%91%E7%9A%84%E9%94%99%E3%80%82%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-247477%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%85%81%E8%AE%B8%E8%87%AA%E5%AE%9A%E4%B9%89%E8%A1%A8%E6%A0%BC%E6%A1%86%E2%80%9C%E5%88%B6%E4%BD%9C%E7%BB%84%E5%90%88%E6%95%B0%E6%8D%AE%E8%A1%A8%E2%80%9D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-247477%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F2610%22%20target%3D%22_blank%22%3E%40vince_faller%3C%2FA%3E%20%2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1%82%E6%98%AF%E4%B8%BA%20TableBox()%20%E6%B7%BB%E5%8A%A0%20By()%20%E9%80%89%E9%A1%B9%E3%80%82%20%E4%B8%8E%E4%BD%BF%E7%94%A8%20By%20%E5%88%9B%E5%BB%BA%E5%A4%9A%E4%B8%AA%E5%8F%8C%E5%8F%98%E9%87%8F%E7%9A%84%E5%8F%8C%E5%8F%98%E9%87%8F%E7%B1%BB%E4%BC%BC%EF%BC%8C%E5%AE%83%E5%B0%86%E5%88%9B%E5%BB%BA%E5%A4%9A%E4%B8%AA%20TableBox%E3%80%82%E5%8F%AA%E6%98%AF%E6%88%91%E7%9A%842%E5%88%86%E9%92%B1%E3%80%82%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20to%20Here(1)%3B%0Adt%20%3D%20Open(%22%24SAMPLE_DATA%5CBig%20Class.jmp%22)%3B%0A%0Aidx%20%3D%20dt%20%26lt%3B%26lt%3B%20new%20column(%22seq%22%2C%20numeric%2C%20%26lt%3B%26lt%3B%20set%20each%20value(row()))%3B%0Asummarize(tgrp%20%3D%20By(%3Aage)%2C%20ibeg%3Dminimum(idx)%2C%20iend%3Dmaximum(idx))%3B%0A%0Anew%20window(%22Row%20Borders%22%2C%20%0A%20tblbox%20%3D%20VListBox(tablebox(%0A%20%20NumberColBox(%22age%22%2C%20dt%3Aage%5Bibeg%5B1%5D%3A%3Aiend%5B1%5D%5D%20)%2C%0A%20%20StringColbox(%22Sex%22%2C%20dt%3Asex%5Bibeg%5B1%5D%3A%3Aiend%5B1%5D%5D)%2C%20%0A%20%20NumberColBox(%22Height%22%2C%20dt%3Aheight%5Bibeg%5B1%5D%3A%3Aiend%5B1%5D%5D)%0A%20))%0A)%3B%0Afor(i%3D2%2C%20i%26lt%3B%3Dnitems(tgrp)%2C%20i%2B%2B%2C%0A%20tblbox%20%26lt%3B%26lt%3B%20append(%0A%20%20tablebox(%0A%20%20NumberColBox(%22age%22%2C%20dt%3Aage%5Bibeg%5Bi%5D%3A%3Aiend%5Bi%5D%5D%20)%2C%0A%20%20StringColbox(%22Sex%22%2C%20dt%3Asex%5Bibeg%5Bi%5D%3A%3Aiend%5Bi%5D%5D)%2C%20%0A%20%20NumberColBox(%22Height%22%2C%20dt%3Aheight%5Bibeg%5Bi%5D%3A%3Aiend%5Bi%5D%5D)%0A%20)%0A%20)%0A%20%0A)%3B%0A%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
0 Kudos

Allow custom tableboxes to "make into combined data table"

I'd like it if we could make a combined data table from custom tables if they are carrying "the same" info like native reports do.  

  For instance: allow all of these to somehow have the ages attached to them without having to hide columns and make custom "make into combined data table" functionalities

Names Default to Here(1);
dt = Open("$SAMPLE_DATA\Big Class.jmp");
Summarize(ages = by(:age));
 
hlb = hlistbox();
for(i=1, i<=nitems(ages), i++, 
       rows = dt << Get Rows Where(char(Column(dt, "age")[]) == ages[i]);
       
       tblbox = Tablebox(
              StringColBox("Sex", 
                     dt:sex[rows]
              ), 
              StringColBox("Name", 
                     dt:name[rows]
              )
       );
       hlb << append(
              OutlineBox(ages[i], 
                     tblbox
              )
       )
);
 
new window("Test", 
       hlb
);
3 Comments
gzmorgan0
Super User (Alumni)

@vince_faller ,

 

I am confused by this request. Make Combined Data Table grabs report window tables and combines them into a JMP Data Table.  Run the script below, right click on any sub table and select Make Combined Data Table and it works.  You also have a later Wish List request to set breaks for a table.   Given that request and this one, maybe a more JMP-like request is to add a By() option for TableBox(). Similar to a Bivariate with By that creates multiple Bivariates, it would create multiple TableBoxes.   Just my 2 cents.

Names Default to Here(1);
dt = Open("$SAMPLE_DATA\Big Class.jmp");

idx = dt << new column("seq", numeric, << set each value(row()));
summarize(tgrp = By(:age), ibeg=minimum(idx), iend=maximum(idx));

new window("Row Borders", 
	tblbox = VListBox(tablebox(
		NumberColBox("age", dt:age[ibeg[1]::iend[1]] ),
		StringColbox("Sex", dt:sex[ibeg[1]::iend[1]]), 
		NumberColBox("Height", dt:height[ibeg[1]::iend[1]])
	))
);
for(i=2, i<=nitems(tgrp), i++,
	tblbox << append(
		tablebox(
		NumberColBox("age", dt:age[ibeg[i]::iend[i]] ),
		StringColbox("Sex", dt:sex[ibeg[i]::iend[i]]), 
		NumberColBox("Height", dt:height[ibeg[i]::iend[i]])
	)
	)
	
);
vince_faller
Super User (Alumni)

I wrote this a long time ago and just copied over.  Apparently it does work.  My bad.  

Ryan_Gilmore
Community Manager
Status changed to: Archived
We are archiving this request. If this is still important please comment with additional details and we will reopen. Thank you!