Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Review Inspection button appearing in the middle of the checklist steps #9

Open
jjohnson3922 opened this issue Sep 2, 2021 · 1 comment

Comments

@jjohnson3922
Copy link

Hello,

I am having an issue where the "Review Inspection" button is appearing in the middle of the inspection. The code appears to be looking at the last item in the colLastInspectionSteps to find the sequence number but it doesn't appear to be working as expected.

This is happening around the 10th question on every checklist I've
inspectionapp1
inspectionapp2
created.

Any help would be greatly appreciated!

@ItalicIntegral
Copy link

ItalicIntegral commented Oct 12, 2022

For me this seemed to only be an issue on mobile devices. The variable Sequence is being sorted as a string as opposed to as a number. The Sequence field in the database is a number but I am unsure how to make sure it is a number the Sequence variable as well.

My fix was to cast the variable as a number in the sort function. I had to do this in 2 or 3 locations in the app.

Here is one location...
Checklist Steps Screen, In galInspectionSteps, btnReviewInspections, Visible attribute. Replace Sequence with Value(Sequence).

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants