Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Table control

Former Member
0 Likes
429

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
413

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...

4 REPLIES 4
Read only

Former Member
0 Likes
413

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...

Read only

0 Likes
413

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

Read only

0 Likes
413

hi,

set one flag while calculating either field.

and put if condition using that flag where u writing error code.

reward if useful.

Read only

Former Member
0 Likes
414

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...