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

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

Recommended Posts

  • Newbies
Posted

Hi, I'm new here and working with Filemaker 5.5

I'm trying to generate records based on two tables.

Every combination of fields in the 2 tables should be generated.

Another thread suggested something like:

Set Field [ Counter; 0 ]

Loop

Duplicate Record/Request

Set Field [ Counter; Counter + 1 ]

Exit Loop If [ Counter = 200 ]

End Loop

...I invented something like this (I'm a beginner) but my script doesn't stop.

I would appreciate any help.

Thanx a lot.

Posted (edited)

File/Define fields/Click on "Counter"/Choos Global/Click Save/Ok/Choos Number

Edited by Guest
  • Newbies
Posted

OK, found that...made it global but the script does not stop.

Here is my script: (I printed to file with CutePDF writer and copied)

Go to Layout [ Layout #1 ]

Go to Record/Request/Page

[ Last ]

Set Field [ counter, 0 ]

Loop

New Record/Request

Insert Calculated Result [ link_id, link_id = link_id +1 ]

[ Select entire contents ]

Set Field [ counter, counter = counter + 1 ]

Exit Loop If [ counter >= 10 ]

End Loop

Exit Script

What do I do wrong? (a lot probably)

Posted

Instead Set Field [ counter, counter = counter + 1 ]

Wright Set Field [ counter, counter + 1

Do this for:

Insert Calculated Result [ link_id, link_id = link_id +1 ] too.

  • Newbies
Posted (edited)

You're great, thanks a lot.

The reason I'm making this is the following.

I have 2 tables:

- var-1 (about 15.000 but let's say 2 values)

- var-2 (let's say 3 values)

I want to auto-generate records with a calculated text field like:

record 1="var-1= 1" "var-2= 1" bla bla bla

record 2="var-1= 1" "var-2= 2" bla bla bla

record 3="var-1= 2" "var-2= 1" bla bla bla

record 4="var-1= 2" "var-2= 2" bla bla bla

record 5="var-1= 3" "var-2= 1" bla bla bla

record 6="var-1= 3" "var-2= 2" bla bla bla

Then I need to export the calculated textfields of each record that is called value_var1-value_var2.txt

Is this possible in FM5?

Edited by Guest

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