Hi,
I have some refresh problems with a Summary View.The View is composed of a dashboard (Record Type A) and a read-only grid (Record Type B). In the dashboard, there is a Customer Record Field (field C) aggregating Record Type B.When I try to add a new record in the grid, the grid updates itself (so chaining should be ok), but field C doesn't unless I force manually the updating.Any suggestions?
Discussion posts and replies are publicly visible
I'm not sure, but by any chance, have you tried adding a "Sync Records" node pointing to Type B within the chaining after the new entry is added?
I tried but without success..The same result also when I tried to point the Sync Records node to Record Type A, because the refresh of Record Type B is ok and the field C is a Custom Record Field of Record Type A.
Could you share screenshots of your configuration for the custom record field? Thanks
Here it is. The Custom Record Field is "status" and is an integer evaluated in real-time
Seems like a normal UI refresh issue. There are a few situations in which Appian will automatically refresh data, and for some this does not work.
Did you try to change the refresh behaviour of the data for that "C" field?
I have only called back Field C in the Summary View. I didn't modify the refresh behavior.
I do not understand what you mean with "I have only called back Field C in the Summary View."
On that view, you somewhere query the data you need to display the field you mention. I suggest to change the refresh behaviour of that query.
Yes, I used the following query to retrieve Field C. This query is declared in the context of the record action to start the Summary View.Where and how can I change its refresh behavior?
index( a!queryRecordType( recordType: 'recordType!{147c9155-5209-48c9-8a14-b747d24333a8}BDNG Organismo', pagingInfo: a!pagingInfo(startIndex: 1, batchSize: 1), filters: a!queryFilter( field: BDNG Organismo.id, operator: "=", value: ri!id ) ).data, 1, cast( BDNG Organismo, null ) )
Assuming that you store that in a local variable, just wrap that code snippet into a a!refreshVariable() call.
Nothing. I used a!refreshVariable() in two points of Record Type A: in the interface of Summary View and in the context of related action. But Field C doesn't refresh. By the way, I tried also the option refreshAlways.
Record Type A: 1) Summary View Interface a!localVariables( local!query: a!refreshVariable( value: rule!BDNG_GetOrganismoById(id: rv!identifier), refreshAfter: "RECORD ACTION" ), rule!BDNG_Form_View_Organismo(organismo: local!query) ) 2) Context of Related Action to start Summary View a!localVariables( local!query: a!refreshVariable( value: rule!BDNG_GetOrganismoById(id: rv!identifier), refreshAfter: "RECORD ACTION" ), { organismo: local!query } )