If you only want to show the calculated value on an form:
Write a function “CalcMyValue” for your SourceTable and put the function-call as SourceExpression on your form (only “CalcMyValue”).
If you want standard flowfield behaviour you can make something like:
- add a new field “StartPreviousYear” (make it editable = no) to the table with your field “Start”
- Add “StartPreviousYear := CALCDATE(’-1Y’,PlejeplanRec2.Start)” to the OnValidateTrigger of your field “Start”.
- Make your flowfield with the filterexpression Date > StartPreviousYear
- (Make sure you call the OnValidate-Trigger - not only assign the date
)
forki