Make a button visible after record action

Certified Associate Developer

Hi team,

I want to display a refresh button in a interface after upload action(record action item) takes place.It should not be displayed when the interface loads. I tried using  a!refreshVariable but it is not working as the variable is always true as in value field. can anyone tell any ways of achieving this? 

 

Thanks in advance.

  Discussion posts and replies are publicly visible

Parents Reply
  • This is difficult, if not impossible to implement using a record action. The problem is that a record action cannot return any values.

    RefreshAfter "RECORD_ACTION" makes it pretty easy IMHO.

    a!localVariables(
      
      local!formLoadTime: now(),
      
      local!lastRecordActionTime: a!refreshVariable(
        value: now(),
        refreshAfter: "RECORD_ACTION"
      ),
      
      local!isActionRun: local!formLoadTime <> local!lastRecordActionTime,
      /* then use the above boolean to determine other on-form behavior, like showing/hiding components etc */
      
      ...
    )

Children