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%A8%B1%E8%87%AA%E8%A8%82%E8%A1%A8%E6%A0%BC%E6%A1%86%E2%80%9C%E8%A3%BD%E4%BD%9C%E7%B5%84%E5%90%88%E8%B3%87%E6%96%99%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%E5%80%91%E5%8F%AF%E4%BB%A5%E5%BE%9E%E8%87%AA%E8%A8%82%E8%A1%A8%E4%B8%AD%E5%BB%BA%E7%AB%8B%E4%B8%80%E5%80%8B%E7%B5%84%E5%90%88%E8%B3%87%E6%96%99%E8%A1%A8%EF%BC%88%E5%A6%82%E6%9E%9C%E5%AE%83%E5%80%91%E8%88%87%E6%9C%AC%E6%A9%9F%E5%A0%B1%E5%91%8A%E4%B8%80%E6%A8%A3%E6%94%9C%E5%B8%B6%E3%80%8C%E7%9B%B8%E5%90%8C%E3%80%8D%E7%9A%84%E8%B3%87%E8%A8%8A%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%A8%B1%E6%89%80%E6%9C%89%E9%80%99%E4%BA%9B%E4%BB%A5%E6%9F%90%E7%A8%AE%E6%96%B9%E5%BC%8F%E9%99%84%E5%8A%A0%E5%B9%B4%E9%BD%A1%EF%BC%8C%E8%80%8C%E4%B8%8D%E5%BF%85%E9%9A%B1%E8%97%8F%E5%88%97%E4%B8%A6%E9%80%B2%E8%A1%8C%E8%87%AA%E8%A8%82%E3%80%8C%E8%A3%BD%E4%BD%9C%E7%B5%84%E5%90%88%E8%B3%87%E6%96%99%E8%A1%A8%E3%80%8D%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%8B%95%E5%8C%96%E5%92%8C%E8%85%B3%E6%9C%AC%E7%B7%A8%E5%AF%AB%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%E8%A6%86%EF%BC%9A%E5%85%81%E8%A8%B1%E8%87%AA%E8%A8%82%E8%A1%A8%E6%A0%BC%E6%96%B9%E5%A1%8A%E3%80%8C%E8%A3%BD%E4%BD%9C%E7%B5%84%E5%90%88%E8%B3%87%E6%96%99%E8%A1%A8%E3%80%8D%20-%20%E7%8B%80%E6%85%8B%E8%AE%8A%E6%9B%B4%E7%82%BA%EF%BC%9A%E5%B7%B2%E5%AD%98%E6%AA%94%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%E5%80%91%E6%AD%A3%E5%9C%A8%E6%AD%B8%E6%AA%94%E6%AD%A4%E8%AB%8B%E6%B1%82%E3%80%82%20%E5%A6%82%E6%9E%9C%E9%80%99%E4%BB%8D%E7%84%B6%E5%BE%88%E9%87%8D%E8%A6%81%EF%BC%8C%E8%AB%8B%E8%A9%95%E8%AB%96%E4%B8%A6%E6%8F%90%E4%BE%9B%E6%9B%B4%E5%A4%9A%E8%A9%B3%E7%B4%B0%E4%BF%A1%E6%81%AF%EF%BC%8C%E6%88%91%E5%80%91%E5%B0%87%E9%87%8D%E6%96%B0%E9%96%8B%E6%94%BE%E3%80%82%20%E8%AC%9D%E8%AC%9D%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%E8%A6%86%EF%BC%9A%E5%85%81%E8%A8%B1%E8%87%AA%E8%A8%82%E8%A1%A8%E6%A0%BC%E6%96%B9%E5%A1%8A%E2%80%9C%E8%A3%BD%E4%BD%9C%E7%B5%84%E5%90%88%E8%B3%87%E6%96%99%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%E9%80%99%E6%98%AF%E6%88%91%E5%BE%88%E4%B9%85%E4%BB%A5%E5%89%8D%E5%AF%AB%E7%9A%84%EF%BC%8C%E5%8F%AA%E6%98%AF%E8%A4%87%E8%A3%BD%E9%81%8E%E4%BE%86%E3%80%82%E9%A1%AF%E7%84%B6%E5%AE%83%E7%A2%BA%E5%AF%A6%E6%9C%89%E6%95%88%E3%80%82%E6%88%91%E7%9A%84%E9%8C%AF%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%E8%A6%86%EF%BC%9A%E5%85%81%E8%A8%B1%E8%87%AA%E8%A8%82%E8%A1%A8%E6%A0%BC%E6%96%B9%E5%A1%8A%E2%80%9C%E8%A3%BD%E4%BD%9C%E7%B5%84%E5%90%88%E8%B3%87%E6%96%99%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%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E6%88%91%E5%B0%8D%E9%80%99%E5%80%8B%E8%A6%81%E6%B1%82%E6%84%9F%E5%88%B0%E5%9B%B0%E6%83%91%E3%80%82%20%E5%BB%BA%E7%AB%8B%E7%B5%84%E5%90%88%E8%B3%87%E6%96%99%E8%A1%A8%E6%8A%93%E5%8F%96%E5%A0%B1%E5%91%8A%E8%A6%96%E7%AA%97%E8%A1%A8%E4%B8%A6%E5%B0%87%E5%AE%83%E5%80%91%E7%B5%84%E5%90%88%E6%88%90%20JMP%20%E8%B3%87%E6%96%99%E8%A1%A8%E3%80%82%E9%81%8B%E8%A1%8C%E4%B8%8B%E9%9D%A2%E7%9A%84%E8%85%B3%E6%9C%AC%EF%BC%8C%E5%8F%B3%E9%8D%B5%E5%96%AE%E6%93%8A%E4%BB%BB%E4%BD%95%E5%AD%90%E8%A1%A8%E4%B8%A6%E9%81%B8%E6%93%87%E5%BB%BA%E7%AB%8B%E7%B5%84%E5%90%88%E8%B3%87%E6%96%99%E8%A1%A8%EF%BC%8C%E5%AE%83%E5%B0%B1%E5%8F%AF%E4%BB%A5%E5%B7%A5%E4%BD%9C%E3%80%82%E6%82%A8%E7%A8%8D%E5%BE%8C%E9%82%84%E6%9C%89%E4%B8%80%E5%80%8B%E9%A1%98%E6%9C%9B%E6%B8%85%E5%96%AE%E8%AB%8B%E6%B1%82%EF%BC%8C%E8%A6%81%E6%B1%82%E7%82%BA%E6%A1%8C%E5%AD%90%E8%A8%AD%E5%AE%9A%E4%BC%91%E6%81%AF%E6%99%82%E9%96%93%E3%80%82%E9%91%91%E6%96%BC%E8%A9%B2%E8%AB%8B%E6%B1%82%E5%92%8C%E6%AD%A4%E8%AB%8B%E6%B1%82%EF%BC%8C%E4%B9%9F%E8%A8%B1%E4%B8%80%E5%80%8B%E6%9B%B4%E5%83%8F%20JMP%20%E7%9A%84%E8%AB%8B%E6%B1%82%E6%98%AF%E7%82%BA%20TableBox()%20%E6%B7%BB%E5%8A%A0%20By()%20%E9%81%B8%E9%A0%85%E3%80%82%20%E8%88%87%E4%BD%BF%E7%94%A8%20By%20%E5%BB%BA%E7%AB%8B%E5%A4%9A%E5%80%8B%E9%9B%99%E8%AE%8A%E6%95%B8%E7%9A%84%E9%9B%99%E8%AE%8A%E6%95%B8%E9%A1%9E%E4%BC%BC%EF%BC%8C%E5%AE%83%E5%B0%87%E5%BB%BA%E7%AB%8B%E5%A4%9A%E5%80%8B%20TableBox%E3%80%82%E5%8F%AA%E6%98%AF%E6%88%91%E7%9A%842%E5%88%86%E9%8C%A2%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!