Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5110 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Is it possible to have a FileMaker calculation field, which utilizes a ScriptMaster External Function, store the resulting value for indexing?

I seem to be unable to make this happen.

Any help would be greatly appreciated.

Thanks,

Jeff

Posted

Thanks Jesse,

I have a calculation field using:

Right ( SCGetFileURL( ""; "//myserver04/c$/Users/SuperContainer/"; "Files/DATA/resume/" & candidate_id & "/" );

Length ( SCGetFileURL( ""; "//myserver04/c$/Users/SuperContainer/"; "Files/DATA/resume/" & candidate_id & "/" )) -7

)

The calculation works great. However, When I click on "storage options...", and uncheck "Do not store calculation results", the calculation no longer works. No error is returned either.

Thanks again,

Jeff

Posted

Can you be more detailed when you say "no longer works"? Is it returning a blank result? Is it just not updating? Is it a question mark?

Posted

OK,

Did some more troubleshooting/testing.

When I use this calculation(and try to store the results), the result of the calculation is "?":

SCGetFileURL( ""; "//myserver/c$/Users/SuperContainer/"; "Files/DATA/" & candidate_id & "/" )

When I do NOT try to store the results, the calculation performs as expected.

Thanks,

Jeff

Posted

Ah, I think I might know what's causing it. This is hosted on FileMaker Server, right? It's because when you change it to a stored calc, that calculation is evaluated ON THE SERVER for all existing records. I'm guessing that you don't have the plugin installed on the server, which causes the ?. There are two solutions for this:

1) Install the SuperContainer plugin on the server, change the calc back to unstored, then change it to stored, and the server will update everything correctly.

2) Don't install the plugin on the server. On a connected client computer with the plugin installed, do a calculated replace on the 'candidate_id' field, and replace it with itself. This will trigger the calculation to re-evaluate for each record on the client. You can try this before doing the replace on all records by just re-setting that candidate_id field on a single record to see if it is fixed.

Posted

Genius!!

That did the trick.

BTW I presented the FileMaker Solution to my internal clients yesterday to much fanfare.

Thanks for building such a great product.

Thanks,

Jeff

This topic is 5110 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.