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
Choose Language Hide Translation Bar
powerpuff
Level IV

Extract column info from jmp tables

Is it possible to extract column info like Column Name, Datatype, Coding and  Design role wothout having to manually right click on each column of a table and copying the data? Thanks for any help.

1 ACCEPTED SOLUTION

Accepted Solutions
cwillden
Super User (Alumni)

Re: Extract column info from jmp tables

Yes, check out the Scripting Index (Help > Scripting Index) under Data Table > Column Scripting.  The whole section with "Get _______" does the kind of thing you want to do.ScriptingIndex.PNG

 If you want to get everything in one function, you can use "Get Script" though you'll have to process the results a bit to get each component.  Probably easier to write your own function that returns the results of Get Column Properties, Get Name, Get Format,  and Get Modeling Type, etc.

 

-- Cameron Willden

View solution in original post

3 REPLIES 3
cwillden
Super User (Alumni)

Re: Extract column info from jmp tables

Yes, check out the Scripting Index (Help > Scripting Index) under Data Table > Column Scripting.  The whole section with "Get _______" does the kind of thing you want to do.ScriptingIndex.PNG

 If you want to get everything in one function, you can use "Get Script" though you'll have to process the results a bit to get each component.  Probably easier to write your own function that returns the results of Get Column Properties, Get Name, Get Format,  and Get Modeling Type, etc.

 

-- Cameron Willden
txnelson
Super User

Re: Extract column info from jmp tables

You can use

col << get property("<prperty>");

to get whatever information you want. 

You may be able to get the information you want by using the Column Viewer with it't "Find Columns with Properties".

Finally, one item I hae used is to use

dt << get script

It will detail all of the properties for each of the columns.  However, since it will also contain all of the data for the data table, I typically delete all of the rows in the data table, and then use the << get script. 

Jim
stan_koprowski
Community Manager Community Manager

Re: Extract column info from jmp tables

Hi,

There is a wonderful table properties add-in written by @Justin_Chilton that will do exactly what you need.

Have a look at the add-in and see if will do what you want.

 

cheers,

--Stan