Search Results for 'script'
-
Search Results
-
Hello,
I have two linked forms, like Clients (CDL), one to many with reverse view to Invoices, and a script in Invoices to populate some fields.
When I create a new record in Invoices, either from Clients or Invoices, the fields are populated well but the app freezes during 30-40 sec on the Mac version and I get an error message on iOS.
Here’ my screen shots, did the noob miss something ?
Thanks for help !Hello,
I’ll try to keep as clear and simple as I can…
I have 2 forms ‘Factures’ (invoices) and ‘Entreprises’ (clients), classic one Client to many Invoices.
– ‘Entreprises’ is linked to Factures with a one-to-many relation.
– Each one of the ‘Entreprises’ has a ‘Code’.
– In ‘Factures’ I want to concatenate “code_entreprise” with other fields from ‘Factures’.I wrote a script which works except for one line where I’m trying to get the ‘Code’ value from ‘Entreprises’ with:
var code_entreprise = entreprises.getFieldValue(‘fld-e0835c6dcdd9468dbd5b4a65107b20d4’);
but get a ‘ReferenceError: Can’t find variable: entreprises, line:(null)’See line 21 on the screenshot.
Any clue of what I’m doing wrong?
Gilles
Hello All,
I’m using the iOS version of TF on an iPad. I would like to write a script to open a form view (example “Order Detail”) from another area in the database (example “Customers”).
Many Thanks, Dan
Hi everyone,
I’m new to the forums, but I can’t seem to find a solution to this problem I have been having with my Tap Forms database during the last couple of days, so I hope someone here will be able to help…
I have a fairly large and complex database document in which I organize my sewing projects.
It consists of several forms each with hundreds of records, different custom layouts, scripts, calculations and multiple relationships. The database size currently is 3,75 GB. I have been working on it for over 10 months now and never encountered any problems like the ones I have been having recently.As far as I can tell, the problem only occurs in one of the forms, which is the one in which I store all my fabrics.
Here’s what’s happening:
Entering new records seems to work fine. The problem occurs, when I edit existing records. I can make changes alright, add images, information and dates, etc. And at first everything seems to be fine. I can edit several records in this manner, still everything looks fine. I can leave the form, go to a different one, make changes there, return to the fabric form and all changes are still there and everything still looks fine. Then – mostly in order to re-sort the records – I hit the “Refresh Records List”-button. And then the changes I have made disappear. The record basically reverts to its original state, images I have added disappear, dates I have entered disappear, texts that I have edited revert to their original state. This even happens to records that I have created via the +-button. They become blank records again – however as far as I can tell, I have not lost a complete record in this manner, it’s always just the data in the record, that disappears, never an entire record.
And here’s what’s puzzling me the most: This happens only to some records! Some records work fine. Some don’t. Some keep their data and edits even after I have used the “Refresh Records List” button, some don’t. However, records that have once had this issue of edits and data disappearing will always have the problem, which basically means, they become uneditable, because all changes I make to them, will be gone once I use “Refresh Records List”. But as far as I can tell as I edit more and more of my already existing records, more and more seem to be having this problem. It’s like at first I can edit them fine, and the changes are saved properly and remain even after I use “Refresh Records List”, but then all of a sudden, the next time I add or edit data to them, they won’t save anymore and once I use Refresh Records, the last changes I made are gone.At first I thought, this might be a syncing issue. I have been syncing this database via iCloud between two MacBooks. But after turning off syncing on both MacBooks, deleting the iCould database and keeping syncing turned off, the problem still occurs on both MacBooks independently.
To me it seems like an internal saving issue.
So next I tried using the “Show Save/Edit buttons” feature, thinking that if I use the save button every time I change a record, the data would be saved properly, so using refresh after that won’t undo the edits I made. It didn’t work, the data still disappears once I refresh even if I saved it via the button.The problem of losing data and edits I entered occurs on both records I just created and also on records that I created months ago. Some I can edit, some I can’t; i.e. some maintain the changes I have made after I push “Refresh Records List”, some don’t. I can not find any regularity in any of it.
Again, the problem only occurs, when I use the “Refresh Records List” button. Until I use that button, all data remains as it should be.
Another thing that I found out is this:
If I close the database document and Tap Forms altogether, reopen it, I still see the data I have just entered/edited. If I then use “Refresh Records List”, no data disappears (as far as I can tell). It seems like closing the database properly saves the edits all records.Please help, because this is driving me nuts!
Topic: Learning JavaScript
Can someone recommend any books, videos, etc. to learn JavaScript, particularly in relation to Tap Forms 5 rather than web use?