i have a table with 4 fields
field 1 = number result 1
field 2 =number result 2
field 3= percentage result
field 4 = calculation by taking in whichever is lower field 1 or 2 and multiplying by field 3
the question now is how do i script the calculation it should pick up which ever is lower but ignore if field is empty.
i hope i am clear , i would appreciate if someone could help me out with this calculation.
I am still very amateur on Filemaker so i hope my question does make any sense.
I am trying to write a script that would basically import order information from an email and convert it, first in a new account (if the customer does not exist) and later create a Sale Order. So far, I have managed to do that, but the problem i find is when trying to convert the sale order into an invoice. Since this order comes from our webshop when we receive the email means it is paid, so my aim is that when creating the invoice from the Sale order, this would be marked as paid and set the amount due to zero.
This would sound a very easy task, but since our solution incorporates a payments module to manage the payment of an invoice, when i try to incorporate the payment entry within my script, there is when all the trouble starts. For some reason, it gets lost in its way when runnig the script and returns a partial payment all the time. The weirdest thing is thet if I run the script on debug mode, then all works perfectly, so my guess is that the issue may be related to the speed of the script.
So, is there any recomendation as for where to put a pause script step so the script will work also when run automatically?
I have tried every possible combination of long script, shorter with other scripts inside, perform script on server... and all the time something is wrong ;(
Thanks a lot for any insight thst would help us move forward, since we have been trying to solve this for a week already.
I have the following:
Table 1 – Expenses
Field A: Date
Field B: Concept
Field C: Amount
Table 2 – Flight Time
Field D: Date
Field E: Flight Time (in hours)
I need a report that will give me the expense cost per hour, i.e. the total of Field C divided by the total of Field E.
Table 1 and Table 2 are not related. What relationship must I establish between them to obtain my desired result?
If establishing a relationship between the tables is not the answer, how else can I achieve the figure I need?
Thank you for any help that can be provided.
For an inventory management database, I'd like my main screen to be able to accept pulls from three related databases:
- Serialized (valuable tools, which I track and want back - the paintbrush);
- Replenishable (cheap tools that I buy by the yard and if one gets left behind I don't care - the paint-mix sticks);
- Perishable (disposable tools that are left on the job site - the paint).
These will handle their related requests differently. The serialized I'll be tracking properly to make sure we keep track; the latter two I'm looking for more like a system of 'tick marks' to help me know what we use on job sites.
We print our barcodes. For ease of use, I'd like staff to scan into a single field in an interface that is smart enough to do the right thing based on a key digit in the barcode. So when I scan barcode 'S1234', my db knows to move it to the Serialized relation field; when I scan 'P1234,' it knows we're in Perishables.
Looking for the elegant approach. My thought is that that central hot field (Scan_Here) will, when entered, store a variable and trigger a script built within the context of the related table, but I'm sometimes prone to reinventing wheels and doing stuff the long way, so I'm asking for suggestions / examples.
By JH Howland
I have created an "opener" file called "OpenMP" that is located on the Windows Desktop. Also, a global variable for the directory where the FMP14 files are located called "$$marinaDir" = "MarinaPro v17".
When activated the launcher opens but does not open the target file using the following file path, "filewin:/C:/$$marinaDir/Marina.fmp12." However if I substitute with the following, "filewin:/C:/MarinaPro v17/Marina.fmp12"; all is good.
The script elements follow:
Set Variable [$$marinaDir; Value: "MarinaPro v17"]
Open File ["Marina"] (Marina File Path: filewin:/C:/$$marinaDir/Marina.fmp12)
What am I missing?