在按钮上单击刷新表并添加新行
我创建了一个表格和一个按钮。单击该按钮后,我需要添加行。 为此,我使用了 buttonClick
方法,在该方法中我在表中添加了一行。
问题是该行添加到表中(我可以在日志中看到), 但屏幕变成空白,只显示按钮。
如果我退出并再次导航到屏幕,那么我可以看到添加的新行。
添加后如何立即看到添加的新行。
I have created a table and a button. On click of that button i need to add the row.
For that i have used buttonClick
method in which i am adding a row in the Table.
The problem is that the row in added to the table (I can see in the logs),
but the screen becomes blank with just the button displayed.
If I exit and navigate again to the screen, then i can see the new row added.
How can i see the new row added immeditalety once added.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
某些代码可能有助于进一步了解可能出现的问题,但我还建议您在添加表行后直接调用以下代码行。
这将更新表的数据源并强制重新绘制。如果您提供一些代码也许可以提供更多帮助
Some code would probably help to further see what might be wrong, but I would also recommend you to call the following code line directly after you have added a table row.
This will update the datasource for your table and force a repaint. If you provide some code maybe more help can be provided
使用 IndexedContainer 在按钮单击期间在表中添加新行。
示例
Using IndexedContainer to add new row in table during button click..
Example