I have an Online Job Card which the employees complete for each job they do.
Each Job Card are completed on the Power App and the data is saved into Excel.
In Excel, each Job Card is saved on a one liner on the tab.
Each Job Card gets a unique Job Card no, which is the " ID _ Column" column on the Excel tab. The ID Column follows in numerical order and each line which is a new Job Card follows.
The If function works fine, except if the Form is Submitted at +- the same time.
At the start of using the Online Job Card there weren't any issues with the If function. But now with more and more people using it, it happens that people Submits around the same time and the unique number " ID _ Column " is duplicated.
Thus, the If function doesn't work if the Submit button is pushed at +- the same time.
Any suggestions on another check to build in, will be truly appreciated.
Is there perhaps a time-delay function which will work and can be included?
Any suggestions will be awesome.
Thank you!
If(
!IsBlank(LookUp(JobCardMetering,
ID_Column = DataCardValue_JobCardNo.Text
)
) &&
IsBlank(LookUp(JobCardMetering,
Job_Complete = Dropdown_Complete.SelectedText.Value
)
),
SubmitForm(EditForm1_Intro),
Notify(
"The process was started. And the Job Card no. was generated. Complete the process.",
NotificationType.Error
)
);
Refresh(JobCardMetering);
SubmitForm(EditForm1_Intro)