That can be very very risky approach. It is better to send the platform message directly to the data table reference if you can easily get it without current data table (this is the case quite commonly). Here is one example with graph builder and distribution with some extra prints to log just to show how the table reference can be utilized
Names Default To Here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
gb = dt << Graph Builder(
Variables(X(:weight), Y(:height), Overlay(:sex)),
Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11)))
);
dist = dt << Distribution(Column(:Age, :Weight));
nw = New Window("",
H List Box(
gb2 = dt << Graph Builder(
Variables(X(:weight), Y(:height)),
Elements(Points(X, Y, Legend(9)))
),
dist2 = dist = dt << Distribution(Column(:Age));
)
);
Show(dt, gb, dist, gb << Get Data Table, gb2, dist2);
-Jarmo