Hello everyone
Good morning
I have a question.
I have a form as FormNew, but I need integrate the control Attachment, I add in my form and I required SAVE record with the function Patch, NOT Form.Updates.
I attached an image.
Regards
Solved! Go to Solution.
So if you are using an Form, then all of the work is done for you.
Typically, instead of popping up lots of Notify messages, the preferred method is to simply set the datacards you are checking for Blank to be required (Required - true). The form will then notify the user directly in the form.
As for your Formula:
1) Again, all of the If statements can go away if you just set those datacards to Required.
2) SubmitForm is pretty much the only thing you need in your submit button. Except in your case you will want to wrap that to test the connection:
If(Connection.Connected && NewForm_1.Valid,
SubmitForm(NewForm_1),
Notify("La conexión de internet ha fallado, revise su conexión", Warning, 5000)
)
3) You do not need to do a Refresh statement on the datasource...it will already be updated.
4) The OnSuccess action of NewForm_1 should be set to:
Notify("Elemento guardado", Success, 4000);
ResetForm(NewForm_1)
Navigate(BrowseScreen1, Cover);
Why are you not using SubmitForm on the form? All of the things you are doing in the massive If tree can be handled directly in the form. The only thing you need is SubmitForm.
AND...I say that because you CANNOT patch attachments. The only solution for submitting attachments is using the SubmitForm.
I hope this is helpful for you.
Hello Randy
Thank you for your support
Before to accept as solution, could you please comment you 2 question.
1.- If I omite function Path, not problem with save new registers?
2.- Could you please comment, if my code is good?, attached an image. And if you can view an error or improve in this code, could you please confirm me?
Thank you
So if you are using an Form, then all of the work is done for you.
Typically, instead of popping up lots of Notify messages, the preferred method is to simply set the datacards you are checking for Blank to be required (Required - true). The form will then notify the user directly in the form.
As for your Formula:
1) Again, all of the If statements can go away if you just set those datacards to Required.
2) SubmitForm is pretty much the only thing you need in your submit button. Except in your case you will want to wrap that to test the connection:
If(Connection.Connected && NewForm_1.Valid,
SubmitForm(NewForm_1),
Notify("La conexión de internet ha fallado, revise su conexión", Warning, 5000)
)
3) You do not need to do a Refresh statement on the datasource...it will already be updated.
4) The OnSuccess action of NewForm_1 should be set to:
Notify("Elemento guardado", Success, 4000);
ResetForm(NewForm_1)
Navigate(BrowseScreen1, Cover);
Make sure that all of the Update properties in your datacards are referencing the proper controls and converting as required to any data type that is needed for your datasource.
User | Count |
---|---|
122 | |
87 | |
86 | |
75 | |
67 |
User | Count |
---|---|
214 | |
181 | |
137 | |
96 | |
83 |