操作后刷新表控件 [英] Refresh table control after action

查看:26
本文介绍了操作后刷新表控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有 表控件(使用屏幕画家生成),显示数据库表中的记录.该屏幕还有一个按钮,单击该按钮时会显示一个弹出窗口.弹出窗口有一个向数据库表中添加记录的表单.

I have a screen with a table control in it (generated with the Screen Painter) that shows records from a database table. The screen also has a button, which shows a popup when it's clicked. The popup has a form to add a record to the database table.

当表单提交时,记录被添加到数据库中,但当弹出窗口关闭时,显示数据库记录的屏幕不会刷新,即新记录不会显示.简单地再次调用屏幕似乎不起作用.

When the form is submitted the record is added to the database, but when the popup is closed, the screen that shows the database records isn't refreshed i.e. the new record isn't shown. Simply calling the screen again doesn't seem to work.

如何刷新表格控件以显示新记录?

How to refresh the table control to show the new record?

推荐答案

你要确保你要显示的数据确实在屏幕显示的内表中.

You have to make sure that the data that you want to display is actually in the internal table that is displayed by the screen.

  • 您可以重新读取数据库表或
  • 将弹出表单生成的行附加到内部表中(如果行类型不相同,您必须先将字段移动到类似的结构中).

如果内部表格有所有数据,但仍然没有显示在表格控件中,请确保表格控件中包含行数的字段已更新以反映额外的行.

If the internal table has all the data, but it still does not display in the table control, make sure that the field in the table control that has the number of lines is updated to reflect the extra line.

这篇关于操作后刷新表控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆