Hey guys,
I have created a new table Condition.
It consists of 3 columns: Code, Description & Duration.
In the client the fields are filled for example like that:
3M, 3 Months, 90 days.
Now I want to do some calculations.
Therefore I have created 2 more fields in another table: Earliest Date To Cancel and Latest Date To Cancel. In this table is also a field Condition, which has a Table Relation to the first mentioned table.
Now what I want to achieve is, the users chooses in field Condition 3M and then in field Earliest Date To Cancel is going to happen a calculation, which adds the 3 months to the current date.
You need to have a date formula on your Condition table.
Then put something like this on the OnTrigger on the Condition
Cond.Get("Condition");
"Earliest Date To Cancel" := CALCDATE(Cond."Date Formula");
Sohail Ahmed
815
YUN ZHU
773
Super User 2025 Season 1
Mansi Soni
559