Hi all,
I need help with a seemingly simple problem but for which I cannot find a solution. I have written a JSL code to do some computation and the first things it does is open a Column Dialog window where one can choose table columns and put them into different roles (in my case X and Y variables). What I need to do is to get the names of these table columns so that I can use them later on to show the axis names (using the Yname and Xname functions) in a Graph box . All is fine when the table columns are directly used. However, if I do a transformation on the fly by right-clicking the variable before assigning to a role in the Column Dialog window, then things get more complicated. Normally, I would use something like:
yn= as column(eval( cdw["yv"])) << Get Name;
where cdw in the object return by the column dialog window. However, in the case of a transformed variable, it will produce
yn = deleted object reference[];
If I break down the problem, the eval( cdw["yv"])) would yield a one element list looking like:
{Transform Column("Log10[Name of Table colum]",Formula( Log10( :Name( "Name of Table colum" ) ) ))}
How can I extract from that just the portion Log10[Name of Table colum] so that I can use it in a Yname or Xname statement in a Graph Box??
Many thanks for any help you can provide.
Regards, Yves