Skip to main content
Solved

Is it possible to make a custom field that lists true or false if another date column is less then the sysdate?

  • November 11, 2022
  • 2 replies
  • 184 views

Forum|alt.badge.img+4
  • Do Gooder (Customer)
  • 8 replies

I want to make a custom field that will be sortable and just list True or False if the Phase Out Date for the row is less then sysdate, is that possible?

 

Best answer by Technical Outlaws

Create a read-only custom field that uses a similar SQL statement as below, I just picked revised_due_date as an example.  Just define the bind variables in the SQL arguments to complete the set up.

SELECT 
   CASE WHEN (revised_due_date < SYSDATE) THEN
      'TRUE'
   ELSE
      'FALSE'
   END
FROM SHOP_ORD
WHERE order_no = :order_no
AND release_no = :release_no
AND sequence_no = :sequence_no

View original
Did this topic help you find an answer to your question?

2 replies

Technical Outlaws
Hero (Employee)
Forum|alt.badge.img+11

Create a read-only custom field that uses a similar SQL statement as below, I just picked revised_due_date as an example.  Just define the bind variables in the SQL arguments to complete the set up.

SELECT 
   CASE WHEN (revised_due_date < SYSDATE) THEN
      'TRUE'
   ELSE
      'FALSE'
   END
FROM SHOP_ORD
WHERE order_no = :order_no
AND release_no = :release_no
AND sequence_no = :sequence_no


Forum|alt.badge.img+4
  • Author
  • Do Gooder (Customer)
  • 8 replies
  • November 11, 2022

That worked, thanks for the help!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings