Current Year

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
ghilton
Posts: 196
Joined: Thu Sep 27, 2007 1:06 pm
Location: Manchester (UK)

Current Year

Post by ghilton »

Hello

I have an attribute in a BO called 'TaxYear' at present this is set as 'Date'. I have a rule saying that 'If New TaxYear=Current_Year' but nothing is entered into this field.
When a record is submitted I just need the current year to be inserted in 'TaxYear'? But not sure if the attibute is setup correctly or why nothing is entered as this is a calculated field?
I have record submitt dates that work fine but cannot seen to make the Current_Year work, Any ideas?

Thanks
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Post by tford »

ghilton,

Make BOname.TaxYear at Plain Text attribute with max length of 4. Then use the rule:

If BOname IS NEW Then BOname.TaxYeYr=CURRENT_YEAR

Is this what you were looking for?

Tom
ghilton
Posts: 196
Joined: Thu Sep 27, 2007 1:06 pm
Location: Manchester (UK)

Current Year

Post by ghilton »

Hi Tom

need to test but yes this is the general idea, was unclear what the attribute should be set to!

Will test and let you know

Thanks
Post Reply