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

Module Pool : queries related to fields

Former Member
0 Likes
925

Hi,

I have three fields in screen.

say f1, f2 and f3.

i fill f1, f2 and f3.

now there is a validation for f1 and f3. these fields are linked. and if the entered value is not liniked then it displays a error.

and screen is again available for input.

but second time only F1 and F3 allows values to be entered. and not F2. Second time after error message field F2 goes into display mode and is not editable. and shows only previous value.

can anybody help here. is there any setting i need to take care off.

Thanks in advance.

Hem

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
901

Hem,

Not seeing you code, this is an educated guess.

Your chain statement in the PAI routine must contain all the fields that are editable IF there is an error.

Therefore, you likely have coded


CHAIN:
  FIELDS: F1, F3.
  MODULE EDIT_F1_F3.
ENDCHAIN.

If you want F2 to be editable before the error is complete corrected, add F2 to the Chain list


CHAIN:
  FIELDS: F1, F2, F3.
  MODULE EDIT_F1_F3.
ENDCHAIN.

Hi,

I have three fields in screen.

say f1, f2 and f3.

i fill f1, f2 and f3.

now there is a validation for f1 and f3. these fields are linked. and if the entered value is not liniked then it displays a error.

and screen is again available for input.

but second time only F1 and F3 allows values to be entered. and not F2. Second time after error message field F2 goes into display mode and is not editable. and shows only previous value.

can anybody help here. is there any setting i need to take care off.

Thanks in advance.

Hem

7 REPLIES 7
Read only

Former Member
0 Likes
901

hi,

how ur F1 and F3 linked? means u checking valur from Database table?

Read only

Former Member
0 Likes
902

Hem,

Not seeing you code, this is an educated guess.

Your chain statement in the PAI routine must contain all the fields that are editable IF there is an error.

Therefore, you likely have coded


CHAIN:
  FIELDS: F1, F3.
  MODULE EDIT_F1_F3.
ENDCHAIN.

If you want F2 to be editable before the error is complete corrected, add F2 to the Chain list


CHAIN:
  FIELDS: F1, F2, F3.
  MODULE EDIT_F1_F3.
ENDCHAIN.

Read only

Former Member
0 Likes
901

hi...

use CHAIN ENDCHAIN command.

chain.

field: f1,

f2,

f3.

endchain.

dis will make all ur 3 fields open for input after an error msg.

reward pts if useful

Regards

winnie

Read only

prasanth_kasturi
Active Contributor
0 Likes
901

use chain and endchain

in PAI event

chain.

field f1 values (list of values).

field f2 values (list of values) .

field f3 values (list of values).

endchain.

dis will make all ur 3 fields open for input after an error msg.

reward pts if useful

Regards

prasanth

Read only

venkat_o
Active Contributor
0 Likes
901

Hemaraaja Write the following like under Process After Input event.

Chain.
   field:f1,f2,f3.
  module validate.
Endchain.
Regards, Venkat.O

Read only

Former Member
0 Likes
901

Thanks to all you buddies .... i have rewarded you all....thanks for your contribution and time.

-Hem

Read only

Former Member
0 Likes
901

Use ur three options F1,F2,F3 in the Chain --- Endchain.

This will allow u to process the input even if there have any errors.

Regarding the validation thing for F1 and F3, use these two things in the PAI to check the validations, u can also go for chain --endchain for these two conditions as well.

reward if useful..