cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript in Adobeform problem

Former Member
0 Kudos

Hello,

Is there any Java commands that let us know if internal table data existe in a page or not ?

The scenario is :

In the master page I have a line title like:

Material number Description

M00000 Material test 0

M00001 Material test 1

M00002 Material test 2

.......................................................

These data will existe in many page depending on how many records there are in the internal table .

At the end there's will be a " Condition term text..." And I will have to check if in this last page there's at least 1 records printed or not ? if there's no material line in last page I will hide the title in the master page using the java script : this.presence = "Invisible". If there's at least 1 material line I will not hide this title .

Thanks you very much for your help.

Accepted Solutions (1)

Accepted Solutions (1)

OttoGold
Active Contributor
0 Kudos

You can add an extra flag into the form context, which you will set 'X' if something was passed through the table. Then you can easily test this variable through a self-exlplaining one line script.

Or you can script this, I mean counting rows, but I would not recommend that. Script as little as possible.

Or you can use a context condition. If there are no records then, according to the condition, you can remove the blank table node from the context at all.

Otto

Former Member
0 Kudos

Hello,

Thanks for your quick answer.

Could you please show me in detail how to do this. In the form it's not possible to count the record because it contains free text ( Purchase order text) so that I think making a flag is more OK . But I really do not know how to do this ? ( I am new to Adobe) . Could you please help me ?

Thanks in advance

OttoGold
Active Contributor
0 Kudos

Go to interface, add flag field.

Go to the form, delete context, drag and drop the new interface (left) to the context (right).

Go to the printing program (ABAP i assume), count the lines or test IS INITIAL and set the flag accordingly.

How to hide a part of the form using a flag was discussed like zillion times and so I will let you search a little.

Otto

Answers (0)