After spring update, I have started with lot of confidence building my database management PowerApp to manage my business, with data based on CDS (CDS 2.0!).
Below is a sample of gallery showing data from Country custom Entity, and for any record, in any entity, i would like to be able to flag/unflag so to follow up flagged records, same as in Outlook for instance.
I saves 2 images in the Media in my PowerApp: name of files is flag_red, and flag_gray). While in the entity itself i have a Yes/No field titled IsFlagged.
With Patch, I now can toggle the status of flag of any record without getting into Edit mode, via this formula:
for the little flag in the gallery template:
OnSelect: Patch(Country,ThisItem,If(isflagged=true,{isflagged:false},{isflagged:true}))
Image: If(isflagged=true,flag_red,flag_gray)
All works fine, perfectly, but response time is long, I would say 5 seconds or so. Saving a record on the other hand via an Edit form is nearly immediate.
Am I missing something?
PS: UI/UX is copyright protected 😛
PS: Once completed, i will share the story of developing this PowerApp.