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

Dynpro for Dummy

Former Member
0 Likes
660

In a custom screen there are two fields 'Begin Date' and 'End Date'. Both these are 'Required' fields, they cannot be initial.

'End Date' needs to be defaulted with value entered in 'Begin Date', but user could change it to something else (not blank).

The program idea was to set the field attributes of both fields to 'Required', and then set the default value for 'End Date' with 'Begin Date' in the PAI.

But this does not work the desired way, as the field attribute check kicks off before the PAI. So, before the default for 'End Date' gets set, the 'Fill in Required Entry' error is received.

Any easy way of doing it?

Thank you,

Fred.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
604

The program idea was to set the field attributes of both fields to 'Required', and then set the default value for 'End Date' with 'Begin Date' in the PAI.

But this does not work the desired way, as the field attribute check kicks off before the PAI. So, before the default for 'End Date' gets set, the 'Fill in Required Entry' error is received.

Any easy way of doing it?

it can be done in otherway..

Dont mark that as Required. you can do that using flow logic validations check the field values if the fields are initial then you give the message , and accordingly you can code the loigc.

Regards

Vijay Babu Dudla

The program idea was to set the field attributes of both fields to 'Required', and then set the default value for 'End Date' with 'Begin Date' in the PAI.

But this does not work the desired way, as the field attribute check kicks off before the PAI. So, before the default for 'End Date' gets set, the 'Fill in Required Entry' error is received.

Any easy way of doing it?

it can be done in otherway..

Dont mark that as Required. you can do that using flow logic validations check the field values if the fields are initial then you give the message , and accordingly you can code the loigc.

Regards

Vijay Babu Dudla

3 REPLIES 3
Read only

Former Member
0 Likes
605

The program idea was to set the field attributes of both fields to 'Required', and then set the default value for 'End Date' with 'Begin Date' in the PAI.

But this does not work the desired way, as the field attribute check kicks off before the PAI. So, before the default for 'End Date' gets set, the 'Fill in Required Entry' error is received.

Any easy way of doing it?

it can be done in otherway..

Dont mark that as Required. you can do that using flow logic validations check the field values if the fields are initial then you give the message , and accordingly you can code the loigc.

Regards

Vijay Babu Dudla

Read only

former_member761936
Active Participant
0 Likes
604

Hi Fred,

You can do it another way also.

Instead of defaulting it after field attribute, write defaulting module Before field attribute and after words you can write field attribute.

hope this will help you.

Read only

Former Member
0 Likes
604

Thank you all.