‎2007 Oct 16 10:08 AM
Hello,
I have a table control where there are so many fields.
Validity period and endate are two fields out of this.
If i enter val.period, code is written to calculate the end date.
if end date is entered , val period is calculated.
Both the fields should not be entered manually.
If it is entered a error message should appear.(PAI)
My problem is
i entered val.period , the system calculated end date.
If i perform any other operation on the particular line of the table control ,
since now both the fields are filled eventhough the system has calculated it.
please help me on this.
points will be rewarded.
thanks.
Ramya
‎2007 Oct 16 10:35 AM
OK Cool..../
Define the flag variable (with boolean type), and set this to true, in your enddate&valdate calculations....
In your error firing module write a if condition at first line to check the flag variable is false or not...
‎2007 Oct 16 10:17 AM
Before doing your calculation, first check your enddate is empty or not (in enddate calculation) and validity date is empty or not (in validity date calculation).
Use IF Condition to do this.....
For better understanding of your problem...provide the coding part too...
‎2007 Oct 16 10:21 AM
Hello,
There is no problem in calculation of end date or validity period.
My problem is
if i perform any other operation on the particular line of the table control ,
since now both the fields are filled , the system takes that as if i entered both the fields manually and displays an error message as
" enter either duration or end date ".
please help me on this.
points will be rewarded.
thanks.
Ramya
‎2007 Oct 16 10:30 AM
hi,
set one flag while calculating either field.
and put if condition using that flag where u writing error code.
reward if useful.
‎2007 Oct 16 10:35 AM
OK Cool..../
Define the flag variable (with boolean type), and set this to true, in your enddate&valdate calculations....
In your error firing module write a if condition at first line to check the flag variable is false or not...