Subscribe Bookmark RSS Feed

Data Table to Table Box

tom_abramov

Community Trekker

Joined:

Oct 13, 2015

Hello,

I would like to send a data table to my report and close the table.

So, Data Table Box is not good - a table in the report disappears.

Is there some quick way to create simple not linked Table Box from Data table?

 

Thank you,

Tom.

1 ACCEPTED SOLUTION

Accepted Solutions
Justin_Chilton

Joined:

Aug 27, 2015

Solution

Sending the Get As Report message to the data table will return a TableBox of the data table without any links to the original table.

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

nw = New Window( "Big Class",
	dt << Get As Report()
);

Close( dt, NoSave );
Justin
3 REPLIES
Tina

Occasional Contributor

Joined:

Feb 9, 2017

Hi Tom,

if you are working with a journal you could try

 

Current Data Table() << Journal;

 

to print it to the journal and to close it afterwards: 

 

Close(dt,NoSave);

 

Best,

Tina

Justin_Chilton

Joined:

Aug 27, 2015

Solution

Sending the Get As Report message to the data table will return a TableBox of the data table without any links to the original table.

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

nw = New Window( "Big Class",
	dt << Get As Report()
);

Close( dt, NoSave );
Justin
tom_abramov

Community Trekker

Joined:

Oct 13, 2015

Thank you,

Exactly what I need.