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

smart forms print parameters

pvannest
Participant
0 Likes
1,939

Hi,

I want to keep my spool request after i've actually print it. Before making a call to the smartform, I clear the parameter c-sf_output_options-tddelete and make the call to SSF_OPEN. Also my user settings are set to keep the spool after printing. Still, when the spool request is created, i see in his attributes that the spool will be deleted. What am I doing wrong?

Thx in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,301

Check with parameter USER_SETTINGS while calling smartform.

Regards

Mahendra

6 REPLIES 6
Read only

Former Member
0 Likes
1,301

Hi,

You are doing correct only. By default the spool will be there. So i don't think you need to clear the variable also.

Thx

Sudheer.

Read only

0 Likes
1,301

The problem is, that when I actually print, the spool disappears, even if I said to keep the request.

Read only

Former Member
0 Likes
1,301

Hi,

I think the previous job is not printed successfully, then we require new spool id, so in such cases make use of TDNEWID = 'X'. Please try like this.

Thx,

Sudheer

Read only

0 Likes
1,301

Hi,

As a test case I cleared the spool. I set the necessary parameters I wanted. Some of the settings i made were tdnewid = 'X', tddelete = '', tdlifetime = 8, ... Then I did the call to function 'SSF_OPEN'. If I went in debug mode at that time, i see in the spool a new print request, but one of the attributes of that print request contains 'Delete after print'. So I see in the creation of my print request that some parameters I set are apparently ignored.

Any ideas?

thx

Read only

Former Member
0 Likes
1,302

Check with parameter USER_SETTINGS while calling smartform.

Regards

Mahendra

Read only

0 Likes
1,301

I've found the problem, i had to explicitly uncheck the export parameter "user settings", because it was default checked in my smartform. So this parameter overruled the control parameters and output options. Strange is that in my user settings the attribute "Delete after print" was unchecked, so why he still deletes it, no idea. But anyway, now it works.

So nice tip Mahendra, i've given you points.