Hi @MrNappa ,
For your first question, if you are in Offline, and you want to make the UI update with validation errors, I afraid that there is no way to achieve your needs in PowerApps currently.
The validation errors would fire in your Edit form only when you execute the SubmitForm function. As an alternative solution, I think the If function could achieve your needs:
If(
IsBlank(DataCardValue1.Text),
Notify("The Field1 could not be Blank!", NotificationType.Error),
IsBlank(DataCardValue2.Text),
Notify("The Field2 could not be Blank!", NotificationType.Error),
IsBlank(DataCardValue3.Text),
Notify("The Field3 could not be Blank!", NotificationType.Error),
...
...
Remove(dataToSave, Filter( dataToSave, editentity=editedItem.editentity));
Collect( dataToSave, editedItem ); ... SaveData( editItems, "editItems");
Navigate( ElementChoice, ScreenTransition.CoverRight );
)
For your second question, if you want to retrieve the whole record directly from the editform, please consider modify your Patch formula as below:
Remove( dataToSave, Filter( dataToSave, editentity=editedItem.editentity ) );
Collect( dataToSave, editedItem );
Patch( dataToSave, editedItem, editform.Updates); /* <-- Modify formula here */
SaveData(dataToSave, "dataToSave" );
// Also update the local collection of edited items (we don't want to work on an old version of the item)
Patch(editItems, editedItem, editform.Updates); /* <-- Modify formula here */
SaveData( editItems, "editItems" );
Navigate( ElementChoice, ScreenTransition.CoverRight );
For your third question, actually, it is an known issue with Two Option/Option Set type column. When you click the Two Option/Opton Set Dropdown box in your Edit form, it would send an HTTP call to CDS server to retrieve the available options, then populate them into the Two Option/Opton Set Dropdown box.
If you are in Offline, it could not send an HTTP call to CDS Server to retrieve the available options, so the Two Option/Opton Set Dropdown box would not be populated with proper values.
For your forth question, do you enable the "Created On" field within your Edit form? If you enabled the "Created On" field within your Edit form, please consider remove the "Created On" field/data card from your edit form. Then modify your Patch formula as below:
If(
Connection.Connected,
Patch(editentities, Defaults(editentities), dataToSave ); // submit to data source
Clear( dataToSave );
SaveData( dataToSave, "dataToSave" );
,
Notify( "No connection!");
);
Please take a try with above solution, check if it could help in your scenario.
Best regards,