Skip to main content
October 10, 2024
Question

"Data not refreshing despite using refresh function; works on browser but not on mobile"

  • October 10, 2024
  • 4 replies
  • 2 views

In my use case,

A Customer is linked to multiple Units in a one-to-many relationship.

On one interface, I have a customer selection, and based on the selected customer, the corresponding units are displayed in a dropdown labeled "Unit." This is achieved using an expression rule within a refresh variable.

Additionally, there's an option for the user to add a unit on the same page for the selected customer. For this, I'm using a Record action, where a pop-up window opens for data entry. Once the user submits the data, the unit list in the dropdown is refreshed to include the newly added unit. This is done using the "refresh after record action" feature.

While this functionality works as expected in the browser, it does not work on the Appian mobile application. Any suggestions?


Here is the Code Snippet 

local!units: a!refreshVariable(
value: rule!FAA_QR_get_Unit(
customerTpi: ri!assetRecord['recordType!{20d559ec-3d4b-4870-9672-f594295b09f7}FFA Asset.fields.{dc948fef-b7ff-4714-82b0-6703115f08b1}customertpi']
),
refreshAfter: "RECORD_ACTION",

),

4 replies

stefanhelzle0001
October 10, 2024

In that record action, do you have proper activity chaining set up? If not, it might be that the timing behaviour is a bit different and while the UI refresh in browser happens after writing the data, while on mobile it is before writing the data.

If your chaining is correct, I suggest to open a support case.

October 10, 2024

The Chaining is correct and here is the snap of that

stefanhelzle0001
October 10, 2024

OK. Thanks. I do expect this to work -> support case.