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

conditional menu/portal/not viewing duplicates


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

Recommended Posts

Posted

I have a database with 3 text fields: area, goal, objective. Area is a value list, and there are about 10 choices. Goal is often repeated exactly on several records. Objective will be unique to each record. I'm trying to set up a way so that "area" is selected, the corresponding goals will show in a portal. I've got it working, but because a goal can be repeated several times with a different objective, I get duplicates showing in the portal. Is there a way so that only one instance of the goal is visible in the portal?

I've tried creating value lists based on goal, but the list is really too long to scroll through.

Posted

You need to create a "qualifier" that will tag the first instance of a goal as the "master occurrence" then use this field for your portal.

For instance if your goal was "go to mars"

you could create a qualifier field that said "go to mars" for the first instance of that goal and blank for all other instances.

You can set up your "master occurrence" field by sorting the file by goal and running a script like:

Sort restore

Go to record first

SetField(globalfield, goal)

Loop

If (globalfield does not equal goal)

SetField (master occurence, goal)

SetField (globalfield, goal)

End If

Go to record next(exit after last)

end loop

Phil

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