Create a popup screen.
Add a label for the background, a label for message and two boutons, the group them.
Label:
[code] "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
[/code]
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.
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)
)
[/code]
To Delete a record:
[code] Remove(DS, recordDetail);//If you have connected records
RemoveIf(DS2, MasterID = recordDetail.ID);
UpdateContext({showDialog:false}); [/code]