cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
samikshashetty
Frequent Visitor

Build Code

Tried implementing offline app, which basically takes CDS as data, makes use of collections  and Load and Save data formulas.   It is a employee form details , which runs smoothly.

User can fill details online and offline too... offline data is saved in local cache and once internet is connected it updates to CDS database. 

Basically , my delete function is not working .. I m unable to delete the records.

below is the formula :

Remove([@EmployeeDetails], BrowseGallery1.Selected); If (IsEmpty(Errors([@EmployeeDetails], BrowseGallery1.Selected)), Back())

 

1 REPLY 1
v-xida-msft
Community Support
Community Support

Hi @samikshashetty ,

Could you please share a bit more about your scenario?

Do you mean that the Remove function could not work when your app is in Offline Mode?

 

If the Remove function could not work when your app is in Offline Mode, actually, it is an normal behavior. When you want to remove records from your CDS Entity using Remove function, it requires the Internet, otherwise, it could not send a remove request from your app to your CDS Entity.

 

If the Remove formula could not work when your app is in Online mode, please consider modify your formula as below:

RemoveIf(
        [@EmployeeDetails], 
        'Unique Identifier Column' = BrowseGallery1.Selected.'Unique Identifier Column'
);
If(
   IsEmpty(Errors([@EmployeeDetails])), 
   Back()
)

Note: The 'Unique Identifier Column' represents the Unique Identifier column in your EmployeeDetails Entity, which could identify one record uniquely.

 

If you want to remove the records from a collection using Remove/RemoveIf function when your app is in Offline Mode, I think the Remove/RemoveIf function could achieve your needs.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Apps User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (26,218)