cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hello Form Experts,

Its unusual after putting below code, PDF view is not showing the message box.

xfa.host.messageBox("Test")

I have a existing Adobe form in which i have to do some modifications. It has lots of calculation at script level. I am trying to check the values at run-time.

Is their any other settings to be done (Adobe life cycle designer) to make it appear.

Also perhaps the Check Script Syntax option is not working. Because if i am changing the language to JavaScript, it is not giving error(JavaScript has ';' at the end where as FormCalc don't).

Wanted to know, Is there any better way to Debug Adobe script without editing form ?

Thanks in advance,

Manoj

0 Likes
View Entire Topic
dstjacques
Participant
0 Likes

Hello Manoj

Even if the post is old, I thought it will be nice to have an answer if someone else tries to find answers.

1. Several Javascript marks are working in Formcalc even if it is not required.

    The current object is JavaScript is "this" and in Formcalc is "$". But Formcalc recognize as well the "this" form Javascript. It is the same with the separetor ";" where it is mandatory in Javascript, it is not required in Formcalc but doesn't generate error when used.

For the Formcalc Debuging, SAP doesn't provide any support for adobe. We have to be inventive as usual.

So, using the "xfa.host.messageBox" is the only solution.

I have notice to make it work properly, the form must be set to "Interactive" otherwise it doesn't always working fine.

I know it is not the answer we all wanted. But, in over 20 years in SAP world, SAP never considered developers requests or needs. In fact, I saw only one evolution in the ABAP world is when they provide the version 7.4. Nevertheless, interesting new way to code, that has not bring any tools to help the developers.

Regards