Create a popup screen.
Add a label for the background, a label for message and two boutons, the group them.
Label:
"Are you sure you want to delete this record with " & recordDetail.'Title' & "- ID: " & recordDetail.ID & " - Number of children records to be deleted: " & CountRous(Filter(DS2, MasterID = record.ID
Next set when to show the popup. in my case on InputBox onChange
UpdateContext({showDialog:true});
Set Cancel button OnSelect proerty to UpdateContext({showDialog:false});
Set Update button OnSelect proerty to UpdateContext({showDialog:true});
Last update the Visibile property for the Pupoup group to ShowDialog
To Add a record:
If no record found, patch.
//SubmitForm(frm) Set( varRecord, LookUp( DocumentsCollectFeedbackValueStreams, Title = txt_Title_Value.Text ) ); If( IsBlank(varRecord.ID), Patch( DocumentsCollectFeedbackValueStreams, Defaults(DocumentsCollectFeedbackValueStreams), { Title: txt_Title_Value.Text } ); Reset(txt_Title_Value); Set(showDialog, true) )
To Delete a record:
Remove(DS, recordDetail); //If you have connected records RemoveIf(DS2, MasterID = recordDetail.ID); UpdateContext({showDialog:false});