Skip to main content
Solved

Error when applying style formula to GI datetime data field

  • September 11, 2023
  • 2 replies
  • 62 views

Forum|alt.badge.img

We have added some datetime UDF’s to the submittal GI and are needing to apply style formulas for when the column is blank verses when a date is entered. Unfortunately, I keep getting error messages when I try to enter any type of greater than or equal to parameters in the formula.

The dates pull fine to the GI when I don’t have a style applied. It also works if I change the UDF type from datetime to text, but we’d really like to be able to select a date verses typing it in all the time.

Is it possible for a datetime data field to have this type of style formula applied to it, and I’m just missing something in the formula? Or do we have to change these to text data fields for the style to work?

This very easily could be user error. Here’s my current formula:

=IIf( [Submittal.AttributePLANDATE]>='0', 'blue60', 'red60' )

Best answer by darylbowman

Try:

=IIf([Submittal.AttributePLANDATE]<>Null, 'blue60', 'red60')

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

2 replies

darylbowman
Captain II
Forum|alt.badge.img+13
  • 1698 replies
  • Answer
  • September 12, 2023

Try:

=IIf([Submittal.AttributePLANDATE]<>Null, 'blue60', 'red60')


Forum|alt.badge.img
  • Author
  • Varsity I
  • 57 replies
  • September 12, 2023

@darylbowman You are awesome! Thank you, that did the trick. Appreciate your help. Have a great day! 


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