Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Here's what I have:

Field Named: sbtDocs

Field has 3 repetitions

Calculation result is a Container

There are 3 blocks on my Layout that show repetitions 1-3.

For the field calcuation I have:


If(

not IsEmpty(orders::sbtSONO);



Case(

Get(CalculationRepetitionNumber) = 1; "filewin://srs3/Order Documents/SBT/" & Trim(orders::sbtSONO) & "C.pdf";

Get(CalculationRepetitionNumber) = 2; "filewin://srs3/Order Documents/SBT/" & Trim(orders::sbtSONO) & "I.pdf";

Get(CalculationRepetitionNumber) = 3; "filewin://srs3/Order Documents/SBT/" & Trim(orders::sbtSONO) & "P.pdf";

)



;

""

)

What I'm trying to do is check to make sure the order has an SBT Number before anything else. If it does I want to populate the 3 blocks with different filepaths to 3 different pdf files. They all share the same path except the letter before the extension.

It will display the first repetition correctly, but the remaining 2 repetitions are left blank. Like it's not calculating them.

What have I done wrong?

Posted


If(

not IsEmpty(orders::sbtSONO);



"filewin://srs3/Order Documents/SBT/" & Trim(orders::sbtSONO)

&

Case(

Get(CalculationRepetitionNumber) = 1; "C.pdf";

Get(CalculationRepetitionNumber) = 2; "I.pdf";

Get(CalculationRepetitionNumber) = 3; "P.pdf";

)



;

""

)

Another flavor, but it still doesn't work. Weird thing is if I put "Get(CalculationRepetitionNumber)" in the else statement it will print out the Rep# in the 2nd and 3rd block? Why can't the 2nd and 3rd rep pass the If statement?

Posted

The point was to keep bogus shortcuts from being created on my forms. Otherwise filemaker would blindly create 3 links to files that might not exist.

This topic is 6218 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.