简体   繁体   中英

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.

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. This endpoint in turn hits the underlying index in the Phonograph data store associated with the object type.

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. 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 .

This should tell Slate to update the object set 4 seconds after the successful submission of the Action.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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