Skip to main content
February 23, 2023
Question

Refresh Record Header

  • February 23, 2023
  • 8 replies
  • 0 views

Hello All,

I am calling the interface through summary view of record type and create a button in related action. I am having a button in interface as well and when this button is clicked on it should display the related action button. But in my case related action displays after refreshing the page. 

Any suggestions would be helpful.

    8 replies

    harshitb6843
    February 23, 2023

    I am not sure if I understand your problem correctly. Can you maybe add some more details/screenshots to it?

    February 23, 2023

    You can use sync record smart service to immediate sync records after update. I think it will help you

    February 23, 2023

    Note: Suggesting with the given information.

    Can you try enabling activity chaining.

    February 23, 2023

    Hello [mention:2354e795b59f4e7cb14749aa41445533:e9ed411860ed4f2ba0265705b8793d05],

    Activity chaining is enabled and data is getting refreshed, but action button is available only after refreshing the page.

    harshitb6843
    February 23, 2023

    What are you doing on that button? Saving data in DB or something? 

    surajs7658
    February 23, 2023

    You can show the related action on showWhen condition of your Interface button value when it gets true.


    a!localVariables(
    local!buttonValue:false,
    {
    a!recordActionField(
    actions: a!recordActionItem(
    action: 'recordType!{b4aad3cb-0820-4f90-ba74-fcdcd4d18f6d}MMA Meeting.actions.{c225e355-5704-4288-bac4-4f4df0366f4a}createMeeting',
    identifier: 44
    ),
    showWhen: or(local!buttonValue)
    ),
    a!buttonArrayLayout(
    buttons: {
    a!buttonWidget(
    label: "Button",
    style: "NORMAL",
    value: true,
    saveInto: a!save(local!buttonValue,save!value)
    )
    },
    align: "START"
    )
    }
    )

    abhayd3663
    February 24, 2023

    In Related Action -> Visibility use a Boolean constant, keep its default value as false. Update the constant's value to true when you click the button on the form. To update constant's value you can use smart service. Once you are done with the Related Action you need to update the constant back to false.