简体   繁体   English

操作后刷新表中的平台数据

[英]Refresh platform data in tables after action

if i did some edits on data via functions on objects in tables are still the old data.如果我通过表中对象的函数对数据进行了一些编辑,仍然是旧数据。 Only after Browser refresh the changes are visible.只有在浏览器刷新后,更改才可见。 Data is coming via Slate JavaScript Functions from Platform.数据来自平台的 Slate JavaScript 函数。

Is there a way to refresh this data shown in widget table?有没有办法刷新小部件表中显示的这些数据?

The Object Set integration in the Slate Platform tab is backed by the Object Set Service search endpoint. Slate 平台选项卡中的 Object 集集成由 Object 集服务搜索端点支持。 This endpoint in turn hits the underlying index in the Phonograph data store associated with the object type.该端点依次命中与 object 类型关联的留声机数据存储中的基础索引

When you make a data change via an Action, there is a brief (normally less than 3s) delay before the changes are reflected in the index.当您通过 Action 进行数据更改时,在更改反映在索引中之前会有一个短暂的(通常少于 3 秒)延迟。 They're immediately reflected if you access the modified object(s) by primary key.如果您通过主键访问修改后的对象,它们会立即反映出来。

So in Slate you can set up an Event "chain" based on the success event broadcast from the Action, through a Toast Widget with a 3-4s timer, to an event that triggers on w_toastWidget.didClose -> s_myObjectSet.run .因此,在 Slate 中,您可以根据从 Action 广播的成功事件,通过具有 3-4 秒计时器的 Toast Widget 到在w_toastWidget.didClose -> s_myObjectSet.run上触发的事件来设置事件“链”。

This should tell Slate to update the object set 4 seconds after the successful submission of the Action.这应该告诉 Slate 在成功提交 Action 4 秒后更新 object 集。

A future planned update to the Object storage infrastructure will provide a version of Actions that guarantees when the request returns successfully that the changes will already be reflected in search results. Object 存储基础架构的未来计划更新将提供一个 Actions 版本,以保证当请求成功返回时,更改将已反映在搜索结果中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM