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

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

Recommended Posts

Posted

I'm trying to create a script to search a field in a related file, copy the latest entry into that field and bring it back to the master file. Seems simple enough with the 'go to last record' command. However, some of the records in the related file have no data entered into the field of interest. I would like to omit those records with empty fields before going to the last record? How do I accomplish this?

Thanks in advance!

Posted

If this script is to be performed frequently, you could have a boolean indexed calculation in the related file c_MatchNotEmpties = Case(Is empty(your field),0,1).

Then establish a new relationship from a global (number populated with 1) in the Main file and the c_MatchNotEmpties.

A script :

Go To Related Record (The new relationship - show)

Perform External Script (Set Last value)

-----Go To Last record

-----Set Field (g_field, your field)

Set field (your field, ::Related:g_field)

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