Search Results for 'script'
-
Search Results
-
Topic: Global function
Hi, everyone and happy easter,
Using piclists, you can set them to to Document, so that you can access them from every form. is there somehow a possibility to make the same with functions?
i have several function, which I need to use in several forms. actually I copy them to each script I need it in. Is there some way to declare it onetime and use from every script?
Greetings 🐣
Steve
Topic: TPF Pro ebay API access
I’ve attempted to write an ebay posting interface to my Tap Forms Pro DB for posting items for sale off and on. I know just enough javascript to get myself in trouble. AI is sometimes a hinderence rather than a help. But it’s telling me the following. It’s recommending running a local js file because tap forms can’t access the ebay api directly?? Is it correct?
My question to claude:
can the tap forms pro script just access the ebay api directly?No — the blocker is that eBay’s API requires an Authorization: Bearer <token> header on every request, and Tap Forms Pro’s HTTP methods can only set Content-Type. There’s no way to pass custom headers:
// These are ALL the HTTP calls Tap Forms can make:
Utils.getJsonFromUrl(url)
Utils.getTextFromUrl(url)
Utils.postJsonToUrl(json, url)
Utils.postContentToUrlWithContentType(content, url, contentType) // ← only Content-Type, nothing elseeBay also requires the OAuth token refresh call to use Authorization: Basic base64(clientId:clientSecret) — also a custom header.
The local server exists purely to add those headers. It’s a thin shim:
Tap Forms → POST http://localhost:3721/post-to-ebay (no auth needed, local only)
server.js → POST https://api.ebay.com/… (adds Authorization: Bearer <token>)If Tap Forms ever adds a Utils.postWithHeaders(url, headers, body) method, you could go direct. Until then, the proxy is the only path.
In case anyone uses Python and wants to improve the TFP workflow. Here’s an example of how to call TFP and get results/data back using a JSON object.
Cheers, Daniel
---
See https://lab.danielleu.com/tapformspro/ for scripts and tips&tricksHi, I bought a subscription to TF Pro several weeks ago, but I have been unable to get iCloud+ sync working to my iPhone.
I have a 75MB TF Pro database document on MacOS that I’ve synced to iCloud+. When I attempt to download it to TF Pro on my iPhone, it never completes. The Documents view shows it maxing out anywhere between 6MB and 37MB.
TF Pro on the mac indicates the sync is fully complete, though. I have plenty of room on the device and in iCloud. This has been happening since before v1.1, and I’m currently on v1.2.
I’ve tried deleting the database from the iPhone, disabling iCloud+ sync and removing the database from iCloud+, and resyncing, but still no luck.
Topic: 2 kriteria to join records
Hello everyone,
Is there a way to link a form using two criteria?
Here’s what I mean:
Let’s say you have a form called “Invoice”. It contains three fields:Date
Amount
PaidNow I would like to place this form under a customer. That part works fine, because when I create a new payment, Tap Forms automatically handles the linking.
However, I would like to include this form twice:Once for “Payment pending”
Once for “Invoice paid”As soon as the “Paid” field is checked, the entry should appear in the second subform. In principle, this would require two conditions:
The customer
“Paid” is set or notCurrently, I’m working around this by using a script to read and reassign the data, but that means I have to delete one record and recreate it in the other place. In theory, this could be solved more cleanly with an additional “AND” condition, without moving data around.
Thanks in advance for any suggestions—or for pointing out what I might be doing wrong.Best regards,
Steve
Topic: Archiving records
Hi everyone,
I’m looking for some architectural advice for my coin collection database. Currently, I have two forms:
Coins: My main inventory.
eBay Sales: Linked to the Coins form via a Link to Form field (1:1 relationship).
The Problem:
When a coin sells, I mark it with a “SOLD” tag. I then use a search filter to hide these items. However, managing this becomes cumbersome when I want to apply additional filters; trying to balance “Include” tags and “Exclude” tags simultaneously in the search rules is proving difficult.My Idea:
I’m considering creating a third form called Sold Coins. I would run a script to copy the record data from “Coins” to “Sold Coins” once a sale is finalized, then delete the original.The Question:
Is moving records between forms a standard practice in Tap Forms, or is there a better way to handle “Archived” records that keeps the database clean without breaking my eBay sale links?Hello everyone,
i have a very simple script to get the ID of a Record:
function Auto_Script_Gezahlt() { return record.getId(); } Auto_Script_Gezahlt();This scripts work in all forms, except this one where I get an Error whenever I start it in the script window. the problem is the variable record, which comes from the program. I have put pictures in here to illustrate what it is doing However the script works in the form correct, but it ist not possible to check something in it, because of the error.
Have a nice evening
Steve
My sister needs information from a database I created which has characters, numbers and images (up to 3). When I export the info as a civ, the images are only noted by their names. I can include the images for export, but then they go into a file. Is there a way I can export the images with something other than just the name, or is there a script to connect them?