cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ADOBE interactive forms - not fillable

Clemenss
Active Contributor
0 Likes
1,572

Hi all,

finally, we got the ADS server running and communication established.

In transaction SFP I can fill the form fields in pdf preview. Even after installation of Adobe Reader rights credential, I can not fill the form generated by ADS server.

Any idea what might be missing or what test I could do?

Thanks.

Clemens

View Entire Topic
Clemenss
Active Contributor
0 Likes

Thank you Sandra,

I'll set the state to 'solved' because FP_TEST_IA_01 works correct in my system.

I had to set the adobe printer as default, otherwise it did not work.

Because my own program/form does not work, I will analyze FP_TEST_IA_01 and try to find the deviation.

Regards,

Clemens

Clemenss
Active Contributor
0 Likes

Yes, it must be my form. But in the sample form, I can not see the difference in definition of pure output and input fields. The seem to have all the same attributes and binding, what is different?

Regards,

Clemens

Sandra_Rossi
Active Contributor
0 Likes

It's the same field type (text, numeric, etc. field), but there's an attribute in the Value tab, named "Type". Possible values are: Input optional, Input required, Read only, etc. You can't distinguish on the layout, but in the preview, you won't be able to enter anything if the field is read only. Tip: to distinguish easily when you create the layout, you may color read-only fields in gray for example.

Clemenss
Active Contributor
0 Likes

All my fields are defined as 'User Entered - Optional'. I compared the fields in the sample form FP_TEST_IA_01 for the Old Address and New Address fields. Old Address fields are not editable, New Address fields are editable. Both have 'User Entered - Optional' in the Value tab.

So this does not explain the difference why New address can be filled but old address can not be filled.

Regards,

Clemens

Sandra_Rossi
Active Contributor
0 Likes

This is dynamically changed via a FormCalc script in the upper node of the form (select it in the hierarchy pallet (shiftF11), and display the Script Editor pallet (CtrlShift+F5), and select "Display Events with Scripts").

Initially, you choose it from selection screen, and the value "ReadOnly" or "Open" is passed to the form.

Clemenss
Active Contributor
0 Likes

Thanks, Sandra. I tried to find any acript in FP_TEST_IA_01. I can see the hierarchy pallet with nodes like page1, page2, Header, OldData and NewData. In the Script Editor pallet (CtrlShiftF5) I can just see one additional line on top of the form with some input fields, the Show: field offers a couple of events(?), then comes an empty field for the script name(?), then the language (FormCalc) and Run At: Client.

Still, where is any difference between Old Address and New Adress fields?

I could not find any script source and I could not find any hint in the .

Clemens

Sandra_Rossi
Active Contributor
0 Likes

In the Show field, select "display events which contain scripts" (or something like that).

If you don't see anything in the form, maybe it's just that you have to log in German, or go in Change mode and maintain in original language (but do not change anything of course). You'll then see the form and everything.

The only difference between old and new is in the script, and in the selection-screen parameters where you choose if fields are to be read-only or input.

Clemenss
Active Contributor
0 Likes

Hi Sandra,

In the Show field, I can select

initialize

enter

exit

calculate

validate

(preopen)

mousenter

mouseexit

change

full

mouseup

mousedown

click

presave

postsave

preprint

postprint

presubmit

docready

docclose

formready

layoutready

No one shows me anything.

I need information from someone who has experience with a working interactive form, not a web form but a pdf form that I can mail.

Regards,

Clemens

Sandra_Rossi
Active Contributor
0 Likes

I have everything you said + 2 options: display all events, and display events with scripts.

The script is supplied in "form:ready" event:


// set read-only fields as requested
var Head = $record.GROUPSTATES.HEAD
var Old =  $record.GROUPSTATES.OLDDAT
var New = $record.GROUPSTATES.NEWDAT

var upperHead = Header.nodes.length - 1
for fld=0 upto upperHead do
	if (Exists(Header.nodes.item(fld).access)) then
		Header.nodes.item(fld).access = Head;
	endif
endfor

var upperOld = OldData.nodes.length -1
for fld=0 upto upperOld do
	if (Exists(OldData.nodes.item(fld).access)) then
		OldData.nodes.item(fld).access = Old;
	endif
endfor

var upperNew = NewData.nodes.length -1
for fld=0 upto upperNew do
	if (Exists(NewData.nodes.item(fld).access)) then
		NewData.nodes.item(fld).access = New;
	endif
endfor

// use master page as requested (for printing on pe-printed paper)
if ($xfa.record.PREPRINTED=="X") then
	$.break.before = "pageArea"
	$.break.beforeTarget = "#Page2"
endif

The $record.* means that they are parameters (transmitted by the calling program)

I'm using ALD 7.1 (downloaded from SDN today) and SAPKB70013. Which releases do you have?

Again, did you log in German or not? Do as I said previously.

Clemenss
Active Contributor
0 Likes

I do not understand why scripting must be used to make fields fillable. I can't find this in documentation. I have not yet seen the difference between Old Address and New Address fields.My FP_TEST_IA_01 form has no scripts in form:ready event.

Sandra_Rossi
Active Contributor
0 Likes

I thought that your latest questions were about how this demo program + form were working. Sorry.

To make fields input-capable, you just need to define them with attribute Type equal to "Input" (optional, required or whatever).

About your custom form, I don't understand what happens. I never had any trouble with that. Copy the demo program + form (and please, change the original language to your working language) and compare everything with your custom form.

If it persists, contact SAP support.

And ignore how the demo program works, it just shows that ADS works, that you may input fields (whatever a script is used or not, it's not the problem). If you can't see the script (and probably not the form), it's because you don't open it using German language, or because you have not the same release as mine (SAPKB70013, ALD 7.1). I feel I repeat myself. Please answer my questions so that I don't repeat my questions again and again (see my previous posts).

Clemenss
Active Contributor
0 Likes

No. My persisten question is where is the difference in definition of OldAddress fields and NewAddress fields in SAP form FP_TEST_IA_01.

Answer expected: OldAddress xyz NE NewAddress zxy

I hope after understanding this I may understand more about my custom form.

Edited by: Clemens Li on Feb 17, 2010 3:26 PM

Sandra_Rossi
Active Contributor
0 Likes

Again (as I said previously):

> The only difference between old and new is in the script, and in the selection-screen parameters where you choose if fields are to be read-only or input.

It means that these fields are identical in the layout.