The problem I have is that I don't seem to be able to recreate a running total on a form.
One form for example is very simple ie,
A field that logs mileage travelled and a field that give a running total mileage.
What I can't seem to do is be able to add the mileage of the current entry to the total mileage of the previous entry.
Thanks
Derek
I've looked at this gas mileage db and see how to bring forward previous entries but cannot see how to apply it to my mileage db.
The gas mileage gives a total miles for that entry, End miles-Start miles.
What I want to do is carry this total forward and add it to the total miles of the new entry.
Then carry this new total to the next and so on.
Derek
Trip 1
End Miles - Start miles = 5 miles
Trip 2
End Miles - Start miles = 5 miles
What we're looking for is a way to keep a running total of the trips.
Trip 1 = 5miles
Trip 2 = 5miles
Total = 10 miles
Thanks for a great app.
And first record add your miles from car in both StartTrip and EndTrip.
If you have done right you will have totals in every record. Hope it helps.
Happy coding from Jemen
I prepared a form exactly as you said and yes it calculates a running total on each record,so far so good.
If I select a previous record the 'Start Trip' field takes the value from the last 'End Trip' entry and the whole form is messed up.
If I set the 'Start Trip' field to 'Disable after Save' then this prevents any future editing.
Also, as I said in my first post, I have imported records from another database and there seems to be no way to update previous records.
Unless this is something that can be put right I will probably have to stick with the HanDBase app. Its not perfect but seems to be able to do the things I want.
The feature that attracted me to Sailforms Pro was the ease at which forms could be laid out.
Tungsten
Derek
Octazid , and Jan Erik Matz, thanks for the input.
Jan Eric Matz.
Thanks for the suggestions.
I had already done a database like you layed out before you replied.
The problem is now, like Derek stated, with this setup if you reopen a record in the form view it recalculates and doubles the value in the Total field.
Derek.
Like you I've used Handbase since my Palm Pilot days, and changed to Sailforms for the same reason as you.
I had the same problem when importing a database, I couldn't get Sailforms to recalculate the entire database after setting up the formulas.
I found that if I opened each record in the form view it would recalculate that record.
So while it looked odd in list view, at least if I needed a particular record it would recalculate when viewed.
Keep updates coming if you find a solution you like.
Look at the sample databases that come with Sailforms
The Time Card database, it keeps a daily record of hours worked or pay, but you can't keep a total
The same with the Gas Mileage math example.
If you want to expand it to keep a record of gas purchased and price per gallon, with a running total of price paid and total gallons. It doesn't seem to be possible.
Or what was originally asked about a running total of miles driven.
This should be a simple procedure for any database software, and I was surprised to see that it wasn't in Sailforms
I still think Sailforms is a nice database and look forward to all new updates, I will also upgrade to Pro this week.
Again thanks for your input and time.
Granted I only have the Plus version, and it may be something I can do with the Pro version.
Don't expect all your problems been solved with the upgrade to Pro.
Until Sailforms Pro can do these basic things I won't be going further with this.
Don't want to risk loosing valuable data.
As for starting from scratch, no chance.
I've converted data between MS Access, ThinkDB on Palm, Smartlisttogo on Palm, HanDBase for ipad and HanDBase for Android, never come across a database app that couldn't give running totals.
Derek
As I said before I like the ease with which forms can be laid out and I also particularly like been able to embed remote tables into forms.
Something I was able to do in Access but never on a portable device like a tablet.
However at the moment calculated fields play a significant part in several of my databases and until this is fixed I wont risk several years worth of data.
Thanks to all for their input
Derek
So since Sailforms is a SQL based DB, it's probably not going to be a feature any time soon.
For now I'll use the lock field method.
This still doesn't allow you to modify an entry and have the DB recalculate the totals.
I'll look at the Tea Shop sample and see what's been done there to record sales and totals owed
Hi Derek, Chris and Dear Sailors (Sail form Users :-))
Running Total Implemented ; Some Important Required Features: "DO READ THEM"
Running Total:
The running total to show dynamically once the user enters the end mileage (in this case) would be possible by using Remote Total.
In sailforms as per my observation, the Remote totals are updated when we leave the form. If the remote totals are refreshed when the form is saved the total can be dynamically shown. I think this feature need to be implemented by Chris.
For now, i have played around for a while and came up with a solution. Let me know if i have overlooked any of the conditions. Do Check the attachment and let me know your thoughts.
After entering or editing, press the 'save and close' button.
In Sailforms Pro, though some* important features are missing, it gives us an opportunity to play around for the solution :D :)
Developer Attention:
Dear Chris:
Some important features that require immediate attention* to make the app more robust and helpful to Sailors.
1. to be able to perform some default actions
a)when the form is either loaded or exited (on load or on exit event)
b)when a field is entered (on enter event)
c)when a field is updated (on update event)
2. remote totals(totals, minimum, maximum....) to be refreshed when form saved
3. For remote fields, we are now having remote count and remote total. Please include remote minimum, remote maximum, remote average. These are very important features.
4. For a field to show only filtered values in dropdown (for connected fields, search lookup or search if found...). A condition option while making the connections to show only required records in dropdown.
5. When showing remote table we are connecting remote table with existing table(form) with one common field.
a) is it possible to connect with more number of fields matching?
b) is it possible to include conditions(filters)?
This is important feature missing in the current version as this would help in querying the data efficiently. For now I am defining my own keys by creating new fields and initializing them to join two or more fields to form compound key for getting remote totals satisfying the condition.
6. Default alarm sound and Vibration option. Currently whenever i enable alarm time, I need to select the sound/vibrate option. Other wise it does not ring or vibrate.
7. Putvalue. Can we have a filter condition in put value, where we would be able to update a specified record?
8. Button Click - Backup Database: I have developed an app for my father to track the schedule planning of his business. I just gave him a widget on homescreen to launch this schedule planning app. After few days, he asked me how to backup the data. I was blank. If there was an option to assign this action to a button, then it would have been easier to backup the database by just one click or may be send the backup to default mail ID
Other Features:
1. 1. Zoom option in list view
2. 2. Inline edit when long clicking. Currently we are able to adjust sizes by long clicking. May be you can give us a button on top to adjust sizes or inline edit if possible.
3. 3. When a new remote field is added, it shows in the first position in the list view, disturbing all existing and stored list views. The field must be shown at the end of the list. A more innovative way to arrange fields to sort the fields in order by showing only the field names and sorting them accordingly would be great.
4. 4. Remote table to be over other displayed fields. When we assign a button action to show remote table in the existing form, the other fields must not be visible i.e, the remote table should be over all the other fields which it is covering. This would save lot of time in coding of hiding and showing of fields.
5. Exporting the application as APK. I think if this is done, then you people would be just Unbeatable !!
I've deviated from the topic, but if few of the above options were present, the development of this simple app would have been a lot faster and easier.
Some features requested are advanced. Well what is advanced? After checking the other database applications in android playstore and comparing with Sailforms pro, Sailform has implemented and presented lot many complex features in very much user friendly and understandable way.
Hope these missing features are in development and we would see them soon in future versions
(Long post... I think i deserve a break after playing around with group totals and this much of typing :D )
Happy Coding…
Felix.