Skip to main content
Bumped by Community user
Tweeted twitter.com/StackDrupal/status/904194539476439040
Fix typo.
Source Link
Jimmy Ko
  • 2.9k
  • 1
  • 12
  • 20

First of all:

I know that there's a static filter with Global: Fields comparison that would do it. But I need an exposed filter in views to fullfill my needs.

Let's say aI have a table with 3 cols: "nid" | "changed" | "another datetime".

Now I want to have an exposed filter as a select list with options "none", "old" and "new". If "old" is selected, show rows where "another datetime" > "changed". If "new" is selected, show rows where "another datetime" < "changed".

I've been looking for a solution for multiple hours.

First of all:

I know that there's a static filter with Global: Fields comparison that would do it. But I need an exposed filter in views to fullfill my needs.

Let's say a have a table with 3 cols: "nid" | "changed" | "another datetime".

Now I want to have an exposed filter as a select list with options "none", "old" and "new". If "old" is selected, show rows where "another datetime" > "changed". If "new" is selected, show rows where "another datetime" < "changed".

I've been looking for a solution for multiple hours.

First of all:

I know that there's a static filter with Global: Fields comparison that would do it. But I need an exposed filter in views to fullfill my needs.

Let's say I have a table with 3 cols: "nid" | "changed" | "another datetime".

Now I want to have an exposed filter as a select list with options "none", "old" and "new". If "old" is selected, show rows where "another datetime" > "changed". If "new" is selected, show rows where "another datetime" < "changed".

I've been looking for a solution for multiple hours.

deleted 17 characters in body
Source Link
No Sssweat
  • 31.6k
  • 14
  • 55
  • 91

drupal 7 create Create a views "exposed filter" to compare two fields

First of all:

I know that there's a static filter with Global: Fields comparison that would do it. But I need an exposed filter in views to fullfill my needs.

Let's say a have a table with 3 cols: "nid" | "changed" | "another datetime".

Now I want to have an exposed filter as a select list with options "none", "old" and "new". If "old" is selected, show rows where "another datetime" > "changed". If "new" is selected, show rows where "another datetime" < "changed".

I've been looking for a solution sincefor multiple hours.

Hope that someone can help me here...

THX, maen

drupal 7 create a views "exposed filter" to compare two fields

First of all:

I know that there's a static filter with Global: Fields comparison that would do it. But I need an exposed filter in views to fullfill my needs.

Let's say a have a table with 3 cols: "nid" | "changed" | "another datetime".

Now I want to have an exposed filter as a select list with options "none", "old" and "new". If "old" is selected, show rows where "another datetime" > "changed". If "new" is selected, show rows where "another datetime" < "changed".

I've been looking for a solution since multiple hours.

Hope that someone can help me here...

THX, maen

Create a views "exposed filter" to compare two fields

First of all:

I know that there's a static filter with Global: Fields comparison that would do it. But I need an exposed filter in views to fullfill my needs.

Let's say a have a table with 3 cols: "nid" | "changed" | "another datetime".

Now I want to have an exposed filter as a select list with options "none", "old" and "new". If "old" is selected, show rows where "another datetime" > "changed". If "new" is selected, show rows where "another datetime" < "changed".

I've been looking for a solution for multiple hours.

Source Link
maen
  • 460
  • 2
  • 5
  • 14

drupal 7 create a views "exposed filter" to compare two fields

First of all:

I know that there's a static filter with Global: Fields comparison that would do it. But I need an exposed filter in views to fullfill my needs.

Let's say a have a table with 3 cols: "nid" | "changed" | "another datetime".

Now I want to have an exposed filter as a select list with options "none", "old" and "new". If "old" is selected, show rows where "another datetime" > "changed". If "new" is selected, show rows where "another datetime" < "changed".

I've been looking for a solution since multiple hours.

Hope that someone can help me here...

THX, maen