cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
tom_abramov
Level V

Appending reports to windows

Hi,

I put a platform in HlistBox (or some other box) while creating it and then I append this box to the window. Is this the ideal way? Is there some "general box" instead of Hlistbox to use?

I need to append AFTER creating and editing the object.

Thanks.

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Window("EX",
	hlis = HList box()
);

biv_obj1 = dt << Bivariate( Y( :Weight ), X( :Height ) );
//Running some editing on the object
//And then adding to the window
hlis << Append (biv_obj1);//Fail - not a display box

//Putting bivariate into Hlistbox for appending only
biv_box = Hlist Box( biv_obj2 = dt << Bivariate( Y( :Weight ), X( :Height ) ));
hlis << Append(biv_box);//OK
1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Appending reports to windows

You seem to have a good handle on a good approach.  What you are doing is typically the way that I go.  But sometimes it does work out better to append the platform to the display window and to make the edits required after the append.

Jim

View solution in original post

3 REPLIES 3
txnelson
Super User

Re: Appending reports to windows

I have annotated a script, with a couple of items to ponder concerning your question.

names default to here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Window("EX",
	hlis = HList box()
);

// You can create stand alone platform objects, making them invisible or not, 
// and then append their report object 
biv_obj1 = dt << Bivariate(invisible, Y( :Weight ), X( :Height ) );
hlis << Append (Report(biv_obj1));
// This method appends a static version of the platform's output display. 
// That is, most red triangle options are not available. 

//This method works fine, but is more complex than it has to be
biv_box = Hlist Box( biv_obj2 = dt << Bivariate( Y( :Weight ), X( :Height ) ));
hlis << Append(biv_box);

// Platforms can be directly appended to objects within a display window.
hlis << append(biv_obj2 = dt << Bivariate( Y( :Weight ), X( :Height ) ));
Jim
tom_abramov
Level V

Re: Appending reports to windows

Thank you Jim

1. Adding as report disconnects the report from the data

2. Adding while creating is fine, but I need to append after I finish to create the platform and running some edits on it

txnelson
Super User

Re: Appending reports to windows

You seem to have a good handle on a good approach.  What you are doing is typically the way that I go.  But sometimes it does work out better to append the platform to the display window and to make the edits required after the append.

Jim