cancel
Showing results for 
Search instead for 
Did you mean: 

internal table in adobe print forms

davidwallner
Participant
0 Kudos

hi there,

in my WDA-application i use adobe print forms for output.

i use a table for displaying an internal abap-table.

in the formular-hierarchy it looks like this:

table2

--> line1

--> cell1

--> cell2

--> cell3

my problem is that i am a complete newbie in scripting in print forms.

here is what i want to do:

if cell1 = 'X' then the text in cell2 has to be bold or underlined.

Can someone provide me with a code-example either in javascript or formclac???

thx

David

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi David,

You can check Help in ALD for scripting reference.

Try this code and check

if(Table2.line1.cell1.rawValue == "X"){
     Table2.line1.cell2.font.underline = "1";
}

Thanks & Regards,

Sanoosh

davidwallner
Participant
0 Kudos

thx for answering.

first i tried the following code:

-


data.T1.Tabelle2::ready:form - (JavaScript, Client) -


this.Zeile1.Zelle2.font.weight = "bold";

this.Zeile1.Zelle2.font.underline = "1";

the result is, that cell2 is bold and underlined but only the first row of the table. i want all cell2 in all rows bold and underlined.

then i tried this:

-


data.T1.Tabelle2::ready:form - (JavaScript, Client) -


if(this.Zeile1.Zelle1.rawValue == "01"

{

this.Zeile1.Zelle2.font.weight = "bold";

this.Zeile1.Zelle2.font.underline = "1";

}

nothing happens and i dont understand why. The visible value in Zelle1 is "01"!

davidwallner
Participant
0 Kudos

ok now it works. this is my code:

-


data.T1.Tabelle2.Zeile1::ready:form - (JavaScript, Client) -


if(this.zelle1.rawValue == "X") {

this.Zelle2.font.weight = "bold";

Answers (0)