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.
Discussion posts and replies are publicly visible
I am not sure if I understand your problem correctly. Can you maybe add some more details/screenshots to it?
You can use sync record smart service to immediate sync records after update. I think it will help you
Note: Suggesting with the given information.
Can you try enabling activity chaining.
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" ) } )
Hello mouli8664,
Activity chaining is enabled and data is getting refreshed, but action button is available only after refreshing the page.
What are you doing on that button? Saving data in DB or something?
yes saving data to DB on click of this button.
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.