Subscribe Bookmark RSS Feed

Reshow table in application?

miguello

Community Trekker

Joined:

Jan 27, 2016

I have an application, where I do some manipulations with table.

I show this table in a separate scrollbox, where I have Table Box, and when I open the table I append it to the Table Box this way:

Table1<<Append(DataTableBox(DataTable1));

Now, I noticed, that when my manipulations are changing the column names, it updates in that Table Box, but when I add columns, it does not refresh.

I tried TAble1<<reshow;

It does not work.

I guess that I can refer not to TAble Box, but to the DataTableBox that I append - the only problem I do not have its name.

Probably, one wqy would be to get its name, then either delete it and append again, or just redraw\reshow.

Any suggestions?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

Ok, this technique will work:

If(IsScriptable(Border1<<Child), (Border1<<Child)<<delete);

    Border1 << Append(DataTable1 << New Data Box())

It actually places table in the Border1, but I can live with that.

2 REPLIES
miguello

Community Trekker

Joined:

Jan 27, 2016

So I noticed that when appending this table box, it actually creates a tree with Col Boxes and stuff... That's why the column names refresh - but new columns do not appear because no Col Boxes for those columns in the first place.

So, I guess I'll have to delete the whole piece of the tree and then recreate it.

Maybe there is  easier way of displaying the current table I'm working with and rendering all the changes in the window?

Thanks!

Solution

Ok, this technique will work:

If(IsScriptable(Border1<<Child), (Border1<<Child)<<delete);

    Border1 << Append(DataTable1 << New Data Box())

It actually places table in the Border1, but I can live with that.