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

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

Recommended Posts

Posted

I have a portal in which I want to filter the portal items to show only the activity of the past 30 days. I know that I can use a selfjoin relationship using the creation date field, but I'm a little stuck on how to calculate the past 30 days into that. Can anyone make any suggestions? Thanks, Ron.

Posted

Hi Ron

I haven't got a clue how to set up a relationship directly to find what you want ( not cos there isn't one but just because I am not very experienced).

There is one other possibility though and that would be to use a multi key for your portal.

Set up a self relate on a global to your record id.

Next do a looping script along the lines of

show all records

go to first record

if field creation date>Get(CurrentDate)-30

set your global to recordID

loop

go to record next(exit after last)

if

field creation date>Get(CurrentDate)-30

setfield your global to your global & " :paragraph: " & recordID

endif

endloop

If I am right this would set up your portal based on your global to show all records where the creation date is older than today minus 30 but I havent tested it - and I am only an amateur :nahnah:. What the heck - give it a whirl

Phil

Posted

Hi Ron,

Create a calculation (unstored, result of date) with: Get(CurrentDate) - 30

Join Main::aboveCalc on 'less than or equal to' to Self-Join::CreationDate.

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