Tap Forms Database Pro for Mac, iPhone, iPad and Apple Watch › Forums › Using Tap Forms 5 › Help Adding
- This topic has 2 replies, 2 voices, and was last updated 2 years, 8 months ago by
Glen Forister.
-
AuthorPosts
-
February 14, 2023 at 7:12 PM #48903
Glen ForisterParticipantA while ago I believe Daniel wrote a script for me to grab a number from a previous record and add it to a number in the current record to provide a running total. I have several forms that use this technique (in another DB program now defunct) for various purposes including medication days between treatments and rain totals. In that program no computer language programming was necessary.
I could not get the script to work and finally 2.5 weeks ago I submitted my Form with data and the script included (“Previous Field calc”)for rain totals in the Script subdivision of the forum, but apparently nobody is interested in looking at it.
I would really like to get this working – I’m used to depending on those forms.
Hope somebody will look at my problem.
Thanks.-
This topic was modified 2 years, 8 months ago by
Glen Forister.
February 14, 2023 at 8:11 PM #48905
Daniel LeuParticipantSorry, was (and still am) busy with my real work.
My function resets the year-to-date value as of October 1st. If there is no October 1st entry, the reset fails. The easiest is to add a simple entry with 0 if there is none. After this change, I clicked on
Refresh records listand all looks good now.Attached is the waveform that shows the reset of year-to-date as of 10/1/22.
This uses your test data from https://www.tapforms.com/forums/topic/previous-field-calc/
BTW, it is better to continue to post in the same thread than opening a new one with the same issue.
-
This reply was modified 2 years, 8 months ago by
Daniel Leu.
Attachments:
You must be logged in to view attached files.Cheers, Daniel
---
See https://lab.danielleu.com/tapformspro/ for scripts and tips&tricksFebruary 15, 2023 at 9:53 AM #48908
Glen ForisterParticipantThanks. That did make it work. I’m glad it was an easy fix for you to explain.
I started a new issue in the other section in an attempt not to bother you since I thought you might be busy and a volunteer (as I suspected). I appreciate all your efforts.
-
This topic was modified 2 years, 8 months ago by
-
AuthorPosts
You must be logged in to reply to this topic.