Lee_SGilmore
7 years agoQrew Cadet
Adding data to new record with URL formula but having problems with order of operations
A while back, I posted a question trying to get an auto-number generator to match the criteria our enterprise accounting system requires.
https://community.quickbase.com/quickbase/topics/incrementing-number-based-on-parent-record-total-le...
In that posting, a suggestion was given that solved my need for a Job Number + Next Sequential four digit number value to generate and push to the field upon creating a new record. Unfortunately there are two separate instances where the formula doesn't behave as I'd like.
I've hit a wall trying to figure out a solution to these two instances.
https://community.quickbase.com/quickbase/topics/incrementing-number-based-on-parent-record-total-le...
In that posting, a suggestion was given that solved my need for a Job Number + Next Sequential four digit number value to generate and push to the field upon creating a new record. Unfortunately there are two separate instances where the formula doesn't behave as I'd like.
- When there are "zero" PO records - I'm assuming the code treats zero children records as null and not as an one digit number?
- When there are 9, 99 or 999 PO records, the next sequential number will have one more zero than it should. I understand this is because the check for total characters is done prior to the number being generated. Thus, 9 counts as "1" character and then it will add three zero's rather than two.
I've hit a wall trying to figure out a solution to these two instances.