Skip to main content
February 24, 2023
Question

visibility criteria for Related action

  • February 24, 2023
  • 5 replies
  • 0 views

Hi Champs,

I have a use case where I don't need to show the related action in a record related action tab ; but I need to call that related action of a separate interface. the reason for doing this is I have to call an interface in a popup/dialog ; which can only possible in related action. 

Is it feasible to do so ?

5 replies

stefanhelzle0001
Brainy
February 24, 2023

Using related actions just to please a "requirement" to create a popup is questionable. But, sure. Disable the related actions view for that record. Settings the visibility to false, will make it unavailable in general. So avoid that.

abhayd3663
February 24, 2023

1. Set Record Visibility to false().

2. User following code to display recordAction in the interface.

a!recordActionField(
  actions: {
    a!recordActionItem(
     action: recordType!Department.actions.update,
     identifier: ri!departmentId
    ),
    a!recordActionItem(
     action: recordType!Customer.actions.flag,
     identifier: ri!customerId
    )
  }
)

Ref. docs.appian.com/.../Record_Action_Component.html

February 25, 2023

Hi Abhay, once you make related action visibility to false , it won't show in interface too.

abhayd3663
February 26, 2023

Use constant to set the record action visibility to false. Update constant to true from the interface and set it back to false when you are done with it.