Jump to content
Sign in to follow this  
merkaba22

Relationship based on date range

Recommended Posts

If a user defined date is created for one side of a relationship and the other side is defined as a date field for portal records, portal data is displayed for that user defined date.

Is there a way to have a realtionship that returns all records for a range of dates, say, the user defined date through the user defined date + 7 days?

Share this post


Link to post
Share on other sites

You can create a calc field (text) that is as such:

gDate & ¶ & gDate + 7 where gDate is the user entered date in a global date field.

Then for your relationships between this calc field and the Date field on the child side, the two criterias for your relationship are

cDate ≥ Child::Date

cDate ≤ Child::Date

Share this post


Link to post
Share on other sites

Make that:

cDate (calculation, date result) = gDate + 7

And the relationship:

cDate ≥ Child::Date

AND gDate ≤ Child::Date

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.