Dear Community,
I've been struggling for a while now, trying to have a Dialog ^TABLENAME reference filled in an Application Dialog Title.
It seems that it only reacts to a Current DataTable being already loaded when my app is launched.
But this is in fact the purpose of Dialog1, to chose what Data Table to open, starting from nothing:
![Dialog2_Title-TABLENAME_Setting.png Dialog2_Title-TABLENAME_Setting.png](https://community.jmp.com/t5/image/serverpage/image-id/29609i1E8C3445CBF9421E/image-size/large?v=v2&px=999)
The issue here is that even though Dialog1 script ends with opening a chosen Data Table, Dialog2 Title TABLENAME remains empty:
![Dialog2_Title-TABLENAME_Render.png Dialog2_Title-TABLENAME_Render.png](https://community.jmp.com/t5/image/serverpage/image-id/29610iD5FEC539B68A1AB6/image-size/large?v=v2&px=999)
I already tried several syntaxes at the end of Dialog1 script, with no change
OnNext1 = Function( {},
file_path = FilePath << GetText();
If ( file_path != "",
//IST Text File
dt = Open(
file_path,
...
);
dt << CurrentDataTable();
CurrentDataTable( dt );
Dialog2 << CreateInstance( dt );
}
Any suggestion on how to push my "dt" Data Table into this ^TABLENAME reference, in a Dialog Title?
Thanks
Stéphane DELACROIX
Senior Simulation & Planning Engineer