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

Restricting the form printing

Former Member
0 Likes
824

Hi All,

In my smartform , i have certain global fields . If the value of these fields is initial then the form should not be printed at all and

an error message should populate instead.

How can I acheive this,

Thanks,

Faiz

Hi All,

In my smartform , i have certain global fields . If the value of these fields is initial then the form should not be printed at all and

an error message should populate instead.

How can I acheive this,

Thanks,

Faiz

4 REPLIES 4
Read only

Former Member
0 Likes
788

Hi Faiz,

There are two way to restrict smart form.

1st : before the calling smartform check value if value is empty then dont call smartform and populate Error message.

2nd : create code in smartforms and check the value if value is empty then then use message statement with Type of E.

Regards,

Nadim

Read only

0 Likes
788

Hi Nadim,

The 1st method u suggested involves change in the driver program which i dont want, the second option is to control at the form level which suits my requirement but my question is that if we write an error message it will still display the form .isnt it ??

Read only

Former Member
0 Likes
788

it will display only error message not form..

Read only

Former Member
0 Likes
788

hi faizur,

you can disable your printing button using ssfcompop-tdnoprint = 'X'.

use this your if initial  condition, hope you can solve your problem.

Regards.

Jaydeep